gpt4 book ai didi

android - 当前目录上的符号链接(symbolic link)级别太多?

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:39:40 24 4
gpt4 key购买 nike

在 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

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

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

这个来自android开源项目的external/iptables/extensions目录。也许它与 repo/git 相关?我确实在所有项目的 .git 目录中看到很多损坏的符号链接(symbolic link):

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 是损坏的链接。不知道为什么,这是我必须要看的其他内容。

最佳答案

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

> /bin/ls -al

关于android - 当前目录上的符号链接(symbolic link)级别太多?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8662444/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com