Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* How do I determine size of disk partition from C?
@ 1997-09-18  4:00 Dirk Grunwald
  0 siblings, 0 replies; only message in thread
From: Dirk Grunwald @ 1997-09-18  4:00 UTC (permalink / raw)




I want to read/write to a raw disk partition, including standard disk
partitions and LSM partitions/volumes.

I can just open e.g., /dev/rrz8c and pount away using 'read' and
'write', but I can't seem to figure out th proper way to determine the
file (== volume) size. Using lseek returns zero. This is annoying
because files behave different than devices in this case.

I assume there is a sanctioned interface. I have DU 4.0a sources, and
am happy to UTSL ("use the source, luke"), but want to know the
"proper" way of doing this, rather than perhaps, the non-standard way
in some utilities. Any good pointers?

-- 
Dirk Grunwald                 Assoc. Prof, Univ. of Colorado at Boulder



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-18  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-18  4:00 How do I determine size of disk partition from C? Dirk Grunwald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox