git: 9front

Download patch

ref: 83f1984cf64d7acae2bdf0b92dd216b711fd4f8d
parent: ab118a94229458b504efc37685a3bbdeb555150f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Jul 30 16:34:45 EDT 2014

fstype: fix kfs detection (thanks kenji okomoto)

--- a/rc/bin/fstype
+++ b/rc/bin/fstype
@@ -23,9 +23,13 @@
 	echo hjfs
 	exit
 }
+m=`{dd -if $1 -bs 16 -count 1 -skip 16 >[2]/dev/null}
+if(~ $"m 'kfs wren device'){
+	echo kfs
+	exit
+}
 dd -if $1 -count 1 >[2]/dev/null | \
 awk '
-/^kfs/{fs["kfs"]++}
 /^(blocksize|daddrbits|daddrbits|indirblks|dirblks|namelen)/{p[$1]=$2}
 END{
 	ca["fs", "blocksize"] = 4*1024
--