Skip to contentSkip to conversation

Interview with Hans on KernelTrap

DISCUSSION Hubert Chan 5 participants 8 messages Sep 13, 2005 – Sep 15, 2005

lore
Share & tools
lore
#0 lore raw

For those who missed it on Slashdot, there's an interview with Hans on KernelTrap.

http://kerneltrap.org/node/5654?comments_per_page=1

The Slashdot article is here:

http://hardware.slashdot.org/article.pl?sid=05/09/13/1455238

Signature · 4 lines
Hubert Chan <[email protected]> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.
#1 lore raw

Hans, in the interview you give the example:

cat /home/reiser/mp3s/..../childcat > /dev/dsp

to illustrate concatenation.

I sorry for repeating myself, but still think it would be a lot cooler to be able to simply do:

cat /home/reiser/mp3s > /dev/dsp

to achieve the same effect.
(We had a discussion of this (as part of the huge "file as directory" thread on the lists)
http://www.ussg.iu.edu/hypermail/linux/kernel/0411.3/0044.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0505.1/0365.html
and you seemed to agree then
http://www.ussg.iu.edu/hypermail/linux/kernel/0505.1/0423.html
)
The convention (I think also approved(suggested?) by Linus at some point) could be that where you say

/home/reiser/mp3s

you get a the file (or concatenation, if the directory has no "file" content itself), but when you say

/home/reiser/mp3s/

(with the trailing "/"), you get the directory.

So
book/chapter3/paragraph2
is the second paragraph of the third chapter
(or even better, a la XPath:
book/chapter[3]/paragraph[2]
)

book/chapter3
is the chapter

book
is the whole book.

The user (or tools) don't even have to know which is the "real" file, which are "parts of real files" and which are "concatenations of real files". This is really good for namespace unification across part-whole hierarchies. If you are required to use /..../ in the middle, it breaks this I think. Could we get rid of requiring "...." in the middle? (Would that break too much?) Peter

#2 lore raw
Quoted 9 lines · Peter Foldiak

Hans, in the interview you give the example:

cat /home/reiser/mp3s/..../childcat > /dev/dsp

to illustrate concatenation.
[...]

The convention (I think also approved(suggested?) by Linus at some point) could be that where you say

Quoted 8 lines

/home/reiser/mp3s

you get a the file (or concatenation, if the directory has no "file" content itself), but when you say

/home/reiser/mp3s/

(with the trailing "/"), you get the directory.

If cool is the first perceived benefit, then why do it ? Besides, it's quite easy through force of habit or mistype to add a '/'

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

#3 lore raw
Quoted 17 lines · Yiannis Mavroukakis
Quoted 15 lines · Peter Foldiak

Hans, in the interview you give the example:

cat /home/reiser/mp3s/..../childcat > /dev/dsp

to illustrate concatenation.
[...]

The convention (I think also approved(suggested?) by Linus at some point) could be that where you say

/home/reiser/mp3s

you get a the file (or concatenation, if the directory has no "file" content itself), but when you say

Quoted 6 lines
Quoted 4 lines

/home/reiser/mp3s/

(with the trailing "/"), you get the directory.

If cool is the first perceived benefit, then why do it ? Besides, it's quite easy through force of habit or mistype to add a '/'

Plus often shell completions (e.g. TAB in bash) often add the trailing slash automatically. Though there's an argument to be made for that being what you want; i.e. how often do you really do a 'cat <dir>' to look at the inside of the directory? Though I guess if I were doing a 'chown -R <user> <directory>', I'd be miffed if it just changed the files below and not the directory because of a mis-typed (or mis-completed) slash.

Bruce

#5 lore raw
In reply to Peter Foldiak
Quoted 4 lines · Peter Foldiak

Hans, in the interview you give the example:

cat /home/reiser/mp3s/..../childcat > /dev/dsp

Quoted 8 lines

to illustrate concatenation.

I sorry for repeating myself, but still think it would be a lot cooler to be able to simply do:

cat /home/reiser/mp3s > /dev/dsp

to achieve the same effect.

True.

Quoted 32 lines

(We had a discussion of this (as part of the huge "file as directory" thread on the lists)
http://www.ussg.iu.edu/hypermail/linux/kernel/0411.3/0044.html
http://www.ussg.iu.edu/hypermail/linux/kernel/0505.1/0365.html
and you seemed to agree then
http://www.ussg.iu.edu/hypermail/linux/kernel/0505.1/0423.html
)
The convention (I think also approved(suggested?) by Linus at some point) could be that where you say

/home/reiser/mp3s

you get a the file (or concatenation, if the directory has no "file" content itself), but when you say

/home/reiser/mp3s/

(with the trailing "/"), you get the directory.

So
book/chapter3/paragraph2
is the second paragraph of the third chapter
(or even better, a la XPath:
book/chapter[3]/paragraph[2]
)

book/chapter3
is the chapter

book
is the whole book.

Quoted 7 lines

The user (or tools) don't even have to know which is the "real" file, which are "parts of real files" and which are "concatenations of real files". This is really good for namespace unification across part-whole hierarchies. If you are required to use /..../ in the middle, it breaks this I think. Could we get rid of requiring "...."
in the middle? (Would that break too much?) Peter

In this specific instance, yes, but other pseudofiles would still need it.

My example was not a good one, I should have found a better one, sorry for that.

Quoted 2 lines
#6 lore raw
Quoted 11 lines · Hans Reiser
Quoted 8 lines

The user (or tools) don't even have to know which is the "real" file, which are "parts of real files" and which are "concatenations of real files". This is really good for namespace unification across part-whole hierarchies. If you are required to use /..../ in the middle, it breaks this I think. Could we get rid of requiring "...."
in the middle? (Would that break too much?) Peter

In this specific instance, yes, but other pseudofiles would still need it.

Sure, you can have only one "default" behaviour. (For instance, you would also need some metafiles to specify the details of how exactly the concatenation should be done, (e.g. what ordering (or structure) to use, whether to put something in between the files, etc.) in addition to all the other ones.) Peter

#7 lore raw
Quoted 14 lines · Peter Foldiak
Quoted 8 lines · Hans Reiser
Quoted 7 lines

The user (or tools) don't even have to know which is the "real" file, which are "parts of real files" and which are "concatenations of real files". This is really good for namespace unification across part-whole hierarchies. If you are required to use /..../ in the middle, it breaks this I think. Could we get rid of requiring "...."
in the middle? (Would that break too much?) Peter

Quoted 4 lines

In this specific instance, yes, but other pseudofiles would still need it.

Quoted 7 lines

Sure, you can have only one "default" behaviour. (For instance, you would also need some metafiles to specify the details of how exactly the concatenation should be done, (e.g. what ordering (or structure) to use, whether to put something in between the files, etc.) in
addition to all the other ones.) Peter

Yes, true.