Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1160 closed feature-request (Invalid)

Allow selected downloads for compact allocation

Reported by: mathbr Owned by:
Priority: minor Milestone: 1.3
Component: Core Version: 1.2.1
Keywords: Cc:

Description

Deluge currently says, that selected downloads (which files to download and which not) is only possible with the full file allocation contrary to the compact one.

However, if I switch to full allocation, add my torrent and select the files I want, I can happily switch back to compact allocation thereafter and everything’s fine.

If there’s a technical limitation it’s not really clear to me. If there is no such limitation then there’s also no reason to not allow selected downloads with compact file allocation.

Thus my request is to allow this.

Change History (8)

comment:1 follow-up: Changed 14 years ago by damoxc

  • Resolution set to invalid
  • Status changed from new to closed

You aren't actually changing the allocation for the torrent, you are just changing the allocation for all future added torrents. Changing the allocation in preferences doesn't change it for currently added torrents.

comment:2 in reply to: ↑ 1 ; follow-up: Changed 14 years ago by mathbr

Replying to damoxc:

You aren't actually changing the allocation for the torrent, you are just changing the allocation for all future added torrents. Changing the allocation in preferences doesn't change it for currently added torrents.

The only thing I see is that Deluge allows me to do what I want this way: selected downloads with compact file allocation. I’m talking about newly added torrents after all.

comment:3 in reply to: ↑ 2 ; follow-up: Changed 14 years ago by damoxc

Replying to mathbr:

The only thing I see is that Deluge allows me to do what I want this way: selected downloads with compact file allocation. I’m talking about newly added torrents after all.

But that torrent won't be using compact allocation, it will be using full. You can't switch it once the torrent has been added. It stays with the allocation that it was added in, which in this case in as you wanted to gain the ability to have selective downloading you chose full.

comment:4 in reply to: ↑ 3 Changed 14 years ago by mathbr

Replying to damoxc:

You can't switch it once the torrent has been added. It stays with the allocation that it was added in, which in this case in as you wanted to gain the ability to have selective downloading you chose full.

Hm, but I made sure to check with "du" and the size did increase incrementally instead of being the same full size all the time. Doesn’t the full allocation in deluge not work by allocating space with zeros and thus using that space early?

comment:5 Changed 14 years ago by damoxc

It depends on your filesystem, on decent filesystems that support sparse files then it doesn't need to, most filesystems on linux support this.

Heres an example of creating a sparse file using dd:

$ dd if=/dev/zero of=somefile bs=1 seek=20G count=0
0+0 records in
0+0 records out
0 bytes (0 B) copied, 1.9416e-05 s, 0.0 kB/s
$ du -sh somefile 
0	somefile
$ ls -lh somefile 
-rw-r--r-- 1 damien users 20G Feb 25 00:13 somefile

comment:6 Changed 14 years ago by mathbr

Ah, got it. I indeed did not check with ls since I’m used to du telling me the truth. Thanks for clarifying.

Maybe consider asking the user to switch to full allocation mode directly from within the torrent adding dialog if he wants to do selected downloads?

comment:7 follow-up: Changed 14 years ago by damoxc

Good idea, if you wouldn't mind filing another ticket for that then should be able to get that in!

comment:8 in reply to: ↑ 7 Changed 14 years ago by mathbr

Replying to damoxc:

Good idea, if you wouldn't mind filing another ticket for that then should be able to get that in!

Done with #1161.

Note: See TracTickets for help on using tickets.