diff options
author | avg <avg@FreeBSD.org> | 2012-09-11 07:07:52 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2012-09-11 07:07:52 +0000 |
commit | a7cf665d5f7e2a94346c692418677188cca0356f (patch) | |
tree | b0fc216ec937b5b2b64d458c9279453c016289c8 /lib/libc/stdio/vprintf.c | |
parent | 8d374c042e8168b7f11ebc7fab17d1a9719106c9 (diff) | |
download | FreeBSD-src-a7cf665d5f7e2a94346c692418677188cca0356f.zip FreeBSD-src-a7cf665d5f7e2a94346c692418677188cca0356f.tar.gz |
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
Diffstat (limited to 'lib/libc/stdio/vprintf.c')
0 files changed, 0 insertions, 0 deletions