code: mafs

Download patch

ref: 1c13c6e23835c774bdf2680f3e9138c30983d3ec
parent: 6939ef6ad04ec56013cae88399f32a954e77940c
author: 9ferno <gophone2015@gmail.com>
date: Thu Oct 13 01:02:30 EDT 2022

fixed tests still using -f

--- a/docs/mafs.ms
+++ b/docs/mafs.ms
@@ -693,7 +693,7 @@
 Free blocks - Extents
 .ft R
 .sp
-Free blocks are managed using Extents. The list of free blocks is stored to the disk when shutting down. If this state is not written, it is rebuilt at start.
+Free blocks are managed using Extents. The list of free blocks is stored to the disk when shutting down. If this state is not written, then the file system needs to be checked and the list of free blocks should be updated.
 .sp
 When shutting down, the Extents are written to free blocks. This information is written to /adm/frees. Also, fsok in the super block is set to 1. When fsok = 0, run an fsck (filesystem checker) to correct the issue.
 .sp
--- a/tests/test.7/script.post
+++ b/tests/test.7/script.post
@@ -23,4 +23,4 @@
 
 # reconcile the used and free blocks
 echo reconcile $disk $nblocks
-disk/reconcile -u <{disk/used -f $disk} -F <{disk/free -f $disk} $nblocks
+disk/reconcile -u <{disk/used $disk} -F <{disk/free $disk} $nblocks
--- a/tests/test.a/script.post
+++ b/tests/test.a/script.post
@@ -23,4 +23,4 @@
 
 # reconcile the used and free blocks
 # echo reconcile $disk $nblocks
-# disk/reconcile -u <{disk/used -f $disk} -F <{disk/free -f $disk} $nblocks
+# disk/reconcile -u <{disk/used $disk} -F <{disk/free $disk} $nblocks