kevans eaf5615c2e mdmfs(8): add -k skel option to populate fs from a skeleton
mdmfs(8) lacks the ability to populate throwaway memory filesystems from an
existing directory.

This features permits an interesting setup where /var for instance lives on
a device where wear-leveling is something you want to avoid as much as
possible and nonetheless you don't want to lose your logs, ports metadata,
etc. Here are the steps:

1. Copy /var to /var.bak;
2. Mount an mfs into /var using -k /var.bak at startup;
3. Synchronize /var to /var.bak weekly and on shutdown.

Note that this more or less mimics OpenBSD's mount_mfs(8) -P flag.

PR:		146254
Submitted by:	jlh (many moons ago)
MFC after:	1 week
2019-11-01 03:10:53 +00:00
..
2019-08-13 20:06:55 +00:00
2019-02-04 21:28:25 +00:00
2019-05-23 20:12:24 +00:00
2019-08-13 20:06:55 +00:00
2019-03-08 10:03:16 +00:00
2019-08-08 20:56:52 +00:00
2017-10-31 00:07:04 +00:00
2019-01-05 16:05:39 +00:00
2019-08-13 20:06:55 +00:00
2019-06-25 04:50:09 +00:00