* /proc/partitions statistics: how to find block size?
@ 2003-01-02 12:59 jfontain
0 siblings, 0 replies; only message in thread
From: jfontain @ 2003-01-02 12:59 UTC (permalink / raw)
To: linux-kernel
(please CC me as I am not subscribed: apologies...)
First I wish to thank very much those who wrote the 'Per partition statistics in
/proc/partitions' patch, now available in 2.4.20. It is a very useful feature IMHO.
I am using it to write a new module for the modular monotoring software moodss
(http://jfontain.free.fr/moodss/).
Now, from /proc/partitions, I can find the number of blocks per partition or
disk, but what I also need is the size of each disk, or the block size of each
disk, so that I could display the size in bytes for each disk, which would be
more user friendly.
Is there a way to find that information within the /proc filesystem or by any
other mean (that has to work for any disk type (IDE, SCSI, USB, ...)).
Many thanks in advance and sorry for posting here, but I really need expert
advice...
Happy New Year,
Jean-Luc (jfontain@free.fr)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-02 12:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-02 12:59 /proc/partitions statistics: how to find block size? jfontain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®