clone / reflink + delete for move operation

All your suggestions, requests and ideas for future development
Post Reply
LightningRider
Posts: 10
Joined: 08 Aug 2019, 09:40

clone / reflink + delete for move operation

Post by LightningRider »

I noticed on the release notes for 4.9.0:
Enable clone (on macOS / apfs) and reflink (on Linux / btrfs) by default for all COPY operations
I was hoping this could be extended for all MOVE operations as well.
Basically do what the title says:
  • Try clone / reflink.
    • If it succeeds: delete original file.
    • If it fails: fall back to default (current) move behaviour.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: clone / reflink + delete for move operation

Post by rednoah »

Same File System:
* MOVE is instant
* CLONE / HARDLINK is possible

Different File Systems:
* MOVE will resort to COPY+DELETE (on the OS level, FileBot doesn't know or care)
* CLONE / HARDLINK is not possible


:?: How is CLONE+DELETE an improvement on either case?
:idea: Please read the FAQ and How to Request Help.
LightningRider
Posts: 10
Joined: 08 Aug 2019, 09:40

Re: clone / reflink + delete for move operation

Post by LightningRider »

Move isn't instant across BTRFS subvolumes.
See this topic
Probably should've given more context in original post.
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: clone / reflink + delete for move operation

Post by rednoah »

I can't check for BTRFS subvolumes, and it's a pretty rare use case all in all, only Linux users, only BTRFS users, only BTRFS users using subvolumes, etc.


You can of course provide your own rename action and then do whatever works best for your specific setup:
viewtopic.php?t=4915
:idea: Please read the FAQ and How to Request Help.
Post Reply