Use standard POSIX "ustar" format for the scratch disk.
[pintos-anon] / src / tests / filesys / extended / grow-two-files.c
index 69f17aecbdd30ceefaa95009c19f3937e1d7ae62..6a8fb1c96fc7600ebaeb6abe125be5c9af5bb6f4 100644 (file)
@@ -1,3 +1,6 @@
+/* Grows two files in parallel and checks that their contents are
+   correct. */
+
 #include <random.h>
 #include <syscall.h>
 #include "tests/lib.h"
@@ -8,7 +11,7 @@ static char buf_a[FILE_SIZE];
 static char buf_b[FILE_SIZE];
 
 static void
-write_some_bytes (const char *filename, int fd, const char *buf, size_t *ofs) 
+write_some_bytes (const char *file_name, int fd, const char *buf, size_t *ofs) 
 {
   if (*ofs < FILE_SIZE) 
     {
@@ -20,7 +23,7 @@ write_some_bytes (const char *filename, int fd, const char *buf, size_t *ofs)
       ret_val = write (fd, buf + *ofs, block_size);
       if (ret_val != block_size)
         fail ("write %zu bytes at offset %zu in \"%s\" returned %zu",
-              block_size, *ofs, filename, ret_val);
+              block_size, *ofs, file_name, ret_val);
       *ofs += block_size;
     }
 }