Lines Matching refs:ext2
27 mkfs.ext2 mkfs.vfat mount umount losetup wc << EOF
47 # Create an ext2 image
49 mkdir -p images/{ext2.dir,vfat.dir,test1,test2,test3}
50 dd if=/dev/zero of=images/ext2.img bs=1M count=1 2> /dev/null
51 mkfs.ext2 -F -b 1024 images/ext2.img > /dev/null 2> /dev/null
60 testing "mount ext2 image (autodetect type)" \
61 "mount images/ext2.img images/ext2.dir 2> /dev/null && mount | tail -n 1" \
62 "/dev/loop1 on /images/ext2.dir type ext2 (rw)\n" "" ""
63 testing "mount remount ext2 image noatime" \
64 "mount -o remount,noatime images/ext2.dir && mount | tail -n 1" \
65 "/dev/loop1 on /images/ext2.dir type ext2 (rw,noatime)\n" "" ""
66 testing "mount remount ext2 image ro remembers noatime" \
67 "mount -o remount,ro images/ext2.dir && mount | tail -n 1" \
68 "/dev/loop1 on /images/ext2.dir type ext2 (ro,noatime)\n" "" ""
71 umount -d images/ext2.dir
74 "mount images/ext2.img images/ext2.dir && mount | tail -n 1" \
75 "/dev/loop0 on /images/ext2.dir type ext2 (rw)\n" "" ""
78 "mount -t ext2 /dev/loop0 images/test1 && mount | tail -n 1" \
79 "/dev/loop0 on /images/test1 type ext2 (rw)\n" "" ""
81 umount -d images/ext2.dir images/test1
84 "mount -o remount,noatime images/ext2.dir 2> /dev/null || echo yes" \
98 /images/ext2.img /images/ext2.dir ext2 noatime,nodev 0 0
111 cat images/ext2.img > images/ext2-2.img
112 losetup /dev/loop2 images/ext2-2.img