Skip to contentSkip to conversation

Interesting reading that I agree with;-)

DISCUSSION Hans Reiser 3 participants 4 messages May 22, 2002 – May 23, 2002

lore
Share & tools
lore
#1 lore raw
Quoted 1 line · Hans Reiser

It is a pity we don't have more folks like Rob working on Linux.

I haven't read the whole paper, but at first glance it would appear to be trivial to do this under Linux, because the dentries maintain such an absolute path to a file. The only thing that appears to be needed for this is the new syscall and the applications to actually use it. The syscall just needs to walk the dentry tree upwards to generate the full path, as is already done in the __d_path() function.

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

#2 lore raw
Quoted 2 lines · Andreas Dilger

an absolute path to a file. The only thing that appears to be needed for this is the new syscall and the applications to actually use it.

The syscall is named "readlink":

ls -ld /proc/self/fd/0
lrwx------ 1 root root 64 May 23 03:23 0 -> /dev/pts/1

Of course, it has to solve problems like the stupid way of appending (instead of prepending) "(deleted)".

Much more useful. IMHO, would be a flink() call, although it might destroy some optimizations in some filesystems ;->

Signature · 7 lines
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [email protected]      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
#3 lore raw
In reply to Andreas Dilger
Quoted 14 lines · Andreas Dilger
Quoted 3 lines · Hans Reiser

It is a pity we don't have more folks like Rob working on Linux.

I haven't read the whole paper, but at first glance it would appear to be trivial to do this under Linux, because the dentries maintain such an absolute path to a file. The only thing that appears to be needed for this is the new syscall and the applications to actually use it. The syscall just needs to walk the dentry tree upwards to generate the full path, as is already done in the __d_path() function.

Quoted 10 lines

Cheers, Andreas
--
Andreas Dilger
http://www-mddsp.enel.ucalgary.ca/People/adilger/
http://sourceforge.net/projects/ext2resize/

I am told that Viro feels it would break applications. I think the current .. handling should be considered a bug, and I don't really care what obscure applications are broken in return for fixing this commonly occuring bug.

Hans