code: mafs

Download patch

ref: 6939ef6ad04ec56013cae88399f32a954e77940c
parent: c6de8987b03f34189e5c63489c699b6b134c5806
author: 9ferno <gophone2015@gmail.com>
date: Wed Oct 12 20:16:46 EDT 2022

updated TODO and a comment

--- a/TODO
+++ b/TODO
@@ -2,7 +2,6 @@
 read only mode
 mafswrite():
 	add user and remove user messages
-file system checker
 Add readahead?
 need rlock() when looking up user id, group id, or user attributes
 more consistent use of tree lock.
@@ -9,16 +8,12 @@
 not using the tree lock for reads - replace RWlock with a Qlock sl
 	RWlock is better than the Qlock. Just need to enforce it better.
 only for locking during super block operations?
-
-fsck in a different user space program
+file system checker
+	fsck will be a different user space program
 EXCL files - maintain a list of locks in the tree
 APPEND files - todo.
+correct /adm/ctl operation:
+	echo df >> /adm/ctl
+	cat /adm/ctl
 
-make this document more interesting.
-
-FAQ
-dd -if /dev/zero -of /dev/sdE3/fs -bs 512 -count 8192
-mount -c <{disk/mafs -D -s -r 32 -m 256 -n sdE3 -f /dev/sdE3/fs <[0=1]} /n/mafs_sdE3
-cd /n/mafs_sdE3
-mkdir dir.0
-dircp /mnt/term/dir.0 dir.0
+make docs/mafs.ms more interesting?
binary files a/docs/mafs.pdf b/docs/mafs.pdf differ
--- a/sub.c
+++ b/sub.c
@@ -126,7 +126,7 @@
 	putbuf(buf);
 }
 
-/* add the block to the list of free blocks in the Super block */
+/* add the block to the extents used to manage free blocks */
 void
 freeblocks(u64 blkno, u16 len, u16 tag, u64 qpath)
 {