From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079341819430.tru64-unix-managers.marc@archive.invalid> From: hans van der heide Date: Thu, 09 Mar 2000 13:46:06 +0000 To: tru64-unix-managers Subject: Infinite Inode Loop X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079341819430 Hi, > Hi,=20 > I have the following trivial problem:=20 >=20 > On one of our systems (Tru64 4.0D, advfs) I find a directory with an=20 > infinite loop of inodes in it, a subdirectory points to the directory = > itself. While this system cannot be shutdown and the directory is in = /usr I=20 > cannot run verify which might eventually solve the problem itself.=20 > How can I remove / patch the directory in a running system?=20 >=20 > Hans van der Heide (hans.vanderheide@bdl.ch) Maybe I did not make myself clear, the problem shows like this: =20 cd /usr/inodes_with_infinite_loops =20 ls -ali 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 . 2 drwxr-xr-x 27 root system 8192 Jul 26 1999 .. 17977 drwxr-xr-x 2 root adm 8192 Jul 26 1999 = 15-Jul-15:24 994 drwxr-xr-x 2 root system 8192 Jul 26 1999 cron 1689 drwxr-xr-x 2 root system 8192 Jul 26 1999 esnmp 1687 drwxrwxrwx 2 root system 8192 Jul 26 1999 samba 637 drwxr-xr-x 2 root system 8192 Jul 26 1999 sambavar 1042 drwxr-xr-x 2 root adm 8192 Jul 26 1999 = syslog.dated 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 tmp1 ls -aliR tmp1 total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. =20 tmp1/>: total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. =20 tmp1/>/>: total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. =20 tmp1/>/>/>: total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. =20 tmp1/>/>/>/>: total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. =20 and-so-on, and shows the following doing=20 =20 ls -ali tmp1 total 16 1542 drwxrwxrwx 2 root system 8192 Jul 26 1999 > 1544 drwxr-xr-x 9 root system 8192 M=E4r 9 13:38 >. cd tmp1 ; ls -ali . not found =20 and find results in find tmp1 -inum 1544 find: tmp1/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>/>= />/> />/>/>/>/>/>/>/>/>/>/>/>/>/>/>. Path name too long. find: bad directory <..> rmlink tmp1 does not change anything. =20 Mark the ">" in the "." and ".." entries. These look very strange to = me. Hans van der Heide (hans.vanderheide@bdl.ch)=20 =20