Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#72119 - [cryptsetup] add support for sector-size option in encrypt hook
Attached to Project:
Arch Linux
Opened by Alexey Rychkov (nightfog) - Monday, 13 September 2021, 13:12 GMT
Last edited by Christian Hesse (eworm) - Monday, 20 March 2023, 07:56 GMT
Opened by Alexey Rychkov (nightfog) - Monday, 13 September 2021, 13:12 GMT
Last edited by Christian Hesse (eworm) - Monday, 20 March 2023, 07:56 GMT
|
DetailsAs of 2.4.0-1, the plain dm-crypt device, created with non-default (512) sector-size parameter, is impossible to use.
Even more, user has no way to know that's wrong, because for such devices there is no error on cryptsetup open command. Problems usually arise at mount attempt. The source of the problem is that the device is created and opened with different sector sizes. At the moment it's always opened with 512 bytes long sector size. I suppose to propagate sector-size option too, additionally to already supported. It's cryptdevice third argument, we can use a form 'sector-size=value'. |
This task depends upon
Closed by Christian Hesse (eworm)
Monday, 20 March 2023, 07:56 GMT
Reason for closing: Fixed
Additional comments about closing: in SVN
Monday, 20 March 2023, 07:56 GMT
Reason for closing: Fixed
Additional comments about closing: in SVN
Wondering if we really need this. Still trying to understand your issue... Does your plain dm-crypt use a sector size of 512 bytes or something different?
Then at boot time it failed to mount. With the supplied patch or by other means specifying sector-size option (hard-coding encrypt hook) it works.
Actually I have changed my mind about this option. I think it's a better place for it within 'crypto'.
All options of cryptdevice parameter seemed non essential, optimization options.
But crypto options are different. They are designed for a plain mode.
Consider the fourth option offset. Personally I didn't use it. But someone do. And for them the target is unusable without it, means if they couldn't pass it through. The sector-size is completely the same in logical terms. Most people never need it, but for someone (me) it's vital to support it.
Do you think it worth the effort to transfer this option into crypto group?
It could be made optional sixth argument so it will not break the existing setups.