git: 9front

Download patch

ref: 16f8d298e4f66d9afadc29a2c3399827d3dd9fae
parent: 967705d34d6bf9babf57b775f92f8ba98983154c
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Aug 11 09:02:31 EDT 2012

inst: ask to ream the filesystem in mounthjfs

--- a/rc/bin/inst/mounthjfs
+++ b/rc/bin/inst/mounthjfs
@@ -28,12 +28,23 @@
 	fsflags=(-m $rd)
 	export fsflags
 
+	ream=no
+	if(! ~ $fstype `{fstype $fs})
+		ream=yes
+	prompt -d $ream 'Ream the filesystem?' yes no
+	ream=$rd
+
 	log Starting $fstype file server for $fs
 	unmount /n/newfs >[2]/dev/null
 	echo halt >>/srv/$service.cmd >[2]/dev/null
 	rm -f /srv/$service /srv/$service.cmd
 
-	hjfs -n $service $fsflags -Srf $fs
+	if(~ $ream yes){
+		hjfs -n $service $fsflags -Srf $fs
+	}
+	if not {
+		hjfs -n $service $fsflags -Sf $fs
+	}
 
 	log Configuring $fstype file server for $fs
 	{
--