PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <random.h>
#include <syscall.h>
#include "tests/filesys/extended/syn-rw.h"
#include "tests/lib.h"
#include "tests/main.h"
Go to the source code of this file.
Macros | |
#define | CHILD_CNT 4 |
Functions | |
void | test_main (void) |
tests/main.h More... | |
Variables | |
char | buf [BUF_SIZE] |
Grows a file in chunks while subprocesses read the growing file. 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 15 of file syn-rw.c.
References buf, BUF_SIZE, CHECK, CHILD_CNT, CHUNK_SIZE, create(), exec_children(), file_name, open(), quiet, random_bytes(), wait_children(), and write().
char buf[BUF_SIZE] |
Grows a file in chunks while subprocesses read the growing file.
Definition at line 10 of file syn-rw.c.
Referenced by test_main().