From: Patrick Donnelly Date: Tue, 6 Jul 2021 18:03:19 +0000 (-0700) Subject: mds: add debugging when rejecting mksnap with EPERM X-Git-Tag: v17.1.0~1263^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=92ec79fd57b841c54bd9a5490031f62166ed6ab1;p=ceph.git mds: add debugging when rejecting mksnap with EPERM Fixes: https://tracker.ceph.com/issues/51543 Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/Server.cc b/src/mds/Server.cc index cc91705f8790..89131f696545 100644 --- a/src/mds/Server.cc +++ b/src/mds/Server.cc @@ -10256,6 +10256,7 @@ void Server::handle_client_mksnap(MDRequestRef& mdr) } if (!mds->mdsmap->allows_snaps()) { // you can't make snapshots until you set an option right now + dout(5) << "new snapshots are disabled for this fs" << dendl; respond_to_request(mdr, -CEPHFS_EPERM); return; } @@ -10271,6 +10272,7 @@ void Server::handle_client_mksnap(MDRequestRef& mdr) } if (diri->is_system() && !diri->is_root()) { // no snaps in system dirs (root is ok) + dout(5) << "is an internal system dir" << dendl; respond_to_request(mdr, -CEPHFS_EPERM); return; } @@ -10304,6 +10306,7 @@ void Server::handle_client_mksnap(MDRequestRef& mdr) if (inodeno_t subvol_ino = diri->find_snaprealm()->get_subvolume_ino(); (subvol_ino && subvol_ino != diri->ino())) { + dout(5) << "is a descendent of a subvolume dir" << dendl; respond_to_request(mdr, -CEPHFS_EPERM); return; }