HomeFreeBSD

Readd zpool_clear_label() from OpenSolaris

Description

Readd zpool_clear_label() from OpenSolaris

This patch restores the zpool_clear_label() function from
OpenSolaris. This was removed by commit d603ed6 because
it wasn't clear we had a use for it in ZoL. However, this
functionality is a prerequisite for adding the 'zpool labelclear'
command from FreeBSD.

As part of bringing this change in the zpool_clear_label()
function was changed to use fstat64_blk(2) for compatibility
with Linux.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #1126

Details

Provenance
Dmitry Khasanov <pik4ez@gmail.com>Authored on Jul 5 2013, 10:44 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 9 2013, 10:42 PM
Parents
rG50210587563b: zdb: enhancement - Display SA xattrs.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG51a3ae72d23d: Readd zpool_clear_label() from OpenSolaris (authored by Dmitry Khasanov <pik4ez@gmail.com>).Jul 9 2013, 10:42 PM