Whamcloud - gitweb
b=22187 properly handle null value for setattr -n lustre.lov
authoryangsheng <Sheng.Yang@Sun.COM>
Tue, 16 Mar 2010 13:58:48 +0000 (21:58 +0800)
committerJohann Lombardi <johann@sun.com>
Tue, 16 Mar 2010 14:13:14 +0000 (15:13 +0100)
commit11f90c515ae4d87e80cb89f55fa34f74f9a2e74d
tree5dd392abf522f1d8df33702e5887ed77afc583e8
parentca32f1810a5a4900acb202cf4ff2ecb94b99610a
b=22187 properly handle null value for setattr -n lustre.lov

i=adilger
i=johann

Running "setfattr -n trusted.lov ." causes a NULL dereference
in ll_setxattr() due to no checking if "value" is NULL.
This command now resets to the default striping when
executed against a directory.
lustre/llite/dir.c
lustre/llite/xattr.c
lustre/mdc/mdc_lib.c