* Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace
@ 2001-05-19 11:09 Andries.Brouwer
2001-05-19 11:43 ` Andrew Morton
0 siblings, 1 reply; 15+ messages in thread
From: Andries.Brouwer @ 2001-05-19 11:09 UTC (permalink / raw)
To: bcrl, torvalds; +Cc: linux-fsdevel, linux-kernel, viro
From: Ben LaHaise <bcrl@redhat.com>
3. Userspace partition code proposal
Given the above two bits, here's a brief explaination of a
proposal to move management of the partitioning scheme into
userspace, along with portions of raid startup, lvm, uuid and
mount by label code needed for mounting the root filesystem.
Consider that the device node currently known as /dev/hda5 can
also be viewed as /dev/hda at offset 512000 with a limit of 10GB.
With the extensions in fs/block_dev.c, you could replace /dev/hda5
with /dev/hda/offset=512000,limit=10240000000. Now, by putting
the partition parsing code into a libpart and binding mount to a
libpart, the root filesystem mounting code can be run out of an
initrd image. The use of mount gives us the ability to mount
filesystems by UUID, by label or other exotic schemes without
having to add any additional code to the kernel.
I'm going to stop writing this now. I need sleep...
Hmm. You know that I wrote this long ago?
And that it has been part of the kernel for a long time?
And that there are user space utilities that use it?
In util-linux, look at the partx subdirectory.
In the kernel, read drivers/block/blkpg.c.
Andries
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace
2001-05-19 11:09 [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Andries.Brouwer
@ 2001-05-19 11:43 ` Andrew Morton
2001-05-19 12:00 ` Alexander Viro
0 siblings, 1 reply; 15+ messages in thread
From: Andrew Morton @ 2001-05-19 11:43 UTC (permalink / raw)
To: Andries.Brouwer; +Cc: bcrl, torvalds, linux-fsdevel, linux-kernel, viro
Andries.Brouwer@cwi.nl wrote:
>
> Hmm. You know that I wrote this long ago?
Well, let's not get too hung up on the disk thing (yeah,
I started it...).
Ben's intent here is to *demonstrate* how argv-style
info can be passed into device nodes. It seems neat,
and nice.
We can also make use of a strong argument parsing library
in the kernel - there are a great number of open-coded
string bashing functions which could be rationalised
and regularised.
So. When am I going to be able to:
open("/bin/ls,-l,/etc/passwd", O_RDONLY);
?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace
2001-05-19 11:43 ` Andrew Morton
@ 2001-05-19 12:00 ` Alexander Viro
2001-05-19 12:06 ` [RFD w/info-PATCH] device arguments from lookup, partion codein userspace Andrew Morton
2001-05-19 15:56 ` [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Ben LaHaise
0 siblings, 2 replies; 15+ messages in thread
From: Alexander Viro @ 2001-05-19 12:00 UTC (permalink / raw)
To: Andrew Morton
Cc: Andries.Brouwer, bcrl, torvalds, linux-fsdevel, linux-kernel
On Sat, 19 May 2001, Andrew Morton wrote:
> So. When am I going to be able to:
>
> open("/bin/ls,-l,/etc/passwd", O_RDONLY);
You are not. Think for a minute and you'll see why.
Linus' idea of /dev/tty/<parameters> is marginally sane - it makes sense
to consider that as configuring-upon-open. You _are_ going to do IO on
that file.
Ben's /dev/md0/<living_horror> is ugly - it's open just for side effects,
with no IO supposed to happen.
His idea of passing file descriptor instead of name makes these side effects
even messier.
The stuff you've proposed is a perversion worth of Albert. You've introduced
additional metacharacter into filenames, you will need some form of quoting
to be able to pass literal commas and you will need to quote slashes. It's
way past ugly.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion codein userspace
2001-05-19 12:00 ` Alexander Viro
@ 2001-05-19 12:06 ` Andrew Morton
2001-05-19 15:56 ` [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Ben LaHaise
1 sibling, 0 replies; 15+ messages in thread
From: Andrew Morton @ 2001-05-19 12:06 UTC (permalink / raw)
To: Alexander Viro
Cc: Andries.Brouwer, bcrl, torvalds, linux-fsdevel, linux-kernel
Alexander Viro wrote:
>
> It's way past ugly.
I knew you'd like it.
It kind of makes sense, because it puts the two primary stream-of-bytes
objects in Unix into the same namespace, with the same accessors.
So if some random application is expecting a filename well heck, you
just give it a path-to-executable with args. It won't care, although
it may have trouble lseek()ing on it.
It wasn't very serious at all.
-
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code in userspace
2001-05-19 12:00 ` Alexander Viro
2001-05-19 12:06 ` [RFD w/info-PATCH] device arguments from lookup, partion codein userspace Andrew Morton
@ 2001-05-19 15:56 ` Ben LaHaise
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
1 sibling, 1 reply; 15+ messages in thread
From: Ben LaHaise @ 2001-05-19 15:56 UTC (permalink / raw)
To: Alexander Viro
Cc: Andrew Morton, Andries.Brouwer, torvalds, linux-fsdevel, linux-kernel
On Sat, 19 May 2001, Alexander Viro wrote:
> Ben's /dev/md0/<living_horror> is ugly - it's open just for side effects,
> with no IO supposed to happen.
Now that I'm awake and refreshed, yeah, that's awful. But
echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
the system can even send back result codes that way.
-ben
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 15:56 ` [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Ben LaHaise
@ 2001-05-19 16:25 ` Alan Cox
2001-05-19 16:36 ` Alexander Viro
` (4 more replies)
0 siblings, 5 replies; 15+ messages in thread
From: Alan Cox @ 2001-05-19 16:25 UTC (permalink / raw)
To: Ben LaHaise
Cc: Alexander Viro, Andrew Morton, Andries.Brouwer, torvalds,
linux-fsdevel, linux-kernel
> Now that I'm awake and refreshed, yeah, that's awful. But
> echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
> the system can even send back result codes that way.
Only to an English speaker. I suspect Quebec City canadians would prefer a
different command set.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
@ 2001-05-19 16:36 ` Alexander Viro
2001-05-19 16:44 ` Matthew Wilcox
` (3 subsequent siblings)
4 siblings, 0 replies; 15+ messages in thread
From: Alexander Viro @ 2001-05-19 16:36 UTC (permalink / raw)
To: Alan Cox
Cc: Ben LaHaise, Andrew Morton, Andries.Brouwer, torvalds,
linux-fsdevel, linux-kernel
On Sat, 19 May 2001, Alan Cox wrote:
> > Now that I'm awake and refreshed, yeah, that's awful. But
> > echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
> > the system can even send back result codes that way.
>
> Only to an English speaker. I suspect Quebec City canadians would prefer a
> different command set.
Alan, I'm not a native speaker and I had worked with system that got names
of utilities translated to Russian.
It's was hell. And I don't think that replacing compress (or пакуй) with
42A1769 would make it better.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
2001-05-19 16:36 ` Alexander Viro
@ 2001-05-19 16:44 ` Matthew Wilcox
2001-05-19 18:01 ` Nicolas Pitre
` (2 subsequent siblings)
4 siblings, 0 replies; 15+ messages in thread
From: Matthew Wilcox @ 2001-05-19 16:44 UTC (permalink / raw)
To: Alan Cox
Cc: Ben LaHaise, Alexander Viro, Andrew Morton, Andries.Brouwer,
torvalds, linux-fsdevel, linux-kernel
On Sat, May 19, 2001 at 05:25:22PM +0100, Alan Cox wrote:
> Only to an English speaker. I suspect Quebec City canadians would prefer a
> different command set.
Should we support `pas387' as well as `no387' as a kernel boot parameter
then? Face it, a sysadmin has to know the limited subset of english
which is used to configure a kernel.
--
Revolutions do not require corporate support.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
2001-05-19 16:36 ` Alexander Viro
2001-05-19 16:44 ` Matthew Wilcox
@ 2001-05-19 18:01 ` Nicolas Pitre
2001-05-19 18:34 ` Linus Torvalds
2001-05-20 19:53 ` Pavel Machek
4 siblings, 0 replies; 15+ messages in thread
From: Nicolas Pitre @ 2001-05-19 18:01 UTC (permalink / raw)
To: Alan Cox
Cc: Ben LaHaise, Alexander Viro, Andrew Morton, Andries.Brouwer,
torvalds, linux-fsdevel, linux-kernel
On Sat, 19 May 2001, Alan Cox wrote:
> > Now that I'm awake and refreshed, yeah, that's awful. But
> > echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
> > the system can even send back result codes that way.
>
> Only to an English speaker. I suspect Quebec City canadians would prefer a
> different command set.
Well... Around here we've been used to Microsoft translations like:
ETES-VOUS CERTAIN [O/N] ?
... and of course pressing 'o' doesn't work while 'y' does. :-)
Wanting to localize such low-level keywords is utopia. Otherwise you'll
want to translate command names like free, rm, mv, etc. and yet programming
languages as well like C keywords. And then you come to a point where
nothing could be interoperable any more.
Nicolas
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
` (2 preceding siblings ...)
2001-05-19 18:01 ` Nicolas Pitre
@ 2001-05-19 18:34 ` Linus Torvalds
2001-05-19 22:34 ` Ingo Oeser
2001-05-20 19:53 ` Pavel Machek
4 siblings, 1 reply; 15+ messages in thread
From: Linus Torvalds @ 2001-05-19 18:34 UTC (permalink / raw)
To: Alan Cox
Cc: Ben LaHaise, Alexander Viro, Andrew Morton, Andries.Brouwer,
linux-fsdevel, linux-kernel
On Sat, 19 May 2001, Alan Cox wrote:
>
> > Now that I'm awake and refreshed, yeah, that's awful. But
> > echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
> > the system can even send back result codes that way.
>
> Only to an English speaker. I suspect Quebec City canadians would prefer a
> different command set.
I was waiting for the "anglo-saxon" argument.
I don't think it's a valid argument. You already have "/dev". You already
have english names for the numbers in ioctl's (and let's not be mentally
dishonest and say "numbers are cross-cultural", because NOBODY MUST EVER
USE THE RAW NUMBERS - you have to use the anglo-saxon #define'd names
because the numbers aren't even cross-platform on Linux, much less
portable to other systems).
So the "English is bad" argument is a complete non-argument.
Linus
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 18:34 ` Linus Torvalds
@ 2001-05-19 22:34 ` Ingo Oeser
2001-05-19 23:42 ` Alexander Viro
2001-05-20 17:10 ` Padraig Brady
0 siblings, 2 replies; 15+ messages in thread
From: Ingo Oeser @ 2001-05-19 22:34 UTC (permalink / raw)
To: Linus Torvalds
Cc: Alan Cox, Ben LaHaise, Alexander Viro, Andrew Morton,
Andries.Brouwer, linux-fsdevel, linux-kernel
On Sat, May 19, 2001 at 11:34:48AM -0700, Linus Torvalds wrote:
[Reasons]
> So the "English is bad" argument is a complete non-argument.
Jepp, I have to agree.
English is used more or less as an communication protocol in
computer science and for operating computers.
Once you know how to operate an computer in English, you can
operate nearly every computer in the world, because they have
English as default locale.
Let's not repeat Babel please :-(
PS: English is neither mine, nor Linus native language. Why do
the English natives complain instead of us? ;-)
<off topic side note>
And be glad that's not German, that has this role. English
sentences are WAY easier to parse by computers, because it
doesn't use much suffixes and prefixes on words and has very
few exceptions. Also these exceptions are eleminated from
command languages WITHOUT influencing readability and
comprehensability.
</off topic side note>
Regards
Ingo Oeser
--
To the systems programmer,
users and applications serve only to provide a test load.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 22:34 ` Ingo Oeser
@ 2001-05-19 23:42 ` Alexander Viro
2001-05-20 0:11 ` Alan Cox
2001-05-20 17:10 ` Padraig Brady
1 sibling, 1 reply; 15+ messages in thread
From: Alexander Viro @ 2001-05-19 23:42 UTC (permalink / raw)
To: Ingo Oeser
Cc: Linus Torvalds, Alan Cox, Ben LaHaise, Andrew Morton,
Andries.Brouwer, linux-fsdevel, linux-kernel
On Sun, 20 May 2001, Ingo Oeser wrote:
> PS: English is neither mine, nor Linus native language. Why do
> the English natives complain instead of us? ;-)
Because we had some experience with, erm, localized systems and for
Alan it's most likely pure theory? ;-)
Al, still shuddering at the memories
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 23:42 ` Alexander Viro
@ 2001-05-20 0:11 ` Alan Cox
0 siblings, 0 replies; 15+ messages in thread
From: Alan Cox @ 2001-05-20 0:11 UTC (permalink / raw)
To: Alexander Viro
Cc: Ingo Oeser, Linus Torvalds, Alan Cox, Ben LaHaise, Andrew Morton,
Andries.Brouwer, linux-fsdevel, linux-kernel
> On Sun, 20 May 2001, Ingo Oeser wrote:
> > PS: English is neither mine, nor Linus native language. Why do
> > the English natives complain instead of us? ;-)
>
> Because we had some experience with, erm, localized systems and for
> Alan it's most likely pure theory? ;-)
I think its important its considered. I do like the idea of a sensible ioctl
encoding (including ascii potentially) and being able to ship ioctls over the
network.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 22:34 ` Ingo Oeser
2001-05-19 23:42 ` Alexander Viro
@ 2001-05-20 17:10 ` Padraig Brady
1 sibling, 0 replies; 15+ messages in thread
From: Padraig Brady @ 2001-05-20 17:10 UTC (permalink / raw)
To: Ingo Oeser; +Cc: linux-kernel
Obviously there has to be some standard base
with which to work, especially for computer language
keywords as these can't be converted due to name
clashes. What would be cool is to pick a better base
language than English that everyone would have to
learn to "use computers". This is especially important
for opensource as it would greatly ease the operation
of the collective brain. Something easily parseable
would be an obvious criterion and would allow us
to interact with computers by voice(-recognition)
with no ambiguity, etc. etc...
tada: http://www.lojban.org/
will everything be changed over in the 2.5 timeframe? :-)
Padraig.
Ingo Oeser wrote:
>On Sat, May 19, 2001 at 11:34:48AM -0700, Linus Torvalds wrote:
>[Reasons]
>
>>So the "English is bad" argument is a complete non-argument.
>>
>
>Jepp, I have to agree.
>
>English is used more or less as an communication protocol in
>computer science and for operating computers.
>
>Once you know how to operate an computer in English, you can
>operate nearly every computer in the world, because they have
>English as default locale.
>
>Let's not repeat Babel please :-(
>
>PS: English is neither mine, nor Linus native language. Why do
> the English natives complain instead of us? ;-)
>
><off topic side note>
> And be glad that's not German, that has this role. English
> sentences are WAY easier to parse by computers, because it
> doesn't use much suffixes and prefixes on words and has very
> few exceptions. Also these exceptions are eleminated from
> command languages WITHOUT influencing readability and
> comprehensability.
></off topic side note>
>
>
>Regards
>
>Ingo Oeser
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [RFD w/info-PATCH] device arguments from lookup, partion code
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
` (3 preceding siblings ...)
2001-05-19 18:34 ` Linus Torvalds
@ 2001-05-20 19:53 ` Pavel Machek
4 siblings, 0 replies; 15+ messages in thread
From: Pavel Machek @ 2001-05-20 19:53 UTC (permalink / raw)
To: Alan Cox, Ben LaHaise; +Cc: linux-fsdevel, linux-kernel
Hi!
> > Now that I'm awake and refreshed, yeah, that's awful. But
> > echo "hot-add,slot=5,device=/dev/sda" >/dev/md0/control *is* sane. Heck,
> > the system can even send back result codes that way.
>
> Only to an English speaker. I suspect Quebec City canadians would prefer a
> different command set.
Alan, bad idea.
This is less evil than magic numbers, and *users* should not be
touching this anyway. They should have nice gui tools that do it for
them.
English is *way* better than magic numbers. It makes sense at least
for someone.
Pavel
--
I'm pavel@ucw.cz. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at discuss@linmodems.org
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2001-05-21 20:18 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-19 11:09 [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Andries.Brouwer
2001-05-19 11:43 ` Andrew Morton
2001-05-19 12:00 ` Alexander Viro
2001-05-19 12:06 ` [RFD w/info-PATCH] device arguments from lookup, partion codein userspace Andrew Morton
2001-05-19 15:56 ` [RFD w/info-PATCH] device arguments from lookup, partion code in userspace Ben LaHaise
2001-05-19 16:25 ` [RFD w/info-PATCH] device arguments from lookup, partion code Alan Cox
2001-05-19 16:36 ` Alexander Viro
2001-05-19 16:44 ` Matthew Wilcox
2001-05-19 18:01 ` Nicolas Pitre
2001-05-19 18:34 ` Linus Torvalds
2001-05-19 22:34 ` Ingo Oeser
2001-05-19 23:42 ` Alexander Viro
2001-05-20 0:11 ` Alan Cox
2001-05-20 17:10 ` Padraig Brady
2001-05-20 19:53 ` Pavel Machek
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®