CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the source code of this file.
Functions | |
void | test_main (void) |
tests/main.h More... | |
Variables | |
static char | buf [76543] |
Tests that seeking past the end of a file and writing will properly zero out the region in between. More... | |
void test_main | ( | void | ) |
This must fail, because that directory is non-empty.
This must fail.
and an ordinary file in each of them, until we fill up the disk.
Then delete most of them, for two reasons. First, "tar" limits file names to 100 characters (which could be extended to 256 without much trouble). Second, a full disk has no room for the tar archive.
Definition at line 11 of file grow-sparse.c.
References buf, CHECK, check_file(), close(), create(), file_name, msg(), open(), seek(), and write().
|
static |
Tests that seeking past the end of a file and writing will properly zero out the region in between.
Definition at line 8 of file grow-sparse.c.
Referenced by test_main().