-
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
Add define to enable autotrim to default to on #10719
Add define to enable autotrim to default to on #10719
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10719 +/- ##
===========================================
- Coverage 79.72% 65.17% -14.56%
===========================================
Files 394 312 -82
Lines 124665 107467 -17198
===========================================
- Hits 99390 70040 -29350
- Misses 25275 37427 +12152
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
In FreeBSD trim has defaulted to on for several years. In order to minimize POLA violations on import it's important to maintain this default when importing vendored openzfs in to FreeBSD base. Signed-off-by: Matt Macy <[email protected]>
cb6037e
to
b93ce0a
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.
Having SPA_AUTOTRIM_DEFAULT
as another value in this enum feels a little weird to me. That doesn't necessarily make it wrong, but that's why I'm asking these questions.
Does that property value get written to disk where a 2 would be unexpected? Why did you take this approach rather than a #define SPA_AUTOTRIM_DEFAULT SPA_AUTOTRIM_ON
or putting the #ifdef
in zpool_prop.c
?
There isn't a 2, just 0 and 1. |
Right. I see now. Thanks! |
In FreeBSD trim has defaulted to on for several years. In order to minimize POLA violations on import it's important to maintain this default when importing vendored openzfs in to FreeBSD base. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes openzfs#10719
In FreeBSD trim has defaulted to on for several years. In order to minimize POLA violations on import it's important to maintain this default when importing vendored openzfs in to FreeBSD base. Reviewed-by: Ryan Moeller <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes openzfs#10719
In FreeBSD trim has defaulted to on for several
years. In order to minimize POLA violations on
import it's important to maintain this default
when importing vendored openzfs in to FreeBSD
base.
Signed-off-by: Matt Macy [email protected]
Motivation and Context
Description
How Has This Been Tested?
Types of changes
Checklist:
Signed-off-by
.