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

add rdrw open disk mode #177

Merged
merged 1 commit into from
Apr 17, 2023
Merged

Conversation

ekodian
Copy link
Contributor

@ekodian ekodian commented Apr 5, 2023

Add RDWR mode for diskfs.Open(...), so partitions could be resized without exclusive write access. For example growpart uses sgdisk to resize partitions on running systems.

@deitch
Copy link
Collaborator

deitch commented Apr 9, 2023

Isn't that dangerous? When the kernel opens a disk, it almost always opens it exclusive, does it not?

@ekodian
Copy link
Contributor Author

ekodian commented Apr 10, 2023

Yes, but you can do it and for example cloud-int does this thing on start, using growpart to extend disk. I think - how you open disk is solely a user's responsibility.

@deitch
Copy link
Collaborator

deitch commented Apr 17, 2023

solely a user's responsibility

Which is the argument I have made over and over again with other projects, and here I am arguing against it. Hoisted on my own petard. Good point!

@deitch deitch merged commit e29f8c4 into diskfs:master Apr 17, 2023
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.

None yet

2 participants