From e0c7bad47a54d865ef6194643e2cd20f6094e507 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 6 Jan 2023 20:45:30 +0100 Subject: kernel: turn the NULLFS into an always present special handle preparing for HANDLE_PROCFS --- src/user/app/shell/shell.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/user') diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index 909d625..8aa640b 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -46,6 +46,13 @@ void run_args(int argc, char **argv, struct redir *redir) { exit(1); } return; + } else if (!strcmp(argv[0], "shadow")) { + if (argc < 2) { + fprintf(stderr, "shadow: missing path\n"); + } else { + _syscall_mount(HANDLE_NULLFS, argv[1], strlen(argv[1])); + } + return; } else if (!strcmp(argv[0], "cd")) { if (chdir(argc > 1 ? argv[1] : "/") < 0) perror("cd"); -- cgit v1.2.3