]> 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>
Sat, 16 Mar 2024 13:38:50 +0000 (09:38 -0400)
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
Fixes: https://tracker.ceph.com/issues/64490
src/mds/Server.cc

index ed42ac439d82a10bc4efc3760d9c286cc34cc74c..33a2fd216efcc181401ab40fd1b99f2417e75599 100644 (file)
@@ -3389,7 +3389,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;