Skip to content

Conversation

vadorovsky
Copy link
Contributor

Before this change, cleanup of the btrfs driver (occuring on each driver
shutdown) resulted in disabling quotas. It was done with an assumption
that quotas can be enabled or disabled on a subvolume level, which is
not true - enabling or disabling quota is always done on a filesystem
level.

That was leading to disabling quota on btrfs filesystems on btrfs driver
shutdown.

This change fixes that behavior and removes misleading subvol prefix
from functions and methods which set up quota (on a filesystem level).

Ref: moby/moby#34593
Signed-off-by: Michal Rostecki mrostecki@opensuse.org

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mrostecki!

@giuseppe PTAL

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vadorovsky vadorovsky marked this pull request as draft April 12, 2021 09:13
@vadorovsky
Copy link
Contributor Author

vadorovsky commented Apr 12, 2021

Due to feedback I got in moby/moby#42273, I'm marking it as a draft and will address that feedback here as well.

@vadorovsky vadorovsky marked this pull request as ready for review April 15, 2021 09:40
@vadorovsky
Copy link
Contributor Author

Actually we agreed in moby/moby#42273 for the initial fix, so I'm marking this PR as ready for review as it is. PTAL

Before this change, cleanup of the btrfs driver (occuring on each driver
shutdown) resulted in disabling quotas. It was done with an assumption
that quotas can be enabled or disabled on a subvolume level, which is
not true - enabling or disabling quota is always done on a filesystem
level.

That was leading to disabling quota on btrfs filesystems on btrfs driver
shutdown.

This change fixes that behavior and removes misleading `subvol` prefix
from functions and methods which set up quota (on a filesystem level).

Ref: moby/moby#34593
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
@rhatdan
Copy link
Member

rhatdan commented Apr 15, 2021

LGTM, just need to get it past the tests.

@rhatdan rhatdan merged commit 29560b3 into containers:master Apr 15, 2021
@vadorovsky vadorovsky deleted the btrfs-fix-quota branch April 16, 2021 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants