summaryrefslogtreecommitdiff
path: root/userfs.c
diff options
context:
space:
mode:
authorkaashoek <kaashoek>2006-08-12 01:25:45 +0000
committerkaashoek <kaashoek>2006-08-12 01:25:45 +0000
commit0633b9715e106ac97fafcf3a68c06da1f0cf873a (patch)
tree0049ae867f8f94fe0e819a9c33b7b84989561c43 /userfs.c
parent24437cd554995f729969299e72699e2ba5d9b068 (diff)
downloadxv6-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.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/userfs.c b/userfs.c
index 8c6121b..046768d 100644
--- a/userfs.c
+++ b/userfs.c
@@ -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();