Sorry, no sanity, just a confirmation that I've seen the same thing
when mounting an nfs volume.
Empty by ls, nothing matches when expanding '*', but everything is
there if you know what the files/directories are called.
Oddly, if I chroot to the Debian flash drive, it's ls does work on
the same directories. Its like the busybox's ls doesn't work.
Haven't figured out why, but learned to live with it instead.
-Ilya
On Jan 23, 2008, at 2:20 PM, j.chitte wrote:
> I'm having some madness from ls that I cant understand.
>
> I have a slightly modified TSlinux image booted over nfs.
>
> It boots fine and all works but ls lies about /www , it shows it
> empty. (viewed from a root login console)
>
> This is odd because dmesg shows apache has no trouble finding /www/
> apache/bin/apachechtl and the web server is working. I can see a test
> html file I put in htdocs from the host machine.
>
> here's what the arm console tells me:
>
> $ ls -ail /
> drwxr-xr-x 15 root root 19 Aug 5 21:22 .
> drwxr-xr-x 15 root root 19 Aug 5 21:22 ..
> drwxr-xr-x 2 root root 60 Nov 16 2006 bin
> drwxr-xr-x 1 root root 0 Jan 1 1970 dev
> drwxr-xr-x 9 root root 25 Aug 5 22:46 etc
> -rw-r--r-- 1 root root 0 Dec 19 2006 fastboot
> -rwxr-xr-x 1 root root 8364 Aug 3 15:40 hand-
> rolled.cgi
> drwxr-xr-x 2 root root 2 Nov 16 2006 initrd
> drwxr-xr-x 3 root root 53 Nov 16 2006 lib
> drwxr-xr-x 3 root root 3 Jan 1 1970 mnt
> dr-xr-xr-x 31 root root 0 Jan 1 1970 proc
> drwxr-xr-x 2 root root 3 Aug 4 15:13 root
> drwxr-xr-x 2 root root 36 Jun 29 2007 sbin
> -rw-r--r-- 1 root root 0 Aug 5 19:05 test
> -rw-r--r-- 1 root root 0 Aug 5 18:04 test.arm
> drwxr-xr-x 2 root root 6 Aug 3 15:41 tmp
> drwxr-xr-x 6 root root 6 Aug 5 21:54 usr
> drwxr-xr-x 8 root root 8 Jan 1 1970 var
> $ ls -ail /www
> drwxr-xr-x 3 root root 3 Jan 23 18:43 .
> drwxr-xr-x 15 root root 19 Aug 5 21:22 ..
>
>
> here's the same files from the server where they sit:
>
> bash-3.2#ls -ail
> total 25
> 251112 drwxr-xr-x 15 root root 19 2007-08-05 23:22 .
> 74529 drwxr-xr-x 26 prof users 28 2008-01-21 17:13 ..
> 251113 drwxr-xr-x 2 root root 60 2006-11-16 19:05 bin
> 251172 drwxr-xr-x 2 root root 4 2006-11-16 19:07 dev
> 251175 drwxr-xr-x 9 root root 25 2007-08-06 00:46 etc
> 251234 -rw-r--r-- 1 root root 0 2006-12-19 21:47 fastboot
> 251691 -rwxr-xr-x 1 root root 8364 2007-08-03 17:40 hand-rolled.cgi
> 251235 drwxr-xr-x 2 root root 2 2006-11-16 19:08 initrd
> 251236 drwxr-xr-x 3 root root 53 2006-11-16 19:09 lib
> 251430 drwxr-xr-x 3 root root 3 1970-01-01 01:07 mnt
> 251432 drwxr-xr-x 2 root root 2 2004-08-04 00:05 proc
> 251433 drwxr-xr-x 2 root root 3 2007-08-04 17:13 root
> 251434 drwxr-xr-x 2 root root 36 2007-06-30 00:02 sbin
> 251687 -rw-r--r-- 1 root root 0 2007-08-05 21:05 test
> 251686 -rw-r--r-- 1 root root 0 2007-08-05 20:04 test.arm
> 251469 drwxr-xr-x 2 root root 6 2007-08-03 17:41 tmp
> 251470 drwxr-xr-x 6 root root 6 2007-08-05 23:54 usr
> 251546 drwxr-xr-x 8 root root 8 1970-01-01 02:22 var
> 251560 drwxr-xr-x 3 root root 3 2008-01-23 19:43 www
> bash-3.2#ls www/*/htdocs
> apache_pb.gif index.html test.html TSLogo.gif
>
> Note the arm fails even to list www in the first section but lists it
> as empty when I ls it explicitly.
>
> I've been going over and over , double, triple checking everything to
> make sure it's not me. I rebooted both machines and get the same crap.
>
> Can someone save my sanity and give me a clue what may be causing
> this aberation on ls?
>
> TIA. ;)
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|