aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-08-12 16:22:22 -0700
committerTheodore Ts'o <tytso@mit.edu>2021-08-14 15:10:42 -0400
commita23b50cdb55cb826b8745cbc37429c93f7b60c66 (patch)
tree4d470cfcd7ed010d0c83e0c90849a4e93b522c2c /tests
parentdc28833c3428c4dbc61be17ee6b20f57d8e8e842 (diff)
downloade2fsprogs-a23b50cdb55cb826b8745cbc37429c93f7b60c66.tar.gz
mke2fs: warn about missing y2038 support when formatting fresh ext4 fs
Filesystems with 128-byte inodes do not support timestamps beyond the year 2038. Since we're now less than 16.5 years away from that point, it's time to start warning users about this lack of support when they format an ext4 filesystem with small inodes. (Note that even for ext2 and ext3, we changed the default for non-small file systems in 2008 in commit commit b1631cce648e ("Create new filesystems with 256-byte inodes by default").) So change the mke2fs.conf file to specify 256-byte inodes even for small filesystems, and then add a warning to mke2fs itself if someone is trying to make us format a file system with 128-byte inodes. This can be suppressed by setting the boolean option warn_y2038_dates in the mke2fs.conf file to false, which we do in the case of GNU Hurd, since it only supports 128 byte inodes as of this writing. [ Patch reworked by tytso to only warn in the case of GNU Hurd, since the default for ext2/ext3 was changed for all but small file systems in 2008. ] Signed-off-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/f_detect_xfs/expect1
-rw-r--r--tests/f_detect_xfs/expect.nodebugfs1
-rw-r--r--tests/f_resize_inode/expect1
-rw-r--r--tests/m_64bit_flexbg/expect.11
-rw-r--r--tests/m_dasd_bs/expect.11
-rw-r--r--tests/m_desc_size_128/expect.11
-rw-r--r--tests/m_extent_journal/expect.11
-rw-r--r--tests/m_hugefile_slack/expect1
-rw-r--r--tests/m_meta_bg/expect.11
-rw-r--r--tests/m_mkfs_overhead/expect1
-rw-r--r--tests/m_mmp/expect.11
-rw-r--r--tests/m_no_opt/expect.11
-rw-r--r--tests/m_raid_opt/expect.11
-rw-r--r--tests/m_root_owner/expect.11
-rw-r--r--tests/m_std/expect.11
-rw-r--r--tests/m_uninit/expect.11
-rw-r--r--tests/r_move_itable/expect1
-rw-r--r--tests/r_resize_inode/expect2
-rw-r--r--tests/t_enable_mcsum_ext3/expect1
-rw-r--r--tests/t_iexpand_full/expect1
-rw-r--r--tests/t_iexpand_mcsum/expect1
-rw-r--r--tests/u_bounce_io/expect.11
22 files changed, 23 insertions, 0 deletions
diff --git a/tests/f_detect_xfs/expect b/tests/f_detect_xfs/expect
index a48e8afca..a75637fbd 100644
--- a/tests/f_detect_xfs/expect
+++ b/tests/f_detect_xfs/expect
@@ -19,6 +19,7 @@ test.img contains a xfs file system labelled 'test_filsys'
../misc/tune2fs: Bad magic number in super-block while trying to open test.img
test.img contains a xfs file system labelled 'test_filsys'
*** mke2fs
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 16384 1k blocks and 4096 inodes
Superblock backups stored on blocks:
8193
diff --git a/tests/f_detect_xfs/expect.nodebugfs b/tests/f_detect_xfs/expect.nodebugfs
index d3b793580..26a8a4afc 100644
--- a/tests/f_detect_xfs/expect.nodebugfs
+++ b/tests/f_detect_xfs/expect.nodebugfs
@@ -17,6 +17,7 @@ test.img contains a xfs file system labelled 'test_filsys'
../misc/tune2fs: Bad magic number in super-block while trying to open test.img
test.img contains a xfs file system labelled 'test_filsys'
*** mke2fs
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 16384 1k blocks and 4096 inodes
Superblock backups stored on blocks:
8193
diff --git a/tests/f_resize_inode/expect b/tests/f_resize_inode/expect
index db57ed651..d8815f3b0 100644
--- a/tests/f_resize_inode/expect
+++ b/tests/f_resize_inode/expect
@@ -1,4 +1,5 @@
mke2fs -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 16384 1k blocks and 4096 inodes
Superblock backups stored on blocks:
1025, 3073, 5121, 7169, 9217
diff --git a/tests/m_64bit_flexbg/expect.1 b/tests/m_64bit_flexbg/expect.1
index 956d24854..27fc2a0bc 100644
--- a/tests/m_64bit_flexbg/expect.1
+++ b/tests/m_64bit_flexbg/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 1024 1k blocks and 128 inodes
Allocating group tables: done
diff --git a/tests/m_dasd_bs/expect.1 b/tests/m_dasd_bs/expect.1
index 970d556dd..dd327f0da 100644
--- a/tests/m_dasd_bs/expect.1
+++ b/tests/m_dasd_bs/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 32768 2k blocks and 16384 inodes
Superblock backups stored on blocks:
16384
diff --git a/tests/m_desc_size_128/expect.1 b/tests/m_desc_size_128/expect.1
index 1cd9758f9..eff741ddb 100644
--- a/tests/m_desc_size_128/expect.1
+++ b/tests/m_desc_size_128/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 131072 1k blocks and 8192 inodes
Superblock backups stored on blocks:
1025, 3073, 5121, 7169, 9217, 25601, 27649, 50177, 82945, 128001
diff --git a/tests/m_extent_journal/expect.1 b/tests/m_extent_journal/expect.1
index 9a9219e95..4dbf3be23 100644
--- a/tests/m_extent_journal/expect.1
+++ b/tests/m_extent_journal/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 65536 1k blocks and 16384 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345
diff --git a/tests/m_hugefile_slack/expect b/tests/m_hugefile_slack/expect
index f740cdb9e..e2e2fd629 100644
--- a/tests/m_hugefile_slack/expect
+++ b/tests/m_hugefile_slack/expect
@@ -1,4 +1,5 @@
mke2fs -F -T ext4h -I 128 test.img 786432
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 786432 1k blocks and 98304 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553
diff --git a/tests/m_meta_bg/expect.1 b/tests/m_meta_bg/expect.1
index 1b90b5543..7574ebbd3 100644
--- a/tests/m_meta_bg/expect.1
+++ b/tests/m_meta_bg/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 131072 1k blocks and 32768 inodes
Superblock backups stored on blocks:
1025, 3073, 5121, 7169, 9217, 25601, 27649, 50177, 82945, 128001
diff --git a/tests/m_mkfs_overhead/expect b/tests/m_mkfs_overhead/expect
index adb8fd2f5..0fe845f30 100644
--- a/tests/m_mkfs_overhead/expect
+++ b/tests/m_mkfs_overhead/expect
@@ -1 +1,2 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
test.img: Cannot create filesystem with requested number of inodes while setting up superblock
diff --git a/tests/m_mmp/expect.1 b/tests/m_mmp/expect.1
index 475cd1d08..3acac85a5 100644
--- a/tests/m_mmp/expect.1
+++ b/tests/m_mmp/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 65536 4k blocks and 65536 inodes
Superblock backups stored on blocks:
32768
diff --git a/tests/m_no_opt/expect.1 b/tests/m_no_opt/expect.1
index deaf22ef3..744f2bb8a 100644
--- a/tests/m_no_opt/expect.1
+++ b/tests/m_no_opt/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 65536 1k blocks and 16384 inodes
Superblock backups stored on blocks:
8193, 16385, 24577, 32769, 40961, 49153, 57345
diff --git a/tests/m_raid_opt/expect.1 b/tests/m_raid_opt/expect.1
index 753663121..cf524f2a1 100644
--- a/tests/m_raid_opt/expect.1
+++ b/tests/m_raid_opt/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 131072 1k blocks and 32768 inodes
Superblock backups stored on blocks:
1025, 3073, 5121, 7169, 9217, 25601, 27649, 50177, 82945, 128001
diff --git a/tests/m_root_owner/expect.1 b/tests/m_root_owner/expect.1
index 9c978b021..0c01bfc10 100644
--- a/tests/m_root_owner/expect.1
+++ b/tests/m_root_owner/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 1024 1k blocks and 128 inodes
Allocating group tables: done
diff --git a/tests/m_std/expect.1 b/tests/m_std/expect.1
index a11cb9bc7..10bc6173d 100644
--- a/tests/m_std/expect.1
+++ b/tests/m_std/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 65536 1k blocks and 16384 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345
diff --git a/tests/m_uninit/expect.1 b/tests/m_uninit/expect.1
index b60e8cc81..fbb7edfdf 100644
--- a/tests/m_uninit/expect.1
+++ b/tests/m_uninit/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 131072 1k blocks and 32768 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
diff --git a/tests/r_move_itable/expect b/tests/r_move_itable/expect
index cec0038ae..59760062e 100644
--- a/tests/r_move_itable/expect
+++ b/tests/r_move_itable/expect
@@ -1,4 +1,5 @@
mke2fs -q -F -o Linux -b 1024 -g 256 test.img 1024
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
resize2fs -p test.img 10000
Resizing the filesystem on test.img to 10000 (1k) blocks.
Begin pass 1 (max = 35)
diff --git a/tests/r_resize_inode/expect b/tests/r_resize_inode/expect
index ba1647ea7..cf45b76a3 100644
--- a/tests/r_resize_inode/expect
+++ b/tests/r_resize_inode/expect
@@ -1,4 +1,5 @@
mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 16384
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
resize2fs test.img 65536
Resizing the filesystem on test.img to 65536 (1k) blocks.
The filesystem on test.img is now 65536 (1k) blocks long.
@@ -446,6 +447,7 @@ Group 63: (Blocks 64513-65535)
Free inodes: 16129-16384
--------------------------------
mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 65536
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
resize2fs test.img 16384
Resizing the filesystem on test.img to 16384 (1k) blocks.
The filesystem on test.img is now 16384 (1k) blocks long.
diff --git a/tests/t_enable_mcsum_ext3/expect b/tests/t_enable_mcsum_ext3/expect
index 549e60e93..3bd2ccf1b 100644
--- a/tests/t_enable_mcsum_ext3/expect
+++ b/tests/t_enable_mcsum_ext3/expect
@@ -1,4 +1,5 @@
tune2fs metadata_csum test
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 524288 1k blocks and 65536 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
diff --git a/tests/t_iexpand_full/expect b/tests/t_iexpand_full/expect
index 354818e26..f99ab4bb4 100644
--- a/tests/t_iexpand_full/expect
+++ b/tests/t_iexpand_full/expect
@@ -1,4 +1,5 @@
tune2fs test
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 786432 1k blocks and 98304 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553
diff --git a/tests/t_iexpand_mcsum/expect b/tests/t_iexpand_mcsum/expect
index c24a24569..354b1179b 100644
--- a/tests/t_iexpand_mcsum/expect
+++ b/tests/t_iexpand_mcsum/expect
@@ -1,4 +1,5 @@
tune2fs test
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 786432 1k blocks and 98304 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553
diff --git a/tests/u_bounce_io/expect.1 b/tests/u_bounce_io/expect.1
index a11cb9bc7..10bc6173d 100644
--- a/tests/u_bounce_io/expect.1
+++ b/tests/u_bounce_io/expect.1
@@ -1,3 +1,4 @@
+128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 65536 1k blocks and 16384 inodes
Superblock backups stored on blocks:
8193, 24577, 40961, 57345