Whamcloud - gitweb
LU-3938 osd-zfs: Account for ZAP when shrinking an xattr 71/7671/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Mon, 16 Sep 2013 17:00:46 +0000 (13:00 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 23 Sep 2013 00:12:57 +0000 (00:12 +0000)
commitc6dd479164dcb32d401bb203983f6d4840d5268b
tree645d77b400e02e550f94ad69c0e94b85875284b0
parentd48d1d811ad512a38a5eaee798b1309321d4a63d
LU-3938 osd-zfs: Account for ZAP when shrinking an xattr

When an xattr is too big for SA it is put in the ZAP, if it is
replaced with one that fits in SA, the one in ZAP should be removed,
otherwise the object will end up with two xattrs with the same name,
and everything gets confused.

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: I5d33b9e505c751ec01811217377656171553659d
Reviewed-on: http://review.whamcloud.com/7671
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osd-zfs/osd_xattr.c