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 <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Rich Ercolani <rincebrain@gmail.com> Closes #12238
This commit is contained in:
parent
83ba91adf6
commit
ff31750405
|
@ -1260,6 +1260,7 @@ zpool_find_import_scan_dir(libpc_handle_t *hdl, pthread_mutex_t *lock,
|
||||||
switch (dp->d_type) {
|
switch (dp->d_type) {
|
||||||
case DT_UNKNOWN:
|
case DT_UNKNOWN:
|
||||||
case DT_BLK:
|
case DT_BLK:
|
||||||
|
case DT_LNK:
|
||||||
#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
case DT_CHR:
|
case DT_CHR:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue