cvs commit: src/sbin/newfs defs.h fscopy.c Makefile mkfs.c newfs.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Nov 30 20:36:41 PST 2003
dillon 2003/11/30 20:35:40 PST
DragonFly src repository
Modified files:
sbin/newfs Makefile mkfs.c newfs.c
Added files:
sbin/newfs defs.h fscopy.c
Log:
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.
Revision Changes Path
1.3 +2 -2 src/sbin/newfs/Makefile
1.6 +32 -20 src/sbin/newfs/mkfs.c
1.6 +8 -4 src/sbin/newfs/newfs.c
http://www.dragonflybsd.org/cvsweb/src/sbin/newfs/Makefile.diff?r1=1.2&r2=1.3&f=h
http://www.dragonflybsd.org/cvsweb/src/sbin/newfs/mkfs.c.diff?r1=1.5&r2=1.6&f=h
http://www.dragonflybsd.org/cvsweb/src/sbin/newfs/newfs.c.diff?r1=1.5&r2=1.6&f=h
More information about the Commits
mailing list