-
-
Notifications
You must be signed in to change notification settings - Fork 219
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 reformatting of nvmes to different blocksizes #188
Comments
Should this not already be possible by having additional mkfs arguments passed when formatting a partition? Line 9 in eb5def3
It takes an |
Afaik thats only for the filesystem and not the nvme itself |
Are you talking about aligning partitions to a 4k boundary? Can you give an example of what arguments to what command would needs to be changed? |
I am talking about the lbaf parameter at eg nvme-cli https://www.mankier.com/1/nvme-format |
Ah. I see nvme namespaces could be a thing in disko. The api would probably looks similar to partitions? |
I guess we would need a different table implementation. But I want to split the current one into a gpt and dos table type anyway. The namespaces could be an attrsOf in the new nvme_table type. An nvme_table would only work with nvme drives though. So we would need an assertion for that. For just blocksizes we could also add a option to the current table type. Not sure what reformatting means in this context though |
when you call nvme format it is possible to change the blocksize. Its just a call to the internal nvme formatting function. there is an annoying side effect of having to rebind the devices, as the addressing on pcie is different afterwards
|
From my understanding, this would either require an extension to the |
I run servers with NVMes that are formatted to a block size of 512b by default. It would be cool to have the ability to reformat these to a 4k block size. Is this in the scope of this project?
For now I will implement this by using a hook but a native way would be very nice
The text was updated successfully, but these errors were encountered: