Fix a minor buglet making the code match the comment. Fractional cylinders
confuse fdisk and break the NanoBSD build. This is an MT5/6 candidate. MFC after: 3 days
This commit is contained in:
parent
7a35a61825
commit
55acff0d21
@ -63,7 +63,7 @@ echo ${SECTS} ${SC} ${HD} ${DATASIZE} | awk '
|
||||
# size of cylinder in sectors
|
||||
cs = $2 * $3
|
||||
# number of full cylinders
|
||||
cyl = $1 / cs
|
||||
cyl = int ($1 / cs)
|
||||
print "g c" cyl " h" $3 " s" $2
|
||||
# Size of data/conf patition, round up to full cylinder
|
||||
dsl = int (($4 + cs - 1) / cs)
|
||||
|
Loading…
Reference in New Issue
Block a user