summaryrefslogtreecommitdiffstats
path: root/lib/libspl
diff options
context:
space:
mode:
authorChunwei Chen <[email protected]>2018-01-26 10:49:46 -0800
committerBrian Behlendorf <[email protected]>2018-01-26 10:49:46 -0800
commit522db29275b81c18c2bf53a95efa1aedeb13b428 (patch)
tree3edfce11d4d86d2fcb33e48cf80cbd8603b44b1e /lib/libspl
parentf55a8757a6be24c36c25e24ab5c30dcddf2ad954 (diff)
zpool import -d to specify device path
When we know which devices have the pool we are looking for, sometime it's better if we can directly pass those device paths to zpool import instead of letting it to search through all unrelated stuff, which might take a lot of time if you have hundreds of disks. This patch allows option -d <dev_path> to zpool import. You can have multiple pairs of -d <dev_path>, and zpool import will only search through those devices. For example: zpool import -d /dev/sda -d /dev/sdb Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Chunwei Chen <[email protected]> Closes #7077
Diffstat (limited to 'lib/libspl')
-rw-r--r--lib/libspl/include/libgen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libspl/include/libgen.h b/lib/libspl/include/libgen.h
index 7c03d81fd..c46d7454e 100644
--- a/lib/libspl/include/libgen.h
+++ b/lib/libspl/include/libgen.h
@@ -28,6 +28,7 @@
#define _LIBSPL_LIBGEN_H
#include <sys/types.h>
+#include_next <libgen.h>
extern int mkdirp(const char *, mode_t);