PKUOS - Pintos
Pintos source browser for PKU Operating System course
|
#include <string.h>
#include <stdio.h>
#include <syscall.h>
#include "tests/lib.h"
#include "tests/main.h"
Go to the source code of this file.
Functions | |
void | test_main (void) |
Create a very deep "vine" of directories: /dir0/dir1/dir2/... and an ordinary file in each of them, until we fill up the disk. More... | |
void test_main | ( | void | ) |
Create a very deep "vine" of directories: /dir0/dir1/dir2/... 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 17 of file dir-vine.c.
References chdir(), CHECK, close(), create(), file_name, mkdir(), msg(), name, open(), quiet, readdir(), READDIR_MAX_LEN, remove(), snprintf(), strcmp(), strlen(), and write().