zfs/cmd
Ned Bass d877ac6bfe Fix intermittent 'zpool add' failures
Creating whole-disk vdevs can intermittently fail if a udev-managed symlink to
the disk partition is already in place.  To avoid this, we now remove any such
symlink before partitioning the disk.  This makes zpool_label_disk_wait() truly
wait for the new link to show up instead of returning if it finds an old link
still in place.  Otherwise there is a window between when udev deletes and
recreates the link during which access attempts will fail with ENOENT.

Also, clean up a comment about waiting for udev to create symlinks.  It no
longer needs to describe the special cases for the link names, since that is
now handled in a separate helper function.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
2010-10-22 12:38:58 -07:00
..
zdb Add FAILFAST support 2010-10-12 14:55:02 -07:00
zfs Add FAILFAST support 2010-10-12 14:55:02 -07:00
zinject Add FAILFAST support 2010-10-12 14:55:02 -07:00
zpios Add FAILFAST support 2010-10-12 14:55:02 -07:00
zpool Fix intermittent 'zpool add' failures 2010-10-22 12:38:58 -07:00
zpool_id Add FAILFAST support 2010-10-12 14:55:02 -07:00
zpool_layout Add FAILFAST support 2010-10-12 14:55:02 -07:00
ztest Add FAILFAST support 2010-10-12 14:55:02 -07:00
Makefile.am Add linux zpios support 2010-08-31 13:42:01 -07:00
Makefile.in Add FAILFAST support 2010-10-12 14:55:02 -07:00