mirror_zfs/cmd
Etienne Dechamps 6aec1cd5a6 Fix ztest vdev file paths.
Currently, in several instances (but not all), ztest generates vdev
file paths using a statement similar to this:

    snprintf(path, sizeof (path), ztest_dev_template, ...);

This worked fine until 40b84e7aec, which
changed path to be a pointer to the heap instead of an array allocated
on the stack. Before this change, sizeof(path) would return the size of
the array; now, it returns the size of the pointer instead.

As a result, the aforementioned sprintf statement uses the wrong size
and truncates the vdev file path to the first 4 or 8 bytes (depending
on the architecture). Typically, with default settings, the file path
will become "/tmp/zt" instead of "/test/ztest.XXX".

This issue only exists in ztest_vdev_attach_detach() and
ztest_fault_inject(), which explains why ztest doesn't fail right away.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #989
2012-10-03 13:32:48 -07:00
..
mount_zfs Add libnvpair to mount_zfs dependencies 2012-09-02 15:36:09 -07:00
vdev_id Remove autotools products 2012-08-27 11:47:44 -07:00
zdb Illumos #2088 zdb could use a reasonable manual page 2012-09-18 09:09:13 -07:00
zfs Illumos #2703: add mechanism to report ZFS send progress 2012-09-19 13:39:06 -07:00
zinject Remove autotools products 2012-08-27 11:47:44 -07:00
zpios Remove autotools products 2012-08-27 11:47:44 -07:00
zpool Illumos #1948: zpool list should show more detailed pool info 2012-09-19 13:39:05 -07:00
zpool_id Remove autotools products 2012-08-27 11:47:44 -07:00
zpool_layout Remove autotools products 2012-08-27 11:47:44 -07:00
zstreamdump Add zstreamdump .gitignore 2012-09-06 14:23:11 -07:00
ztest Fix ztest vdev file paths. 2012-10-03 13:32:48 -07:00
zvol_id Remove autotools products 2012-08-27 11:47:44 -07:00
Makefile.am Add zstreamdump(8) command to examine ZFS send streams. 2012-09-02 14:54:27 -07:00