linux/fs/ceph
Sage Weil 17db143fc0 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>
2011-01-13 15:50:11 -08:00
..
addr.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client 2010-11-19 15:32:22 -08:00
caps.c ceph: fix rdcache_gen usage and invalidate 2010-11-08 07:29:05 -08:00
ceph_frag.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
debugfs.c ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
dir.c ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
export.c ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
file.c ceph: mark user pages dirty on direct-io reads 2010-12-17 09:54:40 -08:00
inode.c ceph: fix getattr on directory when using norbytes 2011-01-13 15:50:06 -08:00
ioctl.c ceph: add CEPH_MDS_OP_SETDIRLAYOUT and associated ioctl. 2010-10-20 15:38:23 -07:00
ioctl.h ceph: fix ioctl magic 2010-12-06 09:45:22 -08:00
Kconfig ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
locks.c ceph: Behave better when handling file lock replies. 2010-12-01 14:22:34 -08:00
Makefile ceph: Makefile: Remove unnessary code 2011-01-12 15:15:13 -08:00
mds_client.c ceph: associate requests with opening sessions 2011-01-12 15:15:13 -08:00
mds_client.h ceph: drop redundant r_mds field 2011-01-12 15:15:13 -08:00
mdsmap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
snap.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
strings.c ceph: factor out libceph from Ceph file system 2010-10-20 15:37:28 -07:00
super.c ceph: fsc->*_wq's aren't used in memory reclaim path 2011-01-12 15:15:14 -08:00
super.h ceph: add dir_layout to inode 2011-01-12 15:15:12 -08:00
xattr.c ceph: fix xattr rbtree search 2011-01-13 15:50:11 -08:00