Succedono a volte (tipo
[root@fwadm-eng1 admtj60]# tar xvf eventiaziiextsiu_20100518.tgz
) cose strane:
[root@fwadm-eng1 admtj60]# ls -li total 270532 2485595 drwxr-xr-x 7 root root 4096 May 18 13:43 backup 2485591 -rw-r--r-- 1 root root 276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz 2485593 drwxr-xr-x 3 root root 4096 May 18 11:06 ??-?????vS?9?=?6?ʶ4?h?z??6?9i�?
Domanda: “Come si cancella l’ultima directory?”
[root@fwadm-eng1 admtj60]# rm "???=m??n&?-+E??#r=a?{,SUzr??U?????\6?????j?g??"
rm: cannot lstat `???=m??n&?-+E??#r=a?{,SUzr??U?????\\6?????j?g??': No such file or directory
Ovvero: una sonora pernacchia elettronica.
Soluzione: eliminare quello che viene trovato per inode.
[root@fwadm-eng1 admtj60]# ls -li
total 270532
2485595 drwxr-xr-x 7 root root 4096 May 18 13:43 backup
2485591 -rw-r--r-- 1 root root 276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz
2485593 drwxr-xr-x 3 root root 4096 May 18 11:06 ??-?????vS?9?=?6?ʶ4?h?z??6?9i�?
[root@fwadm-eng1 admtj60]# find . -xdev -type d -inum 2485593 -exec rm -r {} \;
find: ./¥-°Ë°ÎvSú9=è6«Ê¶4hÙzÐ6´9iã: No such file or directory
[root@fwadm-eng1 admtj60]# ls -li
total 270528
2485595 drwxr-xr-x 7 root root 4096 May 18 13:43 backup
2485591 -rw-r--r-- 1 root root 276741810 May 18 10:50 eventiaziiextsiu_20100518.tar.gz
strange but true.