[Pkg-amule-devel] Bug#579788: Bug#579788: amule: share directory on external disk isn't persistent

Celejar celejar at gmail.com
Sun May 2 02:10:09 UTC 2010


On Sat, 1 May 2010 14:10:18 +0200
Werner Mahr <werner at vollstreckernet.de> wrote:

> Am Freitag 30 April 2010 schrieb Celejar:
> 
> >  when I unplug the disk and later replug it, the directory is no
> >  longer present, and I have to once again manually enter the
> >  directory by navigating the file tree.
> 
> Absolute correct. When you delete a file, it's being removed from shares 
> on next access, same applies for deleted dirs and unplugged USB-Discs. 
> Otherwise you'll get a file not found message on every access, which 
> would be worse. We could keep the entry for the dir you mount the disc 
> in the list and just ignore it, which would cause the list of shares to 
> grow. In this case every deleted file or dir will stay in there, and 
> startup would take longer and longer because they have to be checked all 
> to see if they reappeared, and most likely they would be rehashed to see 
> if they are still the same file.
> 
> Just don't unplug the disc while aMule is running, and everything is 
> fine.

Thanks for the explanation.  But the disk is not always available, and
I sometimes want to run aMule when the disk isn't there.  In such a
case, isn't the directory still deleted?

Perhaps there could be some sort of option to mark certain special
directories as 'persistent', so this way we could have the best of both
worlds.  Ordinary files and directories will be automatically removed,
to avoid the problems you mention, but some basic share directories
could be allowed to remain, to avoid the user having to reenter them
frequently.

Regarding the problem of having constant 'file not found' errors,
there's anyway a "Reload shared files" button on the shared files
page.  Why not just mark any files or directories not found as
'inactive' or something, and recheck them when the user hits that
button?

Thanks again, and thanks for your Debian work in general,
Celejar
-- 
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator






More information about the Pkg-amule-devel mailing list