From: jfontain@free.fr
To: linux-kernel@vger.kernel.org
Subject: /proc/partitions statistics: how to find block size?
Date: Thu, 02 Jan 2003 13:59:08 +0100 (CET) [thread overview]
Message-ID: <1041512348.3e14379c5675c@imp.free.fr> (raw)
(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)
reply other threads:[~2003-01-02 12:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1041512348.3e14379c5675c@imp.free.fr \
--to=jfontain@free.fr \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®