-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Support size options on builtin volumes #10973
Conversation
@mheon PTAL |
Nice and simple, LGTM |
libpod/volume.go
Outdated
@@ -49,6 +49,8 @@ type VolumeConfig struct { | |||
UID int `json:"uid"` | |||
// GID the volume will be created as. | |||
GID int `json:"gid"` | |||
// Size maximum of the volume. | |||
Size int64 `json:"gid"` |
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.
Should we store this as uint64 given that SetQuota()
accepts uint64?
Also the json field name is wrong s/gid/size/
.
f381ca5
to
af30626
Compare
} | ||
if projectQuotaSupported { |
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.
} | |
if projectQuotaSupported { |
Just like this? We don’t need to set quota (and potentially conflict with XFS project IDs).
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.
don’t need to set quota … if there isn’t a quota request.
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.
… actually, all of this, including the quota support check, can be wrapped inside the volume.config.{Size,Inodes} > 0
condition.
/me steps away to regain focus.
[NO TESTS NEEDED] Since it is difficult to setup xfs quota Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1982164 Signed-off-by: Daniel J Walsh <[email protected]>
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.
LGTM
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, rhatdan, saschagrunert 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 |
We're feature-frozen at this point, and this counts as a feature. Will that cause us problems? |
@mheon it has an associated BZ, so I think it's fair game. |
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1982164
Signed-off-by: Daniel J Walsh [email protected]