From: Sage Weil Date: Tue, 24 Aug 2010 23:27:36 +0000 (-0700) Subject: ceph: do not hide .snap in root directory X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4c32f5dda5ffe23687a55da1538b7cc426710d1a;p=openwrt%2Fstaging%2Fblogic.git 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: Sage Weil --- diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index a8d2aacc612b..495825268cb9 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -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);