ufs symlinks fixed

Fare Rideau (rideau@ens.fr)
Sun, 9 Nov 1997 23:57:02 +0100 (MET)


Dear Linux kernel hackers,
before you tell me, I found why ufs symlinks worked in 2.0, but not in 2.1:
the follow_link() code was present in the 2.0 driver, not in the 2.1 driver!!!
Now that's fixed, and ufs seems to work as perfectly in 2.1.62 as in 2.0.31.
(non-empty) big-endian floppy image welcome for testing. Feedback welcome.

Now a question for the linux/fs/ gurus:
how should the driver's lookup() function return an error?
I tried to keep Adrian's original ufs xyzzy magic,
and as long as I returned with -ENOENT, it would somehow allocate
a resource that prevented umount()ing the partition.
I tried to add or remove a d_add(dentry,NULL) before to return,
without success. Which leads me to wonder what will happen
if the part of the code that returns -EIO is reached,
in ufs or any other driver. I admit I'm too stoopid/lazy to guess,
but I hope an upcoming VFS documentation will enlighten me...

Cheers,

PS: as always, stuff lies in files byteorder* ufs* under URL:
http://www.eleves.ens.fr:8080/home/rideau/files/

== Faré -=- (FR) François-René Rideau -=- (VN) Уng-Vû Bân -=- rideau@ens.fr ==
Join a project for a free reflective computing system! | 6 rue Augustin Thierry
TUNES is a Useful, Not Expedient System. | 75019 PARIS FRANCE
http://www.eleves.ens.fr:8080/home/rideau/Tunes/ -=- Reflection&Cybernethics ==