UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 1st, 2006, 01:33 PM
ankur1216 ankur1216 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 58 ankur1216 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Hard link loop


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT