projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdac830
)
ceph: exclude snapdir from readdir results
author
Sage Weil
<sage@newdream.net>
Wed, 11 Nov 2009 23:21:27 +0000
(15:21 -0800)
committer
Sage Weil
<sage@newdream.net>
Wed, 11 Nov 2009 23:50:25 +0000
(15:50 -0800)
It was hidden from sync readdir, but not the cached dcache version.
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/dir.c
patch
|
blob
|
history
diff --git
a/fs/ceph/dir.c
b/fs/ceph/dir.c
index 4f7467961b09f9557ccfa8fbe3505ed8bb8772fb..32ef543672247127186ff4e9a7b34e3ac36ab1fd 100644
(file)
--- 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,