> > > Linux defines in /usr/include/linux/fs.h the following ioctl() commands: > > > > > > BLKGETSIZE and BLKSSZGET (and some more). > > > > > > What are the NetBSD pendants to these Linux specific ones? > > > > What do they do ? > > BLKGETSIZE: returns device capacity in 512-byte sectors > BLKSSZGET: returns sector size in bytes I think this is either through the old disklabel ioctl interface, or the new devctl(4) interface (as is used in gpt(8)). If only the devctl(4)/proplib(3) interface was as simple to use as ioctl.... Jonathan Kollasch
Attachment:
pgpjwLzeavKY7.pgp
Description: PGP signature