From: Patrick Donnelly Date: Mon, 19 Feb 2024 15:55:24 +0000 (-0500) Subject: mds: use cephfs errno for fragment size check X-Git-Tag: testing/wip-yuriw-testing-20240419.202307-squid~11^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a9bfc5c15280915dceab4c22dd0a6ac0e76feb75;p=ceph-ci.git mds: use cephfs errno for fragment size check Signed-off-by: Patrick Donnelly Fixes: https://tracker.ceph.com/issues/64490 (cherry picked from commit 06d6f4b9113ae32969eab29d9c432e74a8f1053a) --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index aae51735d91..0bb30664ac5 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -3396,7 +3396,7 @@ bool Server::check_dir_max_entries(const MDRequestRef& mdr, CDir *in) in->inode->get_projected_inode()->dirstat.nsubdirs; if (dir_max_entries && size >= dir_max_entries) { dout(10) << "entries per dir " << *in << " size exceeds " << dir_max_entries << " (ENOSPC)" << dendl; - respond_to_request(mdr, -ENOSPC); + respond_to_request(mdr, -CEPHFS_ENOSPC); return false; } return true;