freebsd-skq/sbin
mckusick f692f64089 Create a .snap directory mode 770 group operator in the root of
a new filesystem. Dump and fsck will create snapshots in this
directory rather than in the root for two reasons:

1) For terabyte-sized filesystems, the snapshot may require many
   minutes to build. Although the filesystem will not be suspended
   during most of the snapshot build, the snapshot file itself is
   locked during the entire snapshot build period. Thus, if it is
   accessed during the period that it is being built, the process
   trying to access it will block holding its containing directory
   locked. If the snapshot is in the root, the root will lock and
   the system will come to a halt until the snapshot finishes. By
   putting the snapshot in a subdirectory, it is out of the likely
   path of any process traversing through the root and hence much
   less likely to cause a lock race to the root.

2) The dump program is usually run by a non-root user running with
   operator group privilege. Such a user is typically not permitted
   to create files in the root of a filesystem. By having a directory
   in group operator with group write access available, such a user
   will be able to create a snapshot there. Having the dump program
   create its snapshot in a subdirectory below the root will benefit
   from point (1) as well.

Sponsored by:   DARPA & NAI Labs.
2003-11-04 07:34:32 +00:00
..
adjkerntz Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
atacontrol Adjust to the new sys/ata.h layout 2003-08-24 09:23:54 +00:00
atm Defer allocation of the actual receive mbuf until the external buffer 2003-10-29 13:14:39 +00:00
badsect Add section number to .Xr 2003-06-08 12:40:50 +00:00
bsdlabel Only automatically create an 'a' partition when there is nothing 2003-10-18 19:32:35 +00:00
camcontrol Fix alignment of the trailing \ 2003-08-22 01:56:17 +00:00
ccdconfig Make this WARNS=6 clean by renaming the variable 'err' to 'error' 2003-08-07 19:10:35 +00:00
clri Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
comcontrol Make this WARNS=6 clean by prototyping 'usage'. 2003-08-08 19:51:01 +00:00
conscontrol The .Nm utility 2002-07-06 19:34:18 +00:00
cxconfig Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
devd Parse the ! lines that will soon be coming from the kernel. These are 2003-10-24 22:02:29 +00:00
devfs Get rid of duplicates. 2003-09-14 13:41:59 +00:00
dhclient Turn the annoying and long error message off. It was so 2003-08-09 20:36:06 +00:00
disklabel mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
dmesg Replace the code for reading and writing the kernel message buffer 2003-06-22 02:18:31 +00:00
dump revert to version 1.25 and use va_copy to obtain another copy of the 2003-09-21 22:14:49 +00:00
dumpfs Marshal newfs -L (filesystem volume names), the names are not marshalled 2003-06-09 09:26:02 +00:00
dumpon Bring the dumpon(8) man page closer to reality: 2003-05-07 19:37:51 +00:00
fdisk s/disklabel/bsdlabel where needed. 2003-10-11 08:24:07 +00:00
fdisk_pc98 Oops, DIOCGPC98 should be DIOCSPC98. 2003-05-01 14:30:59 +00:00
ffsinfo Commit 1 of 2 to fix ffsinfo(8) for UFS2. 2003-08-14 18:55:31 +00:00
fsck Bump WARNS level and add a '?' to WARNS=. 2003-10-29 16:10:17 +00:00
fsck_ffs Change the default mode for lost+found from 01777 to 0700. The 2003-10-19 21:49:44 +00:00
fsck_msdosfs In check.c: 2003-10-30 09:08:09 +00:00
fsdb Backout Rev. 1.24 2003-08-30 07:49:42 +00:00
fsirand Create a new 32-bit fs_flags word in the superblock. Add code to move 2002-11-27 02:18:58 +00:00
gbde Make the regression test run also with obj directories. 2003-10-17 19:52:07 +00:00
gpt Assorted mdoc(7) fixes. 2003-06-02 11:19:24 +00:00
growfs Remove a few unused variables. 2003-10-30 05:43:56 +00:00
ifconfig We want the length of the string, not the size of its pointer. 2003-11-01 00:03:20 +00:00
init Add section number to .Xr 2003-06-08 12:51:28 +00:00
ip6fw Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
ipf Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipfs add extra include path to get .h files from source being used to compile 2002-03-26 10:09:09 +00:00
ipfstat Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipfw Replace the if_name and if_unit members of struct ifnet with new members 2003-10-31 18:32:15 +00:00
ipmon Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
ipnat Move my maintainership of parts of ipfilter back to Darren Reed 2003-06-06 11:30:50 +00:00
kldconfig Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldload Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldstat Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldunload Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
ldconfig Describe the pattern filenames must be in before they are added to the hints 2003-05-08 17:25:41 +00:00
mca o Replace 'struct uuid' with 'uuid_t', 2002-11-01 06:34:35 +00:00
md5 Set exit code to 1 in case at least one of the input files 2003-11-02 23:12:08 +00:00
mdconfig Add a full example of a file-backed disk creation, I used the Handbook's 2003-10-11 09:59:25 +00:00
mdmfs Don't reinvent the wheel: Use setmode(3) to interpret 2003-08-05 15:04:39 +00:00
mknod Remove some more MAKEDEV information. 2003-03-25 18:43:10 +00:00
mksnap_ffs Check that the user running mksnap_ffs has permission to create and 2003-11-04 07:04:01 +00:00
mount style.Makefile: Add a '?' before '=' in WARNS. 2003-10-26 00:35:05 +00:00
mount_cd9660 Revert the first part of my previous change. 2003-11-01 16:57:19 +00:00
mount_ext2fs Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup, 2003-01-01 18:49:04 +00:00
mount_hpfs MAXPATHLEN includes the trailing NUL, so no need to add 1 here. 2003-08-07 04:50:29 +00:00
mount_msdosfs Fix several old bugs which got worse over time: 2003-10-23 16:09:20 +00:00
mount_nfs mdoc(7): There cannot be a subsection inside a list. 2003-09-10 08:24:33 +00:00
mount_ntfs - Support for multibyte charsets in LIBICONV. 2003-09-26 20:26:25 +00:00
mount_nullfs The .Xr utility 2003-02-05 13:50:41 +00:00
mount_std Reduce fstab(5)/mount(8) confusion by changing the man pages to say "ro" 2003-10-22 18:25:49 +00:00
mount_udf mount_udf(8) is currently not in 4.X, so obviously it did not first appear 2002-12-12 05:56:36 +00:00
mount_umapfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
mount_unionfs Uniformly refer to a file system as "file system". 2002-12-12 17:26:04 +00:00
natd Add Cisco Skinny Station protocol support to libalias, natd, and ppp. 2003-09-23 07:41:55 +00:00
newfs Create a .snap directory mode 770 group operator in the root of 2003-11-04 07:34:32 +00:00
newfs_msdos Additional PC98 option is not needed. 2003-01-30 15:09:21 +00:00
nfsiod Correct a grammatical error. 2003-08-12 20:01:10 +00:00
nologin The .Nm utility 2002-07-06 19:34:18 +00:00
nos-tun 64 bit fixes. in_addr_t is an uint32_t, not a u_long. 2003-10-26 04:37:57 +00:00
ping mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
ping6 Switch Advanced Sockets API for IPv6 from RFC2292 to RFC3542 2003-10-24 18:26:30 +00:00
quotacheck Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so 2003-08-07 05:38:56 +00:00
raidctl Get rid of duplicates. 2003-09-14 13:41:59 +00:00
rcorder mdoc(7) police: Fixed markup now that it was taken out of vendor branch. 2002-11-25 16:23:03 +00:00
reboot Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
restore Fix gcc warnings. If NAME_MAX is 255, and d_namlen is a uint8_t, then 2003-10-26 04:43:02 +00:00
route Add the -xresolve flag to the route(8) man page. 2003-09-26 17:03:09 +00:00
routed Prefer PATH_MAX to MAXPATHLEN. Both contain the trailing NUL, so 2003-08-07 05:38:56 +00:00
rtsol use arc4random. 2003-08-22 18:59:55 +00:00
savecore Revision 1.61 changed the allocation of buffer 'buf' in DoFile() from 2003-10-08 07:37:11 +00:00
setkey - style 2003-10-17 11:43:44 +00:00
shutdown Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
slattach Change this: 2003-01-08 06:43:27 +00:00
spppcontrol Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
startslip Centralize _PATH_* definitions. 2003-05-05 22:49:23 +00:00
sunlabel Use (char *)NULL to terminate the argument list for execlp(). 2003-10-30 15:04:37 +00:00
swapon Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
sysctl Fix a few style glitches in the previous commit and make the 2003-11-01 07:06:04 +00:00
tunefs Remove another reference to ffsinfo.8 2003-06-17 22:47:11 +00:00
umount When removing trailing slashes, don't remove the first character 2003-10-29 17:44:36 +00:00
vinum Fix some 64 bit warnings. You can't fit a pointer in an int. 2003-10-26 04:47:31 +00:00
Makefile Temporarily disconnect ipfstat, ipnat, and ipftest to unbreak world. 2003-10-31 18:54:46 +00:00
Makefile.inc Style. 2003-11-02 06:47:39 +00:00