aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-11-11 15:21:27 -0800
committerSage Weil <sage@newdream.net>2009-11-11 15:50:25 -0800
commit09b8a7d2af83ae96dc052f9708e50140d06a9b6c (patch)
treecb863b7cc50846bee4d8e85ec974dca5737de11e /fs
parentcdac830313fa6bf2831693af80fefe4aaac11b7d (diff)
ceph: exclude snapdir from readdir results
It was hidden from sync readdir, but not the cached dcache version. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
index 4f7467961b0..32ef5436722 100644
--- a/fs/ceph/dir.c
+++ b/fs/ceph/dir.c
@@ -131,6 +131,7 @@ more:
goto out_unlock;
}
if (!d_unhashed(dentry) && dentry->d_inode &&
+ ceph_snap(dentry->d_inode) != CEPH_SNAPDIR &&
filp->f_pos <= di->offset)
break;
dout(" skipping %p %.*s at %llu (%llu)%s%s\n", dentry,