docs: ext4 filesystems can be converted to 64-bit
Subsystems (2)
PATCH 1/1 docs: ext4 filesystems can be converted to 64-bit
Since commit fe12931 ("resize2fs: convert fs to and from 64bit mode") in e2fsprogs, which shipped in version 1.43, resize2fs can convert filesystems from 32-bit to 64-bit and back, so the mention in the checksum documentation that this is impossible is obsolete. This fixes that.
--- Documentation/filesystems/ext4/checksums.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/filesystems/ext4/checksums.rst +3 -3
@@ -10,9 +10,9 @@ of October 2012 the only supported algorithm is crc32c. Some data structures did not have space to fit a full 32-bit checksum, so only the lower 16 bits are stored. Enabling the 64bit feature increases the data structure size so that full 32-bit checksums can be stored for many data -structures. However, existing 32-bit filesystems cannot be extended to -enable 64bit mode, at least not without the experimental resize2fs -patches to do so. +structures. ``resize2fs`` in ``e2fsprogs`` 1.43 or later can be used to +convert filesystems from 32-bit to 64-bit and back (using the ``-b`` +and ``-s`` options). Existing filesystems can have checksumming added by running ``tune2fs -O metadata_csum`` against the underlying device. If tune2fs
Signature · 1 line
2.56.0
[email protected]
AI reviewSashiko has reviewed this patch and found no issues. It looks great!
Quoted 7 lines
Since commit fe12931 ("resize2fs: convert fs to and from 64bit mode") in e2fsprogs, which shipped in version 1.43, resize2fs can convert filesystems from 32-bit to 64-bit and back, so the mention in the checksum documentation that this is impossible is obsolete. This fixes that.
Signed-off-by Stephen Kitt <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great!
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 4 lines · Stephen Kitt
Since commit fe12931 ("resize2fs: convert fs to and from 64bit mode") in e2fsprogs, which shipped in version 1.43, resize2fs can convert filesystems from 32-bit to 64-bit and back, so the mention in the checksum documentation that this is impossible is obsolete.
Hi Stephen,
I checked the claims against the e2fsprogs sources: commit fe12931 is "resize2fs: convert fs to and from 64bit mode" (Darrick J. Wong), the v1.43 RELEASE-NOTES say that resize2fs can now convert file systems between 64-bit and 32-bit mode, and resize/main.c at v1.43 accepts -b (enable 64bit) and -s (disable 64bit), which v1.42.13 does not have. So the new text is accurate. This was also the only place in Documentation/filesystems/ext4/ that mentioned the old limitation.
I built the documentation with the patch applied and it adds no new warnings. checkpatch only complains about the unknown commit id, which is expected since it is an e2fsprogs commit.
One optional suggestion, which does not change my review: in v1.43 resize2fs refuses to change the 64bit feature while the filesystem is mounted ("Cannot change the 64bit feature while the filesystem is mounted."), and enabling it also requires the extents feature. Since the sentence replaces one that was about a limitation, it might be worth saying that the conversion is done on an unmounted filesystem, for example:
``resize2fs`` in ``e2fsprogs`` 1.43 or later can be used to convert unmounted filesystems from 32-bit to 64-bit and back (using the ``-b`` and ``-s`` options).
Thanks,
Daniel
Quoted 8 lines · Stephen Kitt
Since commit fe12931 ("resize2fs: convert fs to and from 64bit mode") in e2fsprogs, which shipped in version 1.43, resize2fs can convert filesystems from 32-bit to 64-bit and back, so the mention in the checksum documentation that this is impossible is obsolete. This fixes that.
[...]
Applied, thanks!
[1/1] docs: ext4 filesystems can be converted to 64-bit
commit: c9db324f2051c0aa3aea5bd2cec299ae9c9d79e7
Best regards,
Signature · 1 line
Theodore Ts'o <[email protected]>