Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c32f5dd authored by Sage Weil's avatar Sage Weil
Browse files

ceph: do not hide .snap in root directory



Snaps in the root directory are now supported by the MDS, and harmless on
older versions.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 602adf40
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -493,7 +493,6 @@ struct dentry *ceph_finish_lookup(struct ceph_mds_request *req,

	/* .snap dir? */
	if (err == -ENOENT &&
	    ceph_vino(parent).ino != CEPH_INO_ROOT && /* no .snap in root dir */
	    strcmp(dentry->d_name.name,
		   fsc->mount_options->snapdir_name) == 0) {
		struct inode *inode = ceph_get_snapdir(parent);