]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Fix missing vdev names in zpool status output
authorMichael Martin <mgmartin.mgm@gmail.com>
Wed, 5 Sep 2012 16:46:29 +0000 (09:46 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 6 Sep 2012 05:09:12 +0000 (22:09 -0700)
commitfc24f7c887a040b6dc9f2a3dd3d5ae0c03a5d639
tree051adfef794ca6bd336b6acc8f00257eff45079f
parentcafa9709f3271fe345b571c2feff8d2dc034ed49
Fix missing vdev names in zpool status output

Commit 858219c makes more sense down below in the 'if (verbose)'
section of the code.  Initially, buf and path will never point
to the same location.  Once 'path = buf' is set on a raidz vdev,
the code may drop into the verbose section depending on the
verbose flag.  In here, using a tmpbuf makes sense since now
'buf == path'.

This issue does not occur in the upstream Solaris code because
their implementations of snprintf() allow for buf and path to
be the same address.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #57
lib/libzfs/libzfs_pool.c