zfs/cmd/zpool
Brian Behlendorf aafdbe5d6e Check all partitions with check_file() even when no libblkid is found
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'
2010-04-23 10:59:31 -07:00
..
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Update build system for libblkid integration 2009-10-15 16:25:18 -07:00
zpool_iter.c Merge branch 'gcc-no-parenthesis' into refs/top-bases/gcc-branch 2009-03-11 14:08:48 -07:00
zpool_main.c Linux ZVOL implementation; user-side changes 2009-11-20 12:00:08 -08:00
zpool_util.c Added 'gcc-ident-pragmas' branch. 2009-03-11 10:59:45 -07:00
zpool_util.h Move the world out of /zfs/ and seperate out module build tree 2008-12-11 11:08:09 -08:00
zpool_vdev.c Check all partitions with check_file() even when no libblkid is found 2010-04-23 10:59:31 -07:00