FreeBSD/src f2a2857 (r62976)sys/compat/svr4 svr4_fcntl.c, sys/conf files

Add snapshots to the fast filesystem. Most of the changes support
the gating of system calls that cause modifications to the underlying
filesystem. The gating can be enabled by any filesystem that needs
to consistently suspend operations by adding the vop_stdgetwritemount
to their set of vnops. Once gating is enabled, the function
vfs_write_suspend stops all new write operations to a filesystem,
allows any filesystem modifying system calls already in progress
to complete, then sync's the filesystem to disk and returns. The
function vfs_write_resume allows the suspended write operations to
begin again. Gating is not added by default for all filesystems as
for SMP systems it adds two extra locks to such critical kernel
paths as the write system call. Thus, gating should only be added
as needed.

Details on the use and current status of snapshots in FFS can be
found in /sys/ufs/ffs/README.snapshot so for brevity and timelyness
is not included here. Unless and until you create a snapshot file,
these changes should have no effect on your system (famous last words).
DeltaFile
+1,028-0sys/ufs/ffs/ffs_snapshot.c
+221-95sys/kern/vfs_extattr.c
+221-95sys/kern/vfs_syscalls.c
+112-156sys/ufs/ffs/ffs_vfsops.c
+162-2sys/kern/vfs_vnops.c
+113-1sys/nfsserver/nfs_serv.c
+113-1sys/nfs/nfs_serv.c
+112-0sys/ufs/ffs/README.snapshot
+37-16sys/ufs/ffs/ffs_softdep.c
+25-7sys/fs/unionfs/union_subr.c
+25-7sys/miscfs/union/union_subr.c
+26-3sys/kern/vfs_subr.c
+26-3sys/kern/vfs_export.c
+17-8sys/sys/vnode.h
+16-7sys/gnu/fs/ext2fs/ext2_bmap.c
+16-7sys/gnu/ext2fs/ext2_bmap.c
+16-7sys/ufs/ufs/ufs_bmap.c
+18-4sys/miscfs/specfs/spec_vnops.c
+18-4sys/fs/specfs/spec_vnops.c
+9-9sys/dev/vn/vn.c
+16-1sys/ufs/ffs/ffs_alloc.c
+16-0sys/miscfs/union/union_vnops.c
+12-4sys/kern/uipc_usrreq.c
+16-0sys/kern/vnode_if.src
+16-0sys/fs/unionfs/union_vnops.c
+15-0sys/kern/vfs_default.c
+12-2sys/ufs/ffs/ffs_vnops.c
+11-1sys/vm/vm_pageout.c
+10-2sys/ufs/ufs/ufs_inode.c
+11-0sys/kern/kern_sig.c
+7-2sys/miscfs/fdesc/fdesc_vnops.c
+9-0sys/ufs/ffs/ffs_balloc.c
+7-2sys/fs/fdescfs/fdesc_vnops.c
+6-0sys/ufs/ffs/ffs_extern.h
+3-3sys/ufs/ffs/softdep.h
+6-0sys/kern/tty_tty.c
+5-1sys/kern/vfs_bio.c
+4-1sys/kern/kern_ktrace.c
+5-0sys/vm/vnode_pager.c
+4-0sys/compat/svr4/svr4_fcntl.c
+4-0sys/svr4/svr4_fcntl.c
+3-0sys/ufs/ufs/ufs_vnops.c
+2-0sys/conf/files
+2-0sys/ufs/ufs/ufs_quota.c
+1-0sys/ufs/ufs/inode.h
+1-0sys/ufs/ufs/ufs_extern.h
+1-0sys/sys/buf.h
+1-0sys/gnu/fs/ext2fs/inode.h
+1-0sys/fs/fifofs/fifo_vnops.c
+1-0sys/miscfs/fifofs/fifo_vnops.c
+1-0sys/gnu/ext2fs/inode.h
+1-0sys/sys/proc.h
+2,541-45152 files

UnifiedSplitRaw