
September 1st, 2006, 01:33 PM
|
|
Contributing User
|
|
Join Date: Aug 2004
Posts: 58
Time spent in forums: 11 h 7 m 15 sec
Reputation Power: 5
|
|
|
Hard link loop
Hello,
I'm testing a bug regarding a hard link loop and I'm unable to remove the directories which contained the hard link even after unlinking them:
Setup:
Code:
#pwd
/tmp/rmtest/testdir
#mkdir -p loopdir/dir1
#link loopdir loopdir/dir1/dir2
Removal:
Code:
#pwd
/tmp/rmtest/testdir
#unlink loopdir
#ls -l
total 0
#cd ..
#ls -l
total 8
drwxrwxrwx 4 as145665 staff 117 Aug 31 13:18 testdir
#rm -rf testdir/
rm: Unable to remove directory testdir/: File exists
#cd ..
#rm -rf rmtest/
rm: Unable to remove directory rmtest//testdir: File exists
rm: Unable to remove directory rmtest/: File exists
Please help as I'm stuck with this.
Ankur
|