tech-userlevel archive

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

ioctl equivalent to DIOCGSECTORSIZE in FreeBSD?


it looks like NetBSD does not have DIOCGSECTORSIZE (see

In former times I would have tried to get a disklabel with DIOCGDINFO
and looked at d_secsize.

What is our official way nowadays to find out the size (in bytes) of a
Am I supposed to use DIOCGDISKINFO and plists?

I want to look at a disk attached to a USB port and I would like it to work
on NetBSD >=4.


Home | Main Index | Thread Index | Old Index