fstype: fix kfs detection (thanks kenji okomoto)
This commit is contained in:
parent
a39ce6a934
commit
98d518cc8c
1 changed files with 5 additions and 1 deletions
|
@ -23,9 +23,13 @@ if(~ $"m 011ce50d){
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue