diff options
author | Sage Weil <sage@newdream.net> | 2010-08-24 19:27:36 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-10-20 18:38:14 -0400 |
commit | 4c32f5dda5ffe23687a55da1538b7cc426710d1a (patch) | |
tree | d0048f2310cdf1809ac13d4c8d59c75f96f67280 /fs/ceph | |
parent | 602adf400201636e95c3fed9f31fba54a3d7e844 (diff) |
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 <sage@newdream.net>
Diffstat (limited to 'fs/ceph')
-rw-r--r-- | fs/ceph/dir.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, | |||
493 | 493 | ||
494 | /* .snap dir? */ | 494 | /* .snap dir? */ |
495 | if (err == -ENOENT && | 495 | if (err == -ENOENT && |
496 | ceph_vino(parent).ino != CEPH_INO_ROOT && /* no .snap in root dir */ | ||
497 | strcmp(dentry->d_name.name, | 496 | strcmp(dentry->d_name.name, |
498 | fsc->mount_options->snapdir_name) == 0) { | 497 | fsc->mount_options->snapdir_name) == 0) { |
499 | struct inode *inode = ceph_get_snapdir(parent); | 498 | struct inode *inode = ceph_get_snapdir(parent); |