File:  [NetBSD Developer Wiki] / wikisrc / projects / project / tmpfs-snapshot.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Nov 6 21:08:23 2011 UTC (5 years, 1 month ago) by jmmv
Branches: MAIN
CVS tags: HEAD
Add missing categories to the "all" index and sprinkle difficulty-level
settings to the projects that lacked them.  The "all" index is now fully

[[!template id=project

title="Add snapshots to tmpfs"



Add memory-efficient snapshots to tmpfs.  A snapshot is a view of the
filesystem, frozen at a particular point in time.  The snapshotted filesystem is
not frozen, only the view is.  That is, you can continue to
read/write/create/delete files in the snapshotted filesystem.

The interface to snapshots may resemble the interface to null mounts, e.g.,
'mount -t snapshot /var/db /db-snapshot' makes a snapshot of /var/db/ at

You should exploit features of the virtual memory system like copy-on-write
memory pages to lazily make copies of files that appear both in a live tmpfs and
a snapshot.  This will help conserve memory.

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb