mirror of
https://github.com/psankar/simplefs.git
synced 2025-07-25 23:14:33 +02:00
test: add some read operations after unmount/mount
This commit is contained in:
parent
86d7a8ff80
commit
d67a2974e5
@ -65,6 +65,22 @@ function do_some_operations()
|
|||||||
echo "Second level directory" > hello
|
echo "Second level directory" > hello
|
||||||
cat hello
|
cat hello
|
||||||
}
|
}
|
||||||
|
function do_read_operations()
|
||||||
|
{
|
||||||
|
cd "$1"
|
||||||
|
ls -lR
|
||||||
|
|
||||||
|
cat vanakkam
|
||||||
|
cat hello
|
||||||
|
|
||||||
|
cat hello
|
||||||
|
|
||||||
|
cd dir1
|
||||||
|
cat hello
|
||||||
|
|
||||||
|
cd dir2
|
||||||
|
cat hello
|
||||||
|
}
|
||||||
function cleanup()
|
function cleanup()
|
||||||
{
|
{
|
||||||
cat /proc/mounts | grep simplefs | awk '{print $2}' | xargs -r umount
|
cat /proc/mounts | grep simplefs | awk '{print $2}' | xargs -r umount
|
||||||
@ -93,7 +109,8 @@ unmount_fs "$test_mount_point"
|
|||||||
|
|
||||||
# 2
|
# 2
|
||||||
mount_fs_image "$test_dir/image" "$test_mount_point"
|
mount_fs_image "$test_dir/image" "$test_mount_point"
|
||||||
ls -lR "$test_mount_point"
|
do_read_operations "$test_mount_point"
|
||||||
|
cd "$root_pwd"
|
||||||
unmount_fs "$test_mount_point"
|
unmount_fs "$test_mount_point"
|
||||||
|
|
||||||
dmesg | tail -n40
|
dmesg | tail -n40
|
||||||
|
Loading…
x
Reference in New Issue
Block a user