Add the -C option to mount_mfs. This option will automatically copy the
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 1 Dec 2003 04:35:39 +0000 (04:35 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 1 Dec 2003 04:35:39 +0000 (04:35 +0000)
commit76f3e8b395b53ac93b12ee4876a306d3b90d22c7
tree2e678cf6debbd79926f7a1901c42e44ac008b07b
parent3a42736de19e4a279d338a75c395877e9093057c
Add the -C option to mount_mfs.  This option will automatically copy the
underlying filesystem into the MFS mount being created over it.  It does
this by loading the directory and file structure into memory, creating the
MFS mount, then storing the directory and file structure back into the MFS
mount.

This will be used when booting from read-only media to generate an 'easy'
read-write template.  For example:

    mount_mfs -s 16384 -C swap /var

Softlinks, devices, regular files, directories, and hardlinks are maintained.
Fifos and sockets are not copied.
sbin/newfs/Makefile
sbin/newfs/defs.h [new file with mode: 0644]
sbin/newfs/fscopy.c [new file with mode: 0644]
sbin/newfs/mkfs.c
sbin/newfs/newfs.c