|
PKUOS - Pintos
Pintos source browser for PKU Operating System 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.
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().