Yar Tikhiy wrote:
> Thanks, the DIOCGDINFO ioctl is nearly what I was looking for.
> 
> However, there seems to be a number of problems (or my misunderstandings?)
> about it.  This ioctl can't be used against non-BSD slices; it
> fails on them with EINVAL due to code in kern/subr_diskslice.c.
> OTOH, invoking this ioctl on a partition (e.g. ad0s1a) will result
> in the parameters of the whole slice/disk (i.e. ad0s1.)  Isn't all
> that a bit inconsistent?  E.g. a filesystem layer doesn't need to
> distinguish between say ad0, ad0s1, and ad0s1a -- they're just
> disk devices for it.  Or did I miss any important point?

You missed the fact that there is not a uniform kernel API
for manipulating disk space.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to