]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: use cephfs errno for fragment size check
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 19 Feb 2024 15:55:24 +0000 (10:55 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 3 Apr 2024 12:53:28 +0000 (08:53 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Fixes: https://tracker.ceph.com/issues/64490
(cherry picked from commit 06d6f4b9113ae32969eab29d9c432e74a8f1053a)

src/mds/Server.cc

index aae51735d9145ea4a9d2e74f9f3a0e1e345c3b91..0bb30664ac5f669847d4f8cc587604a13d8dfe2e 100644 (file)
@@ -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;