Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

developer question: hda info

0 views
Skip to first unread message

Daniel Bray

unread,
Jan 30, 2004, 8:11:28 AM1/30/04
to
What /proc file is the img command pulling the /dev/hda capacity from. At
first glance I thought it was /proc/partitions, but now it's not looking
as though that is it.

Thanks,
DB

Simon Pollard

unread,
Feb 2, 2004, 9:08:04 AM2/2/04
to

It isn't - strace shows the follow:

open("/dev/hda", O_RDWR|0x8000)
ioctl(5, BLKGETSIZE, 0xbfffea8c)
ioctl(5, 0x303, 0x8095fac)
ioctl(5, HDIO_GETGEO, 0x8095fac)

which presumably means it's GETing the GEOmetry of the drive with
those ioctls.

--
Simon Pollard (Simon....@barnet.ac.uk)
IT Services, Barnet College

0 new messages