stage Mounting the filesystem
$guestmount -a "$image" -m /dev/sda1 "$mp"
+# To debug guestmount, add this to the end of the preceding command:
+# -v -x & sleep 60
stage Changing into mounted directory
cd "$mp"
[ "$(stat -c %Y timestamp)" -eq $ts ]
done
+stage Checking writes
+cp hello.txt copy.txt
+echo >> copy.txt
+echo world >> copy.txt
+echo bigger >> copy.txt
+echo biggest >> copy.txt
+[ "$(cat copy.txt)" = "hello
+world
+bigger
+biggest" ]
+
# These ones are not yet tested by the current script:
#stage XXX statfs/statvfs
#stage XXX xattr operations