Skip to content

Commit

Permalink
ceph: exclude snapdir from readdir results
Browse files Browse the repository at this point in the history
It was hidden from sync readdir, but not the cached dcache version.

Signed-off-by: Sage Weil <sage@newdream.net>
  • Loading branch information
Sage Weil committed Nov 11, 2009
1 parent cdac830 commit 09b8a7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ceph/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ static int __dcache_readdir(struct file *filp,
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,
Expand Down

0 comments on commit 09b8a7d

Please sign in to comment.