-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
UPSTREAM: <carry>: ensure perFSGroup quantity is positive #20564
UPSTREAM: <carry>: ensure perFSGroup quantity is positive #20564
Conversation
@@ -83,6 +83,10 @@ func PatchVolumePluginsForLocalQuota(rootdir string, plugins *[]volume.VolumePlu | |||
return fmt.Errorf("unable to parse \"%s\" as a quantity", volumeConfig.LocalQuota.PerFSGroup) | |||
} | |||
|
|||
if quota.Value() <= 0 { |
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.
Is perFSGroup able to be set to 0
? Then this comparison would be < 0. Just double checking
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.
Basically that would make all of the emptydirs effectively read-only and.. well.. permanently empty. So that didn't seem like something someone would ever want in my mind. Granted, you could set it to 1 bytes and probably be in the same boat but if you set a non-zero lower limit, you'd have to document it and I didn't want to do that 😄
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.
Makes sense, thanks!
/lgtm |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: derekwaynecarr, rphillips, sjenning The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
xref https://bugzilla.redhat.com/show_bug.cgi?id=1594144
@derekwaynecarr