diff options
author | наб <[email protected]> | 2022-04-14 23:30:41 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-05-18 12:51:42 -0700 |
commit | 38f4d99f769efbb472ab3c35558700163e4f023c (patch) | |
tree | 720cef5d371484596b80d22fa1e42ce15c5cdd67 /cmd/zpool/zpool_main.c | |
parent | 89e81bc6adf58ec442ddaa23e629bf888bc55488 (diff) |
linux: libzfs: simplify module-loaded check
The short-path is now one access() call,
we always modprobe zfs (ZFS_MODULE_LOADING which doesn't use the libzfs
boolean parsing is gone),
and we use a simple inotify IN_CREATE loop with a timerfd timeout
rather than 10ms kernel-style polling
There's one substantial difference: ZFS_MODULE_TIMEOUT=-1
now means "never give up", rather than "wait 10 minutes"
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #13330
Diffstat (limited to 'cmd/zpool/zpool_main.c')
0 files changed, 0 insertions, 0 deletions