当前目录中的符号链接级别太多?

时间:2011-12-28 23:27:58

标签: android linux git unix repository

在Ubuntu 11.10上的NFS共享目录中执行简单的“ls”时出现以下错误。

user@host[/android-master/external/iptables/extensions]
> ls -al
ls: reading directory .: Too many levels of symbolic links
total 580
drwxrwxr-x  2 stephen stephen 12288 2011-12-28 17:16 .
drwxrwxr-x 11 stephen stephen  4096 2011-12-28 17:16 ..
-rwxrwxr-x  1 stephen stephen   229 2011-12-28 17:16 filter_init
-rw-rw-r--  1 stephen stephen  6594 2011-12-28 17:16 GNUmakefile.in
-rw-rw-r--  1 stephen stephen  3286 2011-12-28 17:16 libip6t_ah.c
-rw-rw-r--  1 stephen stephen  4595 2011-12-28 17:16 libip6t_dst.c
-rw-rw-r--  1 stephen stephen   363 2011-12-28 17:16 libip6t_eui64.c

我很困惑为什么我得到这个。当前目录不是符号链接(由父项上的ls确认)。

另外,当我在安装相同NFS路径的Ubuntu 10.04机器上执行相同的“ls”时,它没有这个问题。

这是来自android开源项目的external / iptables / extensions目录。也许它的repo / git相关?我确实在所有项目的.git目录中看到了许多破坏的符号链接:

user@host[/android-master/external/iptables/.git]
> ls -al
total 48
drwxrwxr-x  2 stephen stephen  4096 2011-12-28 17:16 .
drwxrwxr-x 11 stephen stephen  4096 2011-12-28 17:16 ..
lrwxrwxrwx  1 stephen stephen    52 2011-12-28 17:16 config -> ../../../.repo/projects/external/iptables.git/config
lrwxrwxrwx  1 stephen stephen    57 2011-12-28 17:16 description -> ../../../.repo/projects/external/iptables.git/description
-rw-rw-r--  1 stephen stephen    41 2011-12-28 17:16 HEAD
lrwxrwxrwx  1 stephen stephen    51 2011-12-28 17:16 hooks -> ../../../.repo/projects/external/iptables.git/hooks
-rw-rw-r--  1 stephen stephen 35645 2011-12-28 17:16 index
lrwxrwxrwx  1 stephen stephen    50 2011-12-28 17:16 info -> ../../../.repo/projects/external/iptables.git/info
lrwxrwxrwx  1 stephen stephen    50 2011-12-28 17:16 logs -> ../../../.repo/projects/external/iptables.git/logs
lrwxrwxrwx  1 stephen stephen    53 2011-12-28 17:16 objects -> ../../../.repo/projects/external/iptables.git/objects
lrwxrwxrwx  1 stephen stephen    57 2011-12-28 17:16 packed-refs -> ../../../.repo/projects/external/iptables.git/packed-refs
lrwxrwxrwx  1 stephen stephen    50 2011-12-28 17:16 refs -> ../../../.repo/projects/external/iptables.git/refs
lrwxrwxrwx  1 stephen stephen    54 2011-12-28 17:16 rr-cache -> ../../../.repo/projects/external/iptables.git/rr-cache
lrwxrwxrwx  1 stephen stephen    49 2011-12-28 17:16 svn -> ../../../.repo/projects/external/iptables.git/svn

packed-refs和svn是断开的链接。不知道为什么,这是我必须要看的其他东西。

1 个答案:

答案 0 :(得分:0)

尝试使用实际的“ls”命令,而不是shell的内置命令:

> /bin/ls -al