Page 1 of 1

clone / reflink + delete for move operation

Posted: 18 Mar 2020, 22:38
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.

Re: clone / reflink + delete for move operation

Posted: 19 Mar 2020, 06:17
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?

Re: clone / reflink + delete for move operation

Posted: 19 Mar 2020, 12:39
by LightningRider
Move isn't instant across BTRFS subvolumes.
See this topic
Probably should've given more context in original post.

Re: clone / reflink + delete for move operation

Posted: 19 Mar 2020, 16:46
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