Skip to contentSkip to conversation

docs: ext4 filesystems can be converted to 64-bit

PATCH Applied Stephen Kitt 4 participants 4 messages Oct 14 – Nov 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index e232749daf5f..51a2150a1bf8 100644
@@ -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
#1 lore raw
Sashiko 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.

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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Stephen Kitt
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

maintainer Applied
#3 lore raw
In reply to Stephen Kitt
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]>