two mkfs7 changes (.. and link to inum -1), make hard link for list program
mkfs: if neither --dotdot or --dot options given, create .. link to current dir
accept -1 for inum in add_direntry to mean "use previous i-num" for links
proto: use inum -1 to make "list" a link to "nls"
This commit is contained in:
+1
-1
@@ -61,11 +61,11 @@ dd drwr- -1 4
|
||||
|
||||
nsh frwr- -1 bin/nsh
|
||||
nls frwr- -1 bin/nls
|
||||
list l---- -1
|
||||
# nbc frwr- -1 bin/nbc
|
||||
nstat frwr- -1 bin/nstat
|
||||
|
||||
|
||||
|
||||
$
|
||||
ken drwr- 10
|
||||
system l---- 3
|
||||
|
||||
Reference in New Issue
Block a user