lkml.org 
[lkml]   [2001]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ln -s broken on 2.4.5
On Wed, 30 May 2001, Marcus Meissner wrote:

> On Wed, May 30, 2001 at 09:08:56PM +0100, Alan Cox wrote:
> > > > What file system. Its find on my 2.4.5-ac with ext2
> > >
> > > 100% reproducible on NFS and EXT2 here, with following:
> >
> >
> > > $ ls -la bar
> > > lrwxrwxrwx 1 marcus users 3 May 30 20:30 bar -> bar
> >
> > bash-2.04$ uname -a
> > Linux irongate.swansea.linux.org.uk 2.4.5-ac2 #163 Mon May 28
> 22:56:38 BST 2001 i686 unknown
> > bash-2.04$ ln -s frobnitz flop
> > bash-2.04$ ls -l f*
> > lrwxrwxrwx 1 alan users 8 May 30 20:50 flop ->
> frobnitz
> >
> > bash-2.04$ gcc -v
> > Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
> > gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-81
>
> The problem is only there if you specify a directory for the linked to
> component.
>
> [marcus@wine /tmp]$ strace -f ln -s fupp/berk xxx
> execve("/bin/ln", ["ln", "-s", "fupp/berk", "xxx"], [/* 39 vars */]) =
> 0
> ... ld stuff ... locale stuff ...
> lstat64("xxx", 0xbffff47c) = -1 ENOENT (No such file or
> directory)
> lstat64("xxx", 0xbffff47c) = -1 ENOENT (No such file or
> directory)
> symlink("fupp/berk", "xxx") = 0
> _exit(0) = ?
> [marcus@wine /tmp]$ ll xxx
> lrwxrwxrwx 1 marcus users 3 May 30 22:36 xxx -> xxx
> [marcus@wine /tmp]$ uname -a
> Linux wine.lst.de 2.4.5-ac4 #3 SMP Tue May 29 18:24:07 CEST 2001 i686
> unknown
> [marcus@wine /tmp]$
>
> It works just wonderful with previous kernels.

Works here:

=== Cut ===
[root@nomad tmp]# uname -a
Linux nomad.cyberbills.com 2.4.5ac4 #1 SMP Wed May 30 11:55:15 PDT 2001 i686
unknown
[root@nomad tmp]# touch 2/dummy
[root@nomad tmp]# ln -s 2/dummy very_dummy
[root@nomad tmp]# ls -l very_dummy
lrwxrwxrwx 1 root root 7 May 30 14:37 very_dummy -> 2/dummy
=== Cut ===

EXT2, loaded as module.

There are other problems (may be caused by R.Gooch's latest patch,
devfs-177) - no module autoloading complaining about "/dev//floppy/0" etc.
(there are 2 slashes after /dev, it's not a mistake). Recompiling ac5
without that patch, may be it'll help.

---
Sergey Kubushin Sr. Unix Administrator
CyberBills, Inc. Phone: 702-567-8857
874 American Pacific Dr, Fax: 702-567-8808
Henderson, NV 89014

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:54    [W:0.082 / U:7.300 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site