[Xfce-bugs] [Bug 16688] New: Freeze new copy where source or target device is shared with another running one

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Mon Apr 13 12:44:35 CEST 2020


https://bugzilla.xfce.org/show_bug.cgi?id=16688

            Bug ID: 16688
           Summary: Freeze new copy where source or target device is
                    shared with another running one
    Classification: Xfce Core
           Product: Thunar
           Version: git
          Hardware: PC (x86_64)
               URL: https://github.com/jrd/thunar/tree/multi-copies-on-sam
                    e-device
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Medium
         Component: General
          Assignee: xfce-bugs at xfce.org
          Reporter: jrd at enialis.net
  Target Milestone: 1.8.13

Created attachment 9715
  --> https://bugzilla.xfce.org/attachment.cgi?id=9715&action=edit
patch based on rename-on-fail-copy branch

patched based on rename-on-fail-copy branch.

A transfer job register the device id for the first file to copy (source and
destination path).
Then when another transfer job is started, it checks if any of its
source/target device id match another running job (it also depends on user
preferences).
If yes, it will kind of freeze the job until all other jobs with matching
device id are either finished, canceled or paused.
A frozen transfer job could also be forced to do the transfer with a GUI
button.
Preferences for freeze on same source/target device or not have been added in
Thunar Preferences, under Behavior tab.

The idea is to lesser IO pressure on devices when doing multiple copies/moves,
especially on slow devices (USB, network, …)

The attached patched is based on my previous patch/bug
(https://bugzilla.xfce.org/show_bug.cgi?id=16686)
The commit can also be found in a git branch (url attached to this bug).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list