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

Commit 09b8a7d2 authored by Sage Weil's avatar Sage Weil
Browse files

ceph: exclude snapdir from readdir results



It was hidden from sync readdir, but not the cached dcache version.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent cdac8303
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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,