Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snapshot support #4

Open
jcnelson opened this issue Dec 8, 2014 · 0 comments
Open

Snapshot support #4

jcnelson opened this issue Dec 8, 2014 · 0 comments

Comments

@jcnelson
Copy link
Owner

jcnelson commented Dec 8, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant