Commit Graph

22 Commits

Author SHA1 Message Date
pgoyette e8022dfde6 Include rump-vs-host ops files 2016-07-31 02:15:54 +00:00
pgoyette d5966167a4 Add rump.fssconfig 2016-07-31 02:13:26 +00:00
pgoyette 8628665eb6 Update command line parsing to match reality. Only one of -c, -u, or
-l can be specified, and the -x option is available only for -c.
2016-07-30 12:33:27 +00:00
pgoyette b3610864a5 Improve wording, enhance the example 2016-07-29 05:20:33 +00:00
hannken 30f40cbb12 Describe the differences between file system internal and external snapshots. 2013-11-15 09:13:57 +00:00
wiz 0c848d03c9 Fix typo. 2013-03-05 23:01:06 +00:00
jdf ac3f3ae535 Fix wording: s/ffs file systems/FFS file systems/
Proposed by Snader_LB
2013-03-05 22:58:59 +00:00
christos c6352516aa include the headers you need 2012-11-04 22:21:11 +00:00
hannken a8055efc22 Initialize `fss_flags' before setting an individual bit.
Not a real problem as there is only one valid bit yet.

From Edgar Fuss via tech-kern@netbsd.org
2012-07-28 15:09:44 +00:00
hannken 58d3be794f File system snapshots are no longer experimental.
Forgot to chang this man page in Nov 2011.
2012-06-11 15:25:14 +00:00
joerg d6ee580bf7 static + __dead 2011-08-30 18:30:13 +00:00
hannken 05e91bfee8 fss(4): Allow FSSIOCSET to set the initial flags. Add a new flag
"FSS_UNLINK_ON_CREATE" to unlink the backing store before
        the snapshot gets created.

With this change dump(8) no longer dumps the zero-sized, but named
snapshot it is working on.  Same applies to fsck_ffs(8).
2011-02-24 09:38:57 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
hannken 6cb4c22637 Support user controllable flags for the snapshot driver:
- Add FSSIOFSET and FSSIOFGET ioctl() to set/get the flags.
- Add FSS_UNCONFIG_ON_CLOSE flag to unconfigure the snapshot device
  on the last close.

Reviewed by: Jason R. Thorpe <thorpej@netbsd.org>
2005-04-17 16:28:26 +00:00
wiz 1f875a68df Give Dd the full month name as argument. 2005-02-01 13:39:43 +00:00
hannken 372dee1a5d Note file system internal snapshots. 2005-01-31 22:08:55 +00:00
hannken 8c21bc6224 Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
    may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
    Snapshots may not be opened for writing and the attributes are read-only.
    Use the mtime as the time this snapshot was taken.
    Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
  one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
  a vnode.
- Add snapshot support to ls, fsck_ffs and dump.

Welcome to 2.0F.

Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-05-25 14:54:55 +00:00
christos 6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
hannken 067a3b897d Update the file system snapshot driver:
- Document the kernel thread.
- Rename some functions and variables.
- Return EROFS where appropriate.
- Use shifts instead of 64-bit divide.
- Use a simple_lock to make it MP-safe.
- Add M_CANFAIL to malloc to avoid panic on large cluster size.
- Allow sparse file for backing store and use VOP_BALLOC() to allocate
  space. Default size of backing store is the size of the file system.
2004-01-11 19:05:26 +00:00
wiz 68c32a13a8 Drop trailing spaces; new sentence, new line; fix width
argument to avoid confusion (indent is only magic for -offset); add a comma
for easier reading.
2003-12-11 17:12:11 +00:00
hannken fbae381aaa The file system snapshot pseudo driver.
Uses a hook in spec_strategy() to save data written from a mounted
file system to its block device and a hook in dounmount().

Not enabled by default in any kernel config.

Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-12-10 11:40:11 +00:00