fskit icon indicating copy to clipboard operation
fskit copied to clipboard

Snapshot support

Open jcnelson opened this issue 11 years ago • 1 comments

Add an ioctl() that forces an fskit-enabled app to atomically dump the state of its filesystem to disk.

This should be a matter of:

  • write-lock the root inode
  • explore the filesystem tree and dump inode state
  • optionally call the app-defined read() callback (*) when exploring each regular file inode
  • unlock the root inode

Step 3 should be optional at the caller's discretion, since despite whatever documentation and warnings we may write to advise against it, we can't feasibly guarantee that read() will be side-effect-free for a particular application.

jcnelson avatar Dec 08 '14 04:12 jcnelson

Would it be possible to use btrfs snapshots/subvolumes as the root of the FSKit . . .

https://gitlab.com/btrfs-assistant/btrfs-assistant

https://github.com/andreittr/btrsync

https://github.com/nachoparker/btrfs-sync

https://github.com/mwilck/btrfs-clone

https://github.com/devel0/btrfs-rsync

Interested-Deving-1896 avatar May 11 '25 19:05 Interested-Deving-1896