diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2016-02-01 15:40:40 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2016-02-01 15:40:40 +0000 |
commit | 984777c43f7686216aa9435f411966c0effc0638 (patch) | |
tree | 0b274ecd3edfecb08c17da400722d5f4d7873f00 /sys/dev/xl | |
parent | ebda96993980813d49b37fa0e49d8aa72ec52fed (diff) | |
parent | d954035a30843e636468722eebacaae030bd8da3 (diff) | |
download | src-984777c43f7686216aa9435f411966c0effc0638.tar.gz src-984777c43f7686216aa9435f411966c0effc0638.zip |
MFV r294821: 6529 Properly handle updates of variably-sized SA entries.
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Ned Bass <bass6@llnl.gov>
Reviewed by: Tim Chase <tim@chase2k.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Andriy Gapon <avg@icyb.net.ua>
illumos/illumos-gate@e7e978b1f75353cb29673af9b35453c20c2827bf
During the update process in sa_modify_attrs(), the sizes of existing
variably-sized SA entries are obtained from sa_lengths[]. The case where
a variably-sized SA was being replaced neglected to increment the index
into sa_lengths[], so subsequent variable-length SAs would be rewritten
with the wrong length. This patch adds the missing increment operation
so all variably-sized SA entries are stored with their correct lengths.
Another problem was that index into attr_desc[] was increased even when
an attribute was removed. If that attribute was not the last attribute,
then the last attribute was lost.
Notes
Notes:
svn path=/head/; revision=295125
Diffstat (limited to 'sys/dev/xl')
0 files changed, 0 insertions, 0 deletions