Whamcloud - gitweb
LU-6027 mdt: Allow user EAs with empty values 00/12900/9
authorLi Wei <wei.g.li@intel.com>
Mon, 1 Dec 2014 07:05:56 +0000 (15:05 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 Jan 2015 23:44:29 +0000 (23:44 +0000)
commit165f65a7aa07d55d284d419cdaa04eed2d96ade3
tree8d702fb5eb769ed21656f46df15da240e3a4e0a9
parent749dc54622b2c3267c6c97eb770702b437a7897d
LU-6027 mdt: Allow user EAs with empty values

Setting a user EA with an empty value is a valid case, according to
attr(5) and some experiments with ext4.  Doing so with Lustre
currently results in what appears to be a no-op---the EA name won't be
added or updated (if an EA with the same name already existed).

Change-Id: Ic8950963baeceada99c4607631ecd2a6510ae3ed
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/12900
Tested-by: Jenkins
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdt/mdt_xattr.c
lustre/tests/sanity.sh