zfsonlinux/zfs — pull request #2423 by wrouesnel (2014-06-25 13:23:22+00:00)
Title: Add -o offset, -a search options to zdb for use with the -l flag

The -l option is modified to accept an offset parameter which tells it to
read ZFS labels from a offset bytes into the device if possible.

The -o option modifies -l to read the ZFS device label from an offset into the
given device. The actual labels are read from their normal position presuming
the offset is the start of the device.

The -a option causes zdb to try and read ZFS device labels starting from every
byte past the offset, and stops once a valid label is found.

This provides the a byte-offset boundary for creating a containing partition
to allow for successful pool imports.