diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-21 16:50:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-06-21 16:50:46 +0200 |
commit | c9a13116a4497f4597ad5db6eb3cac9680fd6fc4 (patch) | |
tree | 7089fec95d805ae2678efa875aaf35608e7f9b8f /testsuite | |
parent | 9ee426649006c4a0db7b4784f2ebb96865d4c705 (diff) | |
download | busybox-w32-c9a13116a4497f4597ad5db6eb3cac9680fd6fc4.tar.gz busybox-w32-c9a13116a4497f4597ad5db6eb3cac9680fd6fc4.tar.bz2 busybox-w32-c9a13116a4497f4597ad5db6eb3cac9680fd6fc4.zip |
mount: fix the wrongly stored fs creation time
This bug made our ext2 images non-mountable by ext4 driver.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/mount.tests | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/testsuite/mount.tests b/testsuite/mount.tests index c5891be83..a0bc50888 100755 --- a/testsuite/mount.tests +++ b/testsuite/mount.tests | |||
@@ -36,7 +36,8 @@ testing "mount -o remount,mand" \ | |||
36 | "mount -o loop mount.image1m $testdir "\ | 36 | "mount -o loop mount.image1m $testdir "\ |
37 | "&& grep -Fc $testdir </proc/mounts "\ | 37 | "&& grep -Fc $testdir </proc/mounts "\ |
38 | "&& mount -o remount,mand $testdir "\ | 38 | "&& mount -o remount,mand $testdir "\ |
39 | "&& grep -F $testdir </proc/mounts | grep -c '[, ]mand[, ]'" \ | 39 | "&& grep -F $testdir </proc/mounts | grep -c '[, ]mand[, ]'"\ |
40 | "|| grep -F $testdir </proc/mounts" \ | ||
40 | "1\n""1\n" \ | 41 | "1\n""1\n" \ |
41 | "" "" | 42 | "" "" |
42 | 43 | ||
@@ -83,4 +84,28 @@ b | |||
83 | "" "" | 84 | "" "" |
84 | SKIP= | 85 | SKIP= |
85 | 86 | ||
87 | |||
88 | testing "mount RO loop" "\ | ||
89 | exec 2>&1 | ||
90 | umount -d mount.dir 2>/dev/null | ||
91 | rmdir mount.dir 2>/dev/null | ||
92 | mkdir -p mount.dir | ||
93 | ( | ||
94 | cd mount.dir || { echo 'cd error'; exit 1; } | ||
95 | mkdir z1 z2 || { echo 'mkdir error'; exit 1; } | ||
96 | mount -t tmpfs tmpfs z1 || { echo 'mount tmpfs error'; exit 1; } | ||
97 | dd if=/dev/zero of=z1/e2img count=10 bs=1M 2>/dev/null || { echo 'dd error'; exit 1; } | ||
98 | mke2fs -F z1/e2img 2>/dev/null >&2 || { echo 'mke2fs error'; exit 1; } | ||
99 | mount -r -o loop -t ext2 z1/e2img z2 || { echo 'mount -r -o loop error'; exit 1; } | ||
100 | mount -o remount,ro z1 || { echo 'mount -o remount,ro error'; exit 1; } | ||
101 | ) | ||
102 | umount -d mount.dir/z2 | ||
103 | ##losetup -d /dev/loop* | ||
104 | umount -d mount.dir/z1 | ||
105 | rm -rf mount.dir | ||
106 | echo DONE | ||
107 | " \ | ||
108 | "DONE\n" "" "" | ||
109 | |||
110 | |||
86 | exit $FAILCOUNT | 111 | exit $FAILCOUNT |