New submission from Adam Megacz <[EMAIL PROTECTED]>:

(assigning to droundy hoping he will reassign to the right person, since I
 don't know who that would be... this isn't important enough for him to fix
 personally)

In CheckFileSystem.lhs, the function 
can_I_remove_directories_holding_open_files 
opens a file, removes it, then attempts to remove the directory in which that 
file resides.

This will fail on AFS (AFS semantics: when an open file is removed, its inode 
is 
reattached to the directory as .__afsXXXX until the file is closed ==> hence 
the 
directory is no longer empty and cannot be removed).  That's no big deal; it 
just means darcs can't use mmap.  But the check function should close the open 
file and then [try to] remove the directory again in order to not leave behind 
droppings.

This manifests itself when you "darcs get" to a destination in /afs/.  
Otherwise 
everything works wonderfully.

Thanks!

  - a

----------
assignedto: droundy
messages: 857
nosy: droundy, megacz, tommy
priority: bug
status: unread
title: can_I_remove_directories_holding_open_files does not clean up after self

____________________________________
Darcs issue tracker <[EMAIL PROTECTED]>
<http://bugs.darcs.net/issue232>
____________________________________

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to