code: mafs

Download patch

ref: e230134a4c30b16f5e4be9c9021892ce27510e25
parent: 752a118f8532b340c29af4bf4852db3ae2f829be
author: 9ferno <gophone2015@gmail.com>
date: Fri Dec 2 22:19:39 EST 2022

updated documentation with the features

--- a/docs/mafs.ms
+++ b/docs/mafs.ms
@@ -13,7 +13,7 @@
 .sp
 Mafs wants you to be able to understand it, so you can be self-sufficient and fix a crash at two in the morning or satisfy your need for speed or a feature. This empowerment is priceless for those with skin in the game.
 .sp
-Mafs is a user space file systems to provide system stability and security. It is based on kfs.
+Mafs is a user space file systems to provide system stability and security. It is based on kfs. It maintains copies of all metadata, creates a copy on any data write and writes to the disk lazily. These equate to greater throughput, the prevention of disk fragmentation, and the display of a recovery path during crashes.
 .sp
 As this document aims to also provide working knowledge, it gratuitously uses the actual commands and the relevant C data structure definitions to convey information.
 .sp
@@ -1262,9 +1262,15 @@
 Check and correct a crashed filesystem.
 .sp
 .nf
+	disk=/dev/sdF1/fs
 	nblocks=`{disk/block /dev/sdF1/fs 2 | awk '$1 == "nblocks"{ print $2 }'}
 	disk/updatefrees /dev/sdF1/fs <{disk/unused $nblocks <{disk/used /dev/sdF1/fs}
 	disk/fsok /dev/sdF1/fs
+
+	disk=/dev/sdF1/fs
+	nblocks=`{disk/block $disk 2 | awk '$1 == "nblocks"{ print $2 }'}
+	disk/updatefrees $disk <{disk/unused $nblocks <{disk/used $disk}
+	disk/fsok $disk
 .fi
 \".sp
 \"Changing the service name without a ream.