From ff3175040572baae1aacf5d9062192c5df849030 Mon Sep 17 00:00:00 2001 From: Rich Ercolani <214141+rincebrain@users.noreply.github.com> Date: Mon, 14 Jun 2021 12:59:54 -0400 Subject: 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 Reviewed-by: Ryan Moeller Signed-off-by: Rich Ercolani Closes #12238 --- lib/libzutil/zutil_import.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit v1.2.3