Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4773 closed Enhancement (invalid)

Use hard links instead of copying data when source and dest are on same filesystem

Reported by: mechanic Owned by:
Priority: Normal Milestone: None Set
Component: Transmission Version: 2.42
Severity: Normal Keywords:


When a torrent is moved from incomplete-dir to download-dir or when a user changes the data location of a torrent, the data is copied, which causes unnecessary i/o if the source and destination are on the same filesystem. Especially since there is no separate thread for i/o, this can cause transmission to block for a while. Hard linking the data files would be much more efficient when possible.

Change History (3)

comment:1 Changed 11 years ago by jordan

Hm, iirc we try rename() first before actually copying the file, so if we're doing same-filesystem movement it shouldn't be copying right now. Mechanic, could you double-check this request?

comment:2 Changed 11 years ago by mechanic

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

You are correct, my bad.

comment:3 Changed 11 years ago by jordan

Hooray, I was correct for once!

/me puts a gold star on his calendar for the day

Note: See TracTickets for help on using tickets.