Skip to content
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

drop qgroupid in share create when quotas are disabled #2506 #2511

Conversation

phillxnet
Copy link
Member

Previously we passed our -1/-1 'quotas disabled' flag value to btrfs subvol create and it was silently ignored. This no longer works: resulting in an error: 'invalid qgroupid ...'. So drop the use of '-i qgroupid' when our flag value is found. Includes updated docstrings for the altered code.

Fixes #2506

Also includes contextual fix re typo in two log entries that advice on quota indeterminate remedial action:
"btrfs qgroup disable" corrected to "btrfs quota disable"

Fixes #2509

Previously we passed our -1/-1 'quotas disabled' flag value
to btrfs subvol create and it was silently ignored. This no
longer works: resulting in an error: 'invalid qgroupid ...'.
So drop the use of '-i qgroupid' when our flag value is
found. Includes updated docstrings for the altered code.

Also includes contextual fix re typo in two log entries
that advice on quota indeterminate remedial action:
"btrfs qgroup disable" corrected to "btrfs quota disable"
@phillxnet
Copy link
Member Author

Testing

No tests were added or altered and we have the following result form our current test set:

Ran 247 tests in 28.613s

OK

Functional testing via Web-UI:

A pool was set quotas disabled and a share was created successfully, previous to this proposed patch the issue was evident. Quotas were re-enabled and our prior behaviour of Rockstor native (2015/n) qgroup assignment was performed when subsequent shares were created.

@phillxnet phillxnet merged commit 6db3cb1 into rockstor:testing Mar 6, 2023
@phillxnet phillxnet deleted the 2506_(t)_Rockstor_4.5.7_Cannot_create_share_with_quotas_disabled_on_pool branch March 6, 2023 14:29
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.

1 participant