mirror_zfs/lib/libzfs
Nikolay Borisov 8fc5674c52 Rework zpool import excluded devices check
Current zpool import code skips directory entries which have prefixes
similar to some system files on linux such as "fd", "core" etc. However,
this means one cannot have one's zpools hosted inside files which are named
e.g. core-1 or lp. Furthermore, apart from the string checks there is already
which makes the zpool_open_func work only with regular files and block devices.

To fix this problem remove most of the checks since they are redundant but
leave the checks for the 'hpet' and 'watchdog' names. Furthermore, change
the checks to strcmp which albeit less safe than strncmp allows to have
devices whose names are prefixed by 'hpet' or 'watchdog'.

Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4438
2016-04-18 11:55:22 -07:00
..
.gitignore Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_changelist.c Remove ZFC_IOC_*_MINOR ioctl()s 2013-12-16 09:15:57 -08:00
libzfs_config.c Fix zpool iostat bandwidth/ops calculation 2016-03-08 17:43:33 -08:00
libzfs_core.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
libzfs_dataset.c Illumos 4953, 4954, 4955 2016-01-15 15:38:36 -08:00
libzfs_diff.c Illumos 4448 - zfs diff misprints unicode characters 2016-02-05 13:04:58 -08:00
libzfs_fru.c cstyle: Resolve C style issues 2013-12-18 16:46:35 -08:00
libzfs_graph.c Illumos #3464 2013-09-04 16:01:24 -07:00
libzfs_import.c Rework zpool import excluded devices check 2016-04-18 11:55:22 -07:00
libzfs_iter.c Illumos 5427 - memory leak in libzfs when doing rollback 2015-07-10 12:09:32 -07:00
libzfs_mount.c Make zfs mount according to relatime config in dataset 2016-04-05 18:55:59 -07:00
libzfs_pool.c Add support for devid and phys_path keys in vdev disk labels 2016-03-31 13:45:53 -07:00
libzfs_sendrecv.c Illumos 5960, 5925 2016-01-08 15:08:19 -08:00
libzfs_status.c Read spl_hostid module parameter before gethostid() 2015-02-04 16:44:53 -08:00
libzfs_util.c Add the ZFS Test Suite 2016-03-16 13:46:16 -07:00
libzfs.pc.in Add a pkgconfig file 2014-08-28 07:59:43 -07:00
Makefile.am Add support for devid and phys_path keys in vdev disk labels 2016-03-31 13:45:53 -07:00