1 /* Grows a file from 0 bytes to 2,134 bytes, 37 bytes at a time,
2 and checks that the file's size is reported correctly at each
6 #include "tests/filesys/seq-test.h"
8 #include "tests/main.h"
10 static char buf[2134];
13 return_block_size (void)
19 check_file_size (int fd, long ofs)
21 long size = filesize (fd);
23 fail ("filesize not updated properly: should be %ld, actually %ld",
32 return_block_size, check_file_size);