diff options
author | avg <avg@FreeBSD.org> | 2013-11-28 08:48:49 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2013-11-28 08:48:49 +0000 |
commit | db4cf528fcd9711f2d002cb4ae2d5fb2433b9f44 (patch) | |
tree | 30300dcdd686587ec18ccbe588c0a46ae22fd25f /contrib/gcclibs/libcpp/init.c | |
parent | 612913561d1153d2ef28dd3bc93a666b431a94a5 (diff) | |
download | FreeBSD-src-db4cf528fcd9711f2d002cb4ae2d5fb2433b9f44.zip FreeBSD-src-db4cf528fcd9711f2d002cb4ae2d5fb2433b9f44.tar.gz |
fix a serious bug in r258632: offset parameter must be set in zio
In illumos all ioctl zio-s are "global" at the moment. That is they act
on a whole disk, e.g. a cache flush command, and thus do not need either
offset or size parameters.
FreeBSD, on the other hand, has support for TRIM command and that
command requires proper offset and size parameters.
Without this fix all TRIM commands act on the start of any disk or
partition used by ZFS destroying any data there.
Pointyhat to: avg
Tested by: sbruno
MFC after: 3 days
X-MFC with: r258632
Sponsored by: HybridCluster
Diffstat (limited to 'contrib/gcclibs/libcpp/init.c')
0 files changed, 0 insertions, 0 deletions