I've made a start on a mkfs tool for PDP-7 Unix. So far I have the routines

to build the filesystem, but they are not tested. I need to add code to
parse the "proto" file, whose syntax is based on the 6th Edition proto file.
I also need to dump out the filesystem image.
This commit is contained in:
Warren Toomey
2016-03-10 09:53:05 +10:00
parent 0517b7c2fc
commit 2880d1b2e4
2 changed files with 409 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
# Prototype file for PDP-7 Unix filesystem layout
#
# Entries are one of:
# filename f[r-][w-][r-][r-] uid local_file_to_insert
# dirname d[r-][w-][r-][r-] uid [inumber]
# device i[r-][w-][r-][r-] uid inumber
#
# The top directory's name is ignored
# Numeric values are in decimal
# Contents of each directory ends with a $ on a line by itself
# Format was inspired by 6th Edition mkfs
#
dd drw-- -1 2
system drw-- -1 3
init frwr- -1 ../bin/init
$
ttyin irwr- -1 6
keyboard irwr- -1 7
pptin irwr- -1 8
ttyout irwr- -1 10
display irwr- -1 11
pptout irwr- -1 12
as frwr- -1 ../bin/as
cat frwr- -1 ../bin/cat
chmod frwr- -1 ../bin/chmod
chown frwr- -1 ../bin/chown
chrm frwr- -1 ../bin/chrm
cp frwr- -1 ../bin/cp
date frwr- -1 ../bin/date
ds frwr- -1 ../bin/ds
ln frwr- -1 ../bin/ln
ls frwr- -1 ../bin/ls
mv frwr- -1 ../bin/mv
sh frwr- -1 ../bin/sh
stat frwr- -1 ../bin/stat
ken drwr- 10
$
dmr drwr- 12
$