Expand libdisk to use 64bit size/offset

Jun Kuriyama kuriyama at imgsrc.co.jp
Tue Mar 9 16:37:21 PST 2004


I found sysinstall(8) cannot handle TB class storage.  It looks
both of libdisk and sysinstall should be fixed.

I'm trying to improve this situation, but I'm not sure I'm going to
the right direction.  Please look this patch (including my debugging
stuff and XXX comments which should be resolved/removed).

http://www.imgsrc.co.jp/~kuriyama/BSD/libdisk-20040310.diff

I choose daddr_t as larger storage for offset, size and end member of
"struct chunk".  I think offset and end is okay, but I don't know
daddr_t for offset is correct or not.

And, In Write_Disk() at write_i386_disk.c, over 256 is stored in
dp_ecyl and this member is unsigned char on i386.  Is this something
wrong?

>                if (i > 1023)
>                        i = 1023;
>                dp[j].dp_ecyl = i;


-- 
Jun Kuriyama <kuriyama at imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama at FreeBSD.org> // FreeBSD Project


More information about the freebsd-current mailing list