From: Andries.Brouwer@cwi.nl
To: adilger@turbolabs.com, aia21@cus.cam.ac.uk
Cc: linux-kernel@vger.kernel.org, torvalds@transmeta.com
Subject: Re: [PATCH] Enhancement of /proc/partitions output (2.5.1-pre5)
Date: Sat, 1 Dec 2001 11:47:34 GMT [thread overview]
Message-ID: <UTC200112011147.LAA114060.aeb@cwi.nl> (raw)
From: Andreas Dilger <adilger@turbolabs.com>
> Please consider below patch which adds the starting sector and number of
> sectors to /proc/partitions.
Please do not accept as-is. This breaks the format of /proc/partitions
terribly, and all of the code that looks at it (fsck, mount, etc).
Indeed.
Rather add the start_sect and nr_sects parameters _after_ the name
parameter, and it will be "mostly" ok.
No. It will still break things.
While we are at it, how about adding the partition type to the output?
The present /proc/partitions has minimal content.
Its only function is to report to user space which block devices
are known to the kernel. User space is unable to figure that out
on its own without an unreasonable amount of probing.
But once you know what devices exist, it is very easy for user space
to report all desired properties of these devices.
Do you want starting sector and size of /dev/hde4?
# hdparm -g /dev/hde4
/dev/hde4:
geometry = 70780/16/63, sectors = 1670760, start = 69673905
Adding such stuff to the kernel would be especially unfortunate if,
as I did in my version of the block layer, the unit becomes byte
instead of sector. We would have to change again.
Andries
next reply other threads:[~2001-12-01 11:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-01 11:47 Andries.Brouwer [this message]
2001-12-01 16:07 ` [PATCH] Enhancement of /proc/partitions output (2.5.1-pre5) Anton Altaparmakov
2001-12-01 20:51 ` Marcel J.E. Mol
2001-12-03 16:30 ` Bill Davidsen
-- strict thread matches above, loose matches on Subject: below --
2001-12-02 3:28 Andries.Brouwer
2001-12-01 22:43 Andries.Brouwer
2001-12-02 2:13 ` Anton Altaparmakov
2001-12-01 11:22 Andries.Brouwer
2001-12-01 8:30 RaúlNúñez de Arenas Coronado
2001-12-01 8:47 ` Marcus Meissner
2001-12-01 16:10 ` Anton Altaparmakov
2001-12-01 7:08 Anton Altaparmakov
2001-12-01 8:39 ` Andreas Dilger
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=UTC200112011147.LAA114060.aeb@cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=adilger@turbolabs.com \
--cc=aia21@cus.cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.