LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 12-19-2005, 09:35 PM   #1
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
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?
 
Old 12-20-2005, 12:17 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,500

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
block size ust Linux - Software 1 11-24-2005 11:45 PM
On a SCSI system, is there a different place to look for USB block devices? vonst Linux - Hardware 5 05-29-2004 10:10 AM
mount block devices with sysfs? thehundredthone Linux - Software 0 02-17-2004 05:15 AM
How to add block devices in the /dev path dvs Linux - Hardware 2 01-21-2004 04:23 PM
names of all block devices, web links if possible. oldstinkyfish Linux - Hardware 0 11-11-2003 08:30 PM


All times are GMT -5. The time now is 11:50 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration