-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor Linux specific functionality out of libzutil #9356
Factor Linux specific functionality out of libzutil #9356
Conversation
I think we can do a better job sharing code here, we're going to have another look. |
b0ed9c5
to
0798708
Compare
eebd10c
to
96bbdc4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @don-brady
@@ -2045,21 +1252,19 @@ zpool_find_import_impl(libpc_handle_t *hdl, importargs_t *iarg) | |||
pthread_mutex_init(&lock, NULL); | |||
|
|||
/* | |||
* Locate pool member vdevs using libblkid or by directory scanning. | |||
* Locate pool member vdevs by blkid or by directory scanning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On FreeBSD is there an blkid equivalent which can be used here? Or will only the scan and cache options be implemented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be a possibility of using libblkid (I see a port for it anyway) but what I anticipate will end up here on FreeBSD is the code we have to scan our GEOM tree.
96bbdc4
to
ffd89cf
Compare
|
ffd89cf
to
1ad1365
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's just address the zfs_verror
nit, and then we can plan to merge this tomorrow.
1ad1365
to
f9689b3
Compare
|
Thanks, looks good. Can you just rebase this to resole the conflict due to some other recent merges. |
f9689b3
to
989090f
Compare
Signed-off-by: Matt Macy <[email protected]> Signed-off-by: Ryan Moeller <[email protected]>
989090f
to
831b0f9
Compare
^^ Rebase |
Codecov Report
@@ Coverage Diff @@
## master #9356 +/- ##
===========================================
+ Coverage 66.62% 79.1% +12.48%
===========================================
Files 326 406 +80
Lines 105097 122527 +17430
===========================================
+ Hits 70017 96925 +26908
+ Misses 35080 25602 -9478
Continue to review full report at Codecov.
|
Signed-off-by: Matt Macy [email protected]
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.