Expand libdisk to use 64bit size/offset
John Baldwin
jhb at FreeBSD.org
Wed Mar 10 15:00:01 PST 2004
On Wednesday 10 March 2004 01:09 pm, John Baldwin wrote:
> On Tuesday 09 March 2004 07:37 pm, Jun Kuriyama wrote:
> > 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.
>
> dadd_t is a uint32_t, so it won't help. Just use off_t for chunk
> offset/size/end.
I actually have a version of libdisk that uses off_t btw. It's from Julian's
64-bit sysinstall patch. I haven't finished fixing up the sysinstall part of
the patch yet, but I can give you a diff of what I have if you are
interested.
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the freebsd-current
mailing list