diff options
author | kaashoek <kaashoek> | 2006-08-12 01:25:45 +0000 |
---|---|---|
committer | kaashoek <kaashoek> | 2006-08-12 01:25:45 +0000 |
commit | 0633b9715e106ac97fafcf3a68c06da1f0cf873a (patch) | |
tree | 0049ae867f8f94fe0e819a9c33b7b84989561c43 /userfs.c | |
parent | 24437cd554995f729969299e72699e2ba5d9b068 (diff) | |
download | xv6-labs-0633b9715e106ac97fafcf3a68c06da1f0cf873a.tar.gz xv6-labs-0633b9715e106ac97fafcf3a68c06da1f0cf873a.tar.bz2 xv6-labs-0633b9715e106ac97fafcf3a68c06da1f0cf873a.zip |
unlink,mknod,create with multi-component pathnames should work now
remove console init code from userfs
Diffstat (limited to 'userfs.c')
-rw-r--r-- | userfs.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -5,7 +5,7 @@ // file system tests -char buf[3000]; +char buf[2000]; char *echo_args[] = { "echo", "hello", "goodbye", 0 }; char *cat_args[] = { "cat", "README", 0 }; @@ -14,14 +14,8 @@ main(void) { int fd; int i; - int stdout; + int stdout = 1; - // printf(stdout, "userfs running\n"); - if (mknod ("console", T_DEV, 1, 1) < 0) - puts ("mknod failed\n"); - else - puts ("made a node\n"); - stdout = open("console", O_WRONLY); printf(stdout, "userfs is running\n"); block(); |