New API: write for creating files with fixed content (RHBZ#501889).
[libguestfs.git] / fuse / test-fuse.sh
index fffd851..e31ea9d 100755 (executable)
@@ -69,8 +69,8 @@ function cleanup ()
     # you from unmounting it!  Hence the need for this loop.
     count=10
     while ! fusermount -u "$mp" && [ $count -gt 0 ]; do
-       sleep 1
-       ((count--))
+        sleep 1
+        ((count--))
     done
 
     rm -f "$image"
@@ -86,15 +86,15 @@ function stage ()
     ((s++))
 }
 
-stage Create filesystem with some inital content
+stage Create filesystem with some initial content
 $guestfish <<EOF
   sparse "$image" 10M
   run
   part-disk /dev/sda mbr
   mkfs ext2 /dev/sda1
   mount /dev/sda1 /
-  write-file /hello.txt hello 0
-  write-file /world.txt "hello world" 0
+  write /hello.txt hello
+  write /world.txt "hello world"
   touch /empty
 EOF