]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: use cephfs errno for fragment size check 56664/head
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:47 +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 48e7b03ae2146cf6f6da2c24473bebbff369151b..d70c4d8a77f2c5e41b2a6fea2ab629b420a2f84d 100644 (file)
@@ -3388,7 +3388,7 @@ bool Server::check_dir_max_entries(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;