aMule Forum

English => Feature requests => Topic started by: rlorenb on June 24, 2006, 10:47:55 AM

Title: Multiple path for temp amule files
Post by: rlorenb on June 24, 2006, 10:47:55 AM
Hi,

Why not having more than 1 path for amule temp files?
Title: Re: Multiple path for temp amule files
Post by: GonoszTopi on June 24, 2006, 10:52:52 AM
Why should we?
Title: Re: Multiple path for temp amule files
Post by: rlorenb on June 24, 2006, 12:24:33 PM
Because if you add files to download and the disk where amule temp files is at 98% of capacity, you can move some part files to another destination/disk which you have space to store it, so you can continue download all the files you need.
Title: Re: Multiple path for temp amule files
Post by: Knocker on June 25, 2006, 11:41:48 AM
Use symbolic links.

Read "man link" if you don't know them.
Title: Re: Multiple path for temp amule files
Post by: rlorenb on June 25, 2006, 12:48:56 PM
you mean this.....

My amule temp files is inside /mnt/downloads/temp_amule
So, if I put inside a set of simbolic links like link1, link2.... should work.

The structure
/mnt/downloads/temp_amule
    1.part
    2.part
    link1
    link2

Has amule the functionality to enter directories inside amule temp directory?
Title: Re: Multiple path for temp amule files
Post by: GonoszTopi on June 25, 2006, 04:29:23 PM
Like this:
Code: [Select]
~/.aMule/Temp$ ls 001* -alF
lrwxrwxrwx  1 topi users  24 2006-06-25 14:37 001.part -> /mnt/some-big-partition/amule/001.part
-rw-r--r--  1 topi users 684 2006-06-25 14:44 001.part.met
Beware, that when the file completes, you'll have a symbolic link in the incoming directory, so DO NOT remove the .part file from "some-big-partition"!
Title: Re: Multiple path for temp amule files
Post by: lfroen on June 25, 2006, 05:56:08 PM
GonoszTopi: you clearly won competition for most obsure solution ever presented on this forum :) To implement your solution someone must use following steps:
* Add file(s) to download queue
* Stop amule
* Move file(s) *part and *met to another partition
* Create symlinks
* Restart amule
*** Repeat each time you wanna add another file !

rlorenb: the real reason for "why" is because this would be real PITA to implement, while other solutions for the problem exists. LVM for example. Or take parted (on linux) and resize your partition.
Title: Re: Multiple path for temp amule files
Post by: GonoszTopi on June 25, 2006, 06:00:47 PM
lfroen: You know, I'm evil.
Title: Re: Multiple path for temp amule files
Post by: rlorenb on June 25, 2006, 06:33:24 PM
Ok thanks, but I don´t like that solution, if I have to move and the create simbolic links for each file i will become crazy....

lfroen: What´s PITA?
Title: Re: Multiple path for temp amule files
Post by: Vollstrecker on June 25, 2006, 06:37:43 PM
pain in the ass. Go to prion, drop your soap and you know what it means
Title: Re: Multiple path for temp amule files
Post by: Knocker on June 26, 2006, 12:27:23 PM
Quote
Originally posted by lfroen
* Add file(s) to download queue
* Stop amule
* Move file(s) *part and *met to another partition
* Create symlinks
* Restart amule
*** Repeat each time you wanna add another file !

No, you just have to move the bigger files already downloading to the new partition, set up the sym-links and of course rename the "real" files when the are finished.