diff options
author | Sage Weil <sage@newdream.net> | 2011-01-14 00:27:29 +0100 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-01-14 00:50:11 +0100 |
commit | 17db143fc091238c43ab9f373974ca2224a4c3f8 (patch) | |
tree | d72df7c0d88e6e9176292a560e9e9fcac12848aa /fs/ceph/super.c | |
parent | ceph: fix getattr on directory when using norbytes (diff) | |
download | linux-17db143fc091238c43ab9f373974ca2224a4c3f8.tar.xz linux-17db143fc091238c43ab9f373974ca2224a4c3f8.zip |
ceph: fix xattr rbtree search
Fix xattr name comparison in rbtree search for strings that share a prefix.
The *name argument is null terminated, but the xattr name is not, so we
need to use strncmp, but that means adjusting for the case where name is
a prefix of xattr->name.
The corresponding case in __set_xattr() already handles this properly
(although in that case *name is also not null terminated).
Reported-by: Sergiy Kibrik <sakib@meta.ua>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/super.c')
0 files changed, 0 insertions, 0 deletions