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

Allow setting the physical extent size for volume groups #332

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tuxmea
Copy link

@tuxmea tuxmea commented Mar 7, 2024

No description provided.

@tuxmea tuxmea requested review from bastelfreak and a team as code owners March 7, 2024 14:33
@rwaffen
Copy link

rwaffen commented Mar 7, 2024

ah okay, rubocop does not like it

validate do |value|
raise ArgumentError, "#{value} is not a valid extents size" unless %r{^[0-9]+(\.[0-9]+)?}i.match?(value)
end
defaultto 4
Copy link
Collaborator

Choose a reason for hiding this comment

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

is that the actual default in vgcreate? I couldn't find it in the manpage.

Copy link

Choose a reason for hiding this comment

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

https://linux.die.net/man/8/vgcreate

The default is 4 MiB and it must be at least 1 KiB and a power of 2.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we just omit the -s flag entirely if the parameter isn't specified to truly maintain backwards compatibility?

btw I'm also interested in these updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants