diff options
author | Brian Behlendorf <[email protected]> | 2016-06-23 15:25:17 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-07-27 13:38:46 -0700 |
commit | 8a39abaafad51861daf197b0e9809dfcf77fd3cf (patch) | |
tree | c5964b86e1e9bf16c339bd6ffbc97db1750ddd4c /zfs.release.in | |
parent | a64f903b06e9135c07f20bc6f8196e2879d2cf57 (diff) |
Multi-thread 'zpool import' for blkid
Commit 519129f added support to multi-thread 'zpool import' for
the case where block devices are scanned for under /dev/. This
commit generalizes that logic and applies it to the case where
device names are acquired from libblkid.
The zpool_find_import_scan() and zpool_find_import_blkid()
functions create an AVL tree containing each device name. Each
entry in this tree is dispatched to a taskq where the function
zpool_open_func() validates the device by opening it and reading
the label. This may result in additional entries being added
to the tree and those device paths being verified.
This is largely how the upstream OpenZFS code behaves but due to
significant differences the non-Linux code has been dropped for
readability. Additionally, this code makes use of taskqs and
kmutexs which are normally not available to the command line tools.
Special care has been taken to allow their use in the import
functions.
Signed-off-by: Brian Behlendorf <[email protected]>
Signed-off-by: Olaf Faaland <[email protected]>
Closes #4794
Diffstat (limited to 'zfs.release.in')
0 files changed, 0 insertions, 0 deletions