Truncate the xattr znode when updating existing attributes.
authorGunnar Beutner <gunnar@beutner.name>
Sun, 17 Apr 2011 18:31:33 +0000 (20:31 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 19 Apr 2011 21:14:40 +0000 (14:14 -0700)
commitbec30953cdbbb03d2a3791bd1ffe5b062bad0ec3
treef9bcae8d2924b4379079c8713ab9e061118672c8
parent274b7e79f3baece5ab28331e73629f6e81fdb5ca
Truncate the xattr znode when updating existing attributes.

If the attribute's new value was shorter than the old one the old
code would leave parts of the old value in the xattr znode.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #203
module/zfs/zpl_xattr.c