I'm using Transmission 2.82 on Xubuntu 14.04, and I noticed that after I deleted the downloaded file permanently from files manager, the job in Transmission was still active and kept seeding, and there was no change in free disk space, so I tried ls -l /proc/[pid]/fd
and I got this:
lr-x------ 1 name name 64 May 4 20:39 81 -> /home/downloads/ubuntu-16.04-server-i386.iso (deleted)
then I redownloaded the file and deleted it with rm
without deleting the job and the disk space was freed and ls -l /proc/[pid]/fd
gived no entry related to the file and the job was seeding at 0kb/s.
but to see if it was rm
that made the difference, I then tried three times delete the downloaded file with rm
while the job was seeding, and each times I received the same result, the jobs were active and seeding, no change in free disk space, and ls -l /proc/[pid]/fd
yielded something like:
lr-x------ 1 name name 64 May 4 20:39 26 -> /home/downloads/ubuntu-16.04-server-i386.iso (deleted)
and ls ubuntu-16.04-server-i386.iso
gived:
ls: cannot access ubuntu-16.04-server-i386.iso: No such file or directory
I also tried du -s
and df /home
in the download folder with another job respectively when:
Job running, file undeleted:
$ du -sh
11G
$ df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 58G 54G 1.2G 98% /
Job running, file deleted(with rm
) (and Transmission keeps seeding after deletion):
$ du -sh
9.9G
$ df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 58G 54G 1.2G 98% /
Job deleted, file deleted(in previous step):
$ du -sh
9.9G
$ df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 58G 54G 1.5G 98% /
So, what happened to the downloaded file? After I rm
it, how Transmission is still seeding the job? Is it possible to restore the file? Since du
and df
give different outputs, is the file relocated to some other place?