freebsd-dev/sys/cddl
Andriy Gapon 9c5c3cafbd zfs: fix sa_modify_attrs handling of variable-sized attributes
- skip length_idx index for a replaced variable-sized attribute
- skip length_idx index for a removed variable-sized attribute
- also re-arranged code to make sure that length_idx is always
  incremented for variable-sized attributes
- additionally add an assertion that the number of actually produced
  attributes is the same as the expected number of resulting
  attributes

In cooperation with:	Matthew Ahrens <mahrens@delphix.com>
Tested by:	Trent Nelson <trent@snakebite.org>
Reviewed by:	Matthew Ahrens <mahrens@delphix.com> (for upstream)
To do:		get this upstreamed
MFC after:	2 weeks
2012-09-11 07:07:52 +00:00
..
boot/zfs Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
compat/opensolaris Add assfail() and assfail3() to the opensolaris module. 2012-09-10 10:24:57 +00:00
contrib/opensolaris zfs: fix sa_modify_attrs handling of variable-sized attributes 2012-09-11 07:07:52 +00:00
dev Change UL to ULL since time is 32 bits. 2012-07-17 14:36:40 +00:00