aafdbe5d6e
When creating a new pool on a block device we need to check all the partitions even if we don't have liblkdid support. In this case we can't consult the blkid cache but we still can call check_file() and attempt to read a valid label from each partition. Additionally, the O_EXCL flag was removed because the device will be opened multiple times and this was causing the check the file. The device is only opened read-only anyway so this is still safe. $ sudo zpool create tank /dev/sdz invalid vdev specification use '-f' to override the following errors: /dev/sdz1 is part of potentially active pool 'tank' |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
zpool_iter.c | ||
zpool_main.c | ||
zpool_util.c | ||
zpool_util.h | ||
zpool_vdev.c |