NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst



On Dec 29,  8:55pm, dholland-bugs%netbsd.org@localhost (David Holland) wrote:
-- Subject: Re: bin/49510: gpt(8) fails w/o drvctl and breaks sysinst

|  AIUI, it doesn't, same as stat(2) doesn't return the disk size. I
|  consider this a bug.

Consider stat'ing /dev/nrst0. Do you really want it to return the
size? Or /dev/rcd0a, what's the size? Is it the capacity? Or the
current amount of data written? What if it's unformatted? Or even
on regular disks, the size can be iffy... If you return sectors *
secperunit, are you sure you can write that many bytes (what about
bad sectors)?

christos


Home | Main Index | Thread Index | Old Index