summaryrefslogtreecommitdiffstats
path: root/sbin/mksnap_ffs/mksnap_ffs.c
Commit message (Collapse)AuthorAgeFilesLines
* - Print the nmount(2) provided error message only when it is set.jh2010-10-101-2/+6
| | | | | | | - Ensure that the error message is NUL-terminated before printing it. PR: bin/147482 MFC after: 2 weeks
* Initialize iov and iovlen before use.pjd2009-06-021-0/+2
| | | | Reported by: Lucius Windschuh <lwindschuh@googlemail.com>
* - Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOTpjd2009-05-291-31/+37
| | | | | | | | flag from a mount flag to FS-specific flag. - Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also accepted for now. - Add an example of how to mount a snapshot.
* Make sure we don't pass garbage to the kernel.phk2004-12-081-1/+2
| | | | The filesystem is named "ufs" not "ffs".
* Style nit in previous commit.des2004-01-271-1/+1
|
* Preserve acls option on mounts when taking a snapshot.mckusick2004-01-271-1/+5
| | | | Submitted by: Wiktor Niesiobedzki <freebsd-lists@w.evip.pl>
* Check that the user running mksnap_ffs has permission to create andmckusick2003-11-041-1/+33
| | | | | | | remove a snapshot file from the directory in which they have requested to have it made. If they do not have write permission in the directory or the directory is sticky and not owned by the user, then they will not be able to remove the snapshot when they are done with it.
* style(9): sort functions.trhodes2003-10-291-8/+8
|
* Properly prototype C function usage().trhodes2003-10-291-1/+3
| | | | Sync usage() with the manual page: s/file/snapshot_name/g.
* Close out a possible race where anybody in group operator couldmckusick2003-03-021-2/+11
| | | | | | | chown an arbitrary file to operator. Reported by: Ian Dowse <iedowse@maths.tcd.ie> Sponsored by: DARPA & NAI Labs.
* Add the mksnap_ffs command to the sbin directory. This setuid rootmckusick2003-03-021-0/+82
program allows users in the operator group to take filesystem snapshots. Its first use will be in support of `dump -L'. Approved by: Technical Review Board <trb@FreeBSD.org> Sponsored by: DARPA & NAI Labs.
OpenPOWER on IntegriCloud