LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   size of block devices (https://www.linuxquestions.org/questions/solaris-opensolaris-20/size-of-block-devices-394717/)

primo 12-19-2005 09:35 PM

size of block devices
 
is there any ioctl() similar to Linux's BLKGETSIZE to get the size of a block device or anything not a regular file?

jlliagre 12-20-2005 12:17 PM

See OpenSolaris Grub port for the way to do it with disks on Solaris (DKIOCG_PHYGEOM):
http://cvs.opensolaris.org/source/xr...5/lib/device.c


All times are GMT -5. The time now is 10:19 PM.