Skip to contentSkip to conversation

ext4/306: disable 64bit feature too

PATCH In review Eryu Guan 2 participants 3 messages Apr 9, 2014 – Apr 11, 2014

lore
Share & tools
lore

Eryu Guan

author
#0 lore raw

PATCH 1/1 ext4/306: disable 64bit feature too

mke2fs ext4 without extent feature will fail if 64bit feature is enabled in mke2fs.conf

mke2fs 1.42.9 (28-Dec-2013)
Extents MUST be enabled for a 64-bit filesystem. Pass -O extents to rectify.

So disable 64bit feature together with extent explicitly.

---
 tests/ext4/306 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ext4/306 +1 -1
index 9559cf2..fd50b0e 100755
@@ -48,7 +48,7 @@ _require_scratch
 rm -f $seqres.full
 
 # Make a small ext4 fs with extents disabled & mount it
-yes | mkfs.ext4 -O ^extents $SCRATCH_DEV 512m >> $seqres.full 2>&1
+yes | mkfs.ext4 -O ^extents,^64bit $SCRATCH_DEV 512m >> $seqres.full 2>&1
 _scratch_mount || _fail "couldn't mount fs"
 
 # Create a small non-extent-based file
Signature · 6 lines
1.9.0

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
Reviewed-by on v1 1/1
#1 lore raw
Quoted 28 lines · Eryu Guan

mke2fs ext4 without extent feature will fail if 64bit feature is enabled in mke2fs.conf

mke2fs 1.42.9 (28-Dec-2013)
Extents MUST be enabled for a 64-bit filesystem. Pass -O extents to rectify.

So disable 64bit feature together with extent explicitly.

---
 tests/ext4/306 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ext4/306 +1 -1
index 9559cf2..fd50b0e 100755
@@ -48,7 +48,7 @@ _require_scratch
 rm -f $seqres.full
 
 # Make a small ext4 fs with extents disabled & mount it
-yes | mkfs.ext4 -O ^extents $SCRATCH_DEV 512m >> $seqres.full 2>&1
+yes | mkfs.ext4 -O ^extents,^64bit $SCRATCH_DEV 512m >> $seqres.full 2>&1
 _scratch_mount || _fail "couldn't mount fs"
 
 # Create a small non-extent-based file
Signature · 1 line
1.9.0

Looks fine to me, but you should CC ext4 test changes to [email protected] as well so that the ext4 developers can review such changes are well...

Cheers,

Dave.

Signature · 7 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs
author
#2 lore raw
Quoted 26 lines · Dave Chinner
Quoted 25 lines · Eryu Guan

mke2fs ext4 without extent feature will fail if 64bit feature is enabled in mke2fs.conf

mke2fs 1.42.9 (28-Dec-2013)
Extents MUST be enabled for a 64-bit filesystem. Pass -O extents to rectify.

So disable 64bit feature together with extent explicitly.

---
 tests/ext4/306 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/ext4/306 +1 -1
index 9559cf2..fd50b0e 100755
@@ -48,7 +48,7 @@ _require_scratch
 rm -f $seqres.full
 
 # Make a small ext4 fs with extents disabled & mount it
-yes | mkfs.ext4 -O ^extents $SCRATCH_DEV 512m >> $seqres.full 2>&1
+yes | mkfs.ext4 -O ^extents,^64bit $SCRATCH_DEV 512m >> $seqres.full 2>&1
 _scratch_mount || _fail "couldn't mount fs"
 
Quoted 7 lines
Quoted 3 lines
tests/ext4/306 +0 -0
 # Create a small non-extent-based file
Signature · 1 line
1.9.0

Looks fine to me, but you should CC ext4 test changes to [email protected] as well so that the ext4 developers can review such changes are well...

Ok, will do in future.

Quoted 2 lines

Thanks for the review.

Eryu

Quoted 7 lines

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs