Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


How hard disk size?

What is the size of the hard drive access system calls? ?
M is for the units. .
Thank you! !

How hard disk size?

System Call not hard disk size. System?

How hard disk size?

Freebsd below those in any way be a hard disk size? ?

There were fdisk output information. But information filtering on the output. Little trouble. .

There is no more direct way? ?

How hard disk size?

Ioctl can be used in freebsd
#include "Disk.h>;
...
Off_t size;
Int sizem;
Int fd;

Fd = open ( "/dev/ad0", O_RDONLY);
Ioctl (fd, DIOCGMEDIASIZE, &size);
Sizem = size/ (1024*1024);

How hard disk size?

Statfs ()

How hard disk size?

How hard disk size?

Should use ioctl bars.
Disklabel is using this thing



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com