aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/zpl_xattr.c
diff options
context:
space:
mode:
authorNikolay Borisov <[email protected]>2016-04-13 09:40:42 +0300
committerBrian Behlendorf <[email protected]>2016-04-18 11:55:22 -0700
commit8fc5674c522e22f0b97e4714bf5410e24d481afa (patch)
tree04c7683c08e47eb1cba9a62ff30d81875b535bf1 /module/zfs/zpl_xattr.c
parent98f03691a4c08f38ca4538c468e9523f8e6b24be (diff)
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 <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4438
Diffstat (limited to 'module/zfs/zpl_xattr.c')
0 files changed, 0 insertions, 0 deletions