diff options
author | Brian Behlendorf <[email protected]> | 2013-10-11 14:24:18 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-10-22 10:25:51 -0700 |
commit | 11cb9d773f48830cf3ff718861c070a8937c6a03 (patch) | |
tree | ee708094741cf8959364d63262655d02f18f97ae /include/libzfs.h | |
parent | b3c49d3df82466646bde9beebce7bbf0b3c41853 (diff) |
Increase default udev wait time
When creating a new pool, or adding/replacing a disk in an existing
pool, partition tables will be automatically created on the devices.
Under normal circumstances it will take less than a second for udev
to create the expected device files under /dev/. However, it has
been observed that if the system is doing heavy IO concurrently udev
may take far longer. If you also throw in some cheap dodgy hardware
it may take even longer.
To prevent zpool commands from failing due to this the default wait
time for udev is being increased to 30 seconds. This will have no
impact on normal usage, the increase timeout should only be noticed
if your udev rules are incorrectly configured.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1646
Diffstat (limited to 'include/libzfs.h')
-rw-r--r-- | include/libzfs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libzfs.h b/include/libzfs.h index 3826c2cc8..273286ceb 100644 --- a/include/libzfs.h +++ b/include/libzfs.h @@ -57,6 +57,11 @@ extern "C" { #define DISK_ROOT "/dev" #define UDISK_ROOT "/dev/disk" +/* + * Default wait time for a device name to be created. + */ +#define DISK_LABEL_WAIT (30 * 1000) /* 30 seconds */ + #define DEFAULT_IMPORT_PATH_SIZE 7 extern char *zpool_default_import_path[DEFAULT_IMPORT_PATH_SIZE]; |