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

Feature to unmount filesystem after some idle time #183

Open
peesock opened this issue Jul 12, 2024 · 2 comments
Open

Feature to unmount filesystem after some idle time #183

peesock opened this issue Jul 12, 2024 · 2 comments

Comments

@peesock
Copy link

peesock commented Jul 12, 2024

Like CryFS's --unmount-idle option to automatically unmount the filesystem X time after no operations (or open files, i assume).

In the absence of this feature, i wrote a shell script to parse the output of securefs m --trace, but obviously the logging slows things down (1.8s to 2.6s when writing a 100MiB file from /dev/random) and with my current shell implementation of the parser, it's super slow (7.6s). But otherwise it works well.

It would be nice to have this feature in securefs if possible. In the meantime i'll optimize the shell script -- probably stop it from reading lines for ~5 seconds after it detects a [Trace] line, or rewrite the parsing in awk.

@netheril96
Copy link
Owner

Let me think how this can be done.

@peesock
Copy link
Author

peesock commented Jul 12, 2024

Here's the initial CryFS commit if it helps cryfs/cryfs@978e7db

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

No branches or pull requests

2 participants