-
Notifications
You must be signed in to change notification settings - Fork 55
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
Specify nrext64 option when creating XFS filesystem #3511
Specify nrext64 option when creating XFS filesystem #3511
Conversation
To be very safe, we need to check the version of mkfs.xfs |
cf64e65
to
effbb63
Compare
6618010
to
7bc08d1
Compare
7bc08d1
to
40a1b53
Compare
Comment fix, nothing more. |
40a1b53
to
e747de9
Compare
|
e747de9
to
64538ff
Compare
src/engine/strat_engine/cmd.rs
Outdated
// package availabe that necessarily adheres to the xfsprogs versioning | ||
// scheme. | ||
let use_nrext64_option = match get_mkfs_xfs_version().and_then(|v| { | ||
v.split('.') |
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.
We may not want to add this now, but this crate would simplify this code a lot. https://docs.rs/semver/latest/semver/
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.
We already depend on semver transitively. I can try using semver, but I was kind of against doing so originally, because it uses the specific crate semver rules, and I was worried that someday a version of xfsprogs would use some non-standard format and break the version parsing part. But then, I guess, we would just log the error and add in the command-line option anyway, so there's really no good reason to avoid using semver. I'll give it a go.
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.
Okay sounds good!
stratisd never uses it anymore, not since the size of the MDV was increased. Signed-off-by: mulhern <[email protected]>
Signed-off-by: mulhern <[email protected]>
Signed-off-by: mulhern <[email protected]>
Signed-off-by: mulhern <[email protected]>
64538ff
to
e80a361
Compare
Tests check out... |
Closes #3504