You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.
tmpfs is a temporary filesystem that resides in memory and/or swap partition(s). Mounting directories as tmpfs can be an effective way of speeding up accesses to their files, or to ensure that their contents are automatically cleared upon reboot.
It looks like there is a (linux only) libmount that could be leveraged to do the job, although I would prefer using ramfs, as it is guaranteed to be in ram. I haven't looked at that crate, but ramfs could potentially be added there.
It's also at least theoretically possible to support windows, as a tool exists called ImDisk, but this issue is suggesting unix-only support through the tmpfs call (for now).
This issue is mostly to ask whether this feature would be supported by the project devs or whether a new crate should be made instead. Thanks!
The text was updated successfully, but these errors were encountered:
Hi @vitiral! This is an interesting idea. I think a separate crate is probably the best place to start because of the potential difficulty in cross-platform support, and because I think an in-memory fs is a useful thing in its own right with some separate use-cases to just probably-temporary directories on disk.
I'm curious whether
tempdir
would be interested in adding aRamDir
type if it were possible to make such a type.tmpfs is:
It looks like there is a (linux only) libmount that could be leveraged to do the job, although I would prefer using ramfs, as it is guaranteed to be in ram. I haven't looked at that crate, but
ramfs
could potentially be added there.It's also at least theoretically possible to support windows, as a tool exists called ImDisk, but this issue is suggesting unix-only support through the
tmpfs
call (for now).This issue is mostly to ask whether this feature would be supported by the project devs or whether a new crate should be made instead. Thanks!
The text was updated successfully, but these errors were encountered: