diff options
author | Rich Ercolani <[email protected]> | 2021-06-14 12:59:54 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-14 09:59:54 -0700 |
commit | ff3175040572baae1aacf5d9062192c5df849030 (patch) | |
tree | 4eef08e51959b15f5ac0d99c26d4c5db3d9f3840 /lib | |
parent | 83ba91adf6c0b4b1a5b0f0a6f3e84d267e689915 (diff) |
Fix importing with symlinks
It turns out that symlinks are heavily used on Linux in /dev/disk.
So let's allow importing from them.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Rich Ercolani <[email protected]>
Closes #12238
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libzutil/zutil_import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c index 9bd12973f..b5b2d7dbe 100644 --- a/lib/libzutil/zutil_import.c +++ b/lib/libzutil/zutil_import.c @@ -1260,6 +1260,7 @@ zpool_find_import_scan_dir(libpc_handle_t *hdl, pthread_mutex_t *lock, switch (dp->d_type) { case DT_UNKNOWN: case DT_BLK: + case DT_LNK: #ifdef __FreeBSD__ case DT_CHR: #endif |