freebsd-src/sbin
Ian Dowse 1603684d77 Fix a number of long-standing restore bugs in tape.c, mainly relating
to multi-volume restores:
 - In findinode(), keep a copy of header->c_type so that we don't
   exit the do-while loop until we have processed the current header.
   Exiting too early leaves curfile.ino set to 0, which confuses
   the logic in createfiles(), so multi-volume restores with the
   'x' command don't work if you follow the instructions and supply
   the tapes in reverse order.  This appears to have been broken
   by CSRG revision 5.33 tape.c (Oct 1992).
 - The logic in getvol() for deciding how many records to skip after
   the volume header was confused; sometimes it would skip too few
   records and sometimes too many, leading to "resync restore"
   warnings and missing files. Skip to the next header only when
   the current action is not `USING'. Work around a dump bug that
   sets c_count incorrectly in the volume header of the first tape.
   Some of the problems here date back to at least 1991.
 - Back out revision 1.23. This appeared to avoid warnings about
   missing files in the 'rN' verification case, but it made the
   problems with the 'x' command worse by stopping getvol() from
   even attempting to find the first inode number on the newly
   inserted tape. The bug it addressed is fixed by correcting the
   skipping logic as described above.
 - Save the value of `tpblksread' in case the wrong volume is
   supplied, because it is incremented each time we read a volume
   header. We already saved `blksread' for the same reson.
2002-02-13 12:06:58 +00:00
..
adjkerntz Default to WARNS=2. 2001-12-04 02:19:58 +00:00
atacontrol Match the requirements of the new kernel structures. 2002-02-04 19:24:43 +00:00
atm Default to WARNS=2. 2001-12-04 02:19:58 +00:00
badsect Default to WARNS=2. 2001-12-04 02:19:58 +00:00
bsdlabel In the words of the submitter: 2002-01-07 06:45:17 +00:00
camcontrol Correct an out of date device node name. We do not have /dev/rsd0.ctl 2002-02-11 14:35:28 +00:00
ccdconfig Default to WARNS=2. 2001-12-04 02:19:58 +00:00
clri Default to WARNS=2. 2001-12-04 02:19:58 +00:00
comcontrol Default to WARNS=2. 2001-12-04 02:19:58 +00:00
conscontrol Default to WARNS=2. 2001-12-04 02:19:58 +00:00
cxconfig Default to WARNS=2. 2001-12-04 02:19:58 +00:00
dhclient If the dhcpd server doesn't provide a domain name or dns servers then 2002-02-01 18:46:58 +00:00
disklabel In the words of the submitter: 2002-01-07 06:45:17 +00:00
dmesg Default to WARNS=2. 2001-12-04 02:19:58 +00:00
dump Make dump's behaviour more sensible when the output file is a fifo. 2002-02-11 00:50:50 +00:00
dumpfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
dumpon CG hard sentence breaks. 2002-01-23 09:35:55 +00:00
fdisk Oops, the arguments to a bcopy() were reversed, which broke zeroing 2001-12-30 18:51:51 +00:00
fdisk_pc98 Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ffsinfo Default to WARNS=2. 2001-12-04 02:19:58 +00:00
fsck Default to WARNS=2. 2001-12-04 02:19:58 +00:00
fsck_ffs declare locally used globals as static. 2001-12-22 12:35:03 +00:00
fsck_ifs Spelling 2001-12-11 18:24:59 +00:00
fsck_msdosfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
fsdb Something i always wanted to see: add a function to print the list of 2002-01-26 15:53:23 +00:00
fsirand Default to WARNS=2. 2001-12-04 02:19:58 +00:00
growfs Minor grammar fixes. 2002-02-06 21:45:48 +00:00
ifconfig Note what the default address_family is. 2002-02-11 02:31:03 +00:00
init Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ip6fw I've been meaning to do this for a while. Add an underscore to the 2002-01-19 23:20:02 +00:00
ipf Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ipfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ipfstat Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ipfw I've been meaning to do this for a while. Add an underscore to the 2002-01-19 23:20:02 +00:00
ipmon Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ipnat Default to WARNS=2. 2001-12-04 02:19:58 +00:00
kget Default to WARNS=2. 2001-12-04 02:19:58 +00:00
kldconfig Default to WARNS=2. 2001-12-04 02:19:58 +00:00
kldload mdoc(7) police: tidy up previous delta. 2002-01-09 15:22:30 +00:00
kldstat Default to WARNS=2. 2001-12-04 02:19:58 +00:00
kldunload Default to WARNS=2. 2001-12-04 02:19:58 +00:00
ldconfig Default to WARNS=2. 2001-12-04 02:19:58 +00:00
md5 Fix 2001-12-19 21:19:43 +00:00
mdconfig Actually make use of the md_version field of 'struct mdio'. In order 2001-12-20 06:38:21 +00:00
mdmfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mknod Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_cd9660 Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_ext2fs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_hpfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_ifs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_msdosfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_nfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_ntfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_nullfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_nwfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_portalfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_smbfs Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
mount_std Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_umapfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mount_unionfs Default to WARNS=2. 2001-12-04 02:19:58 +00:00
mountd Default to WARNS=2. 2001-12-04 02:19:58 +00:00
natd Back out part of the revision 1.2 changes -- sendto(2) can 2002-01-15 17:07:56 +00:00
newfs Update the default newfs block and fragment sizes from 8192/1024 to 2001-12-11 16:21:40 +00:00
newfs_msdos Default to WARNS=2. 2001-12-04 02:19:58 +00:00
nextboot Default to WARNS=2. 2001-12-04 02:19:58 +00:00
nfsd Default to WARNS=2. 2001-12-04 02:19:58 +00:00
nfsiod Default to WARNS=2. 2001-12-04 02:19:58 +00:00
nologin Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nos-tun from select(2): 2002-01-20 12:13:28 +00:00
ping Document ping(8) reaction to SIGINFO. 2002-02-07 16:47:22 +00:00
ping6 Document ping6(8) reaction to SIGINFO. 2002-02-07 16:50:02 +00:00
quotacheck Fix some function prototypes. 2002-01-25 20:45:30 +00:00
rcorder Import the NetBSD 1.5 RC system. 2001-06-16 07:16:14 +00:00
reboot mdoc(7) police: add -p to the synopsis line as well. 2001-12-14 15:03:32 +00:00
restore Fix a number of long-standing restore bugs in tape.c, mainly relating 2002-02-13 12:06:58 +00:00
route Introduce an interface announcement message for the routing 2002-01-18 14:33:04 +00:00
routed Insert a missing paragraph break (.Pp). 2002-01-24 17:49:09 +00:00
rtsol Default to WARNS=2. 2001-12-04 02:19:58 +00:00
savecore Default to WARNS=2. 2001-12-04 02:19:58 +00:00
setkey mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
shutdown Default to WARNS=2. 2001-12-04 02:19:58 +00:00
slattach Default to WARNS=2. 2001-12-04 02:19:58 +00:00
spppcontrol mdoc(7) police: tidy up the markup. 2002-01-10 16:02:23 +00:00
startslip Default to WARNS=2. 2001-12-04 02:19:58 +00:00
swapon Default to WARNS=2. 2001-12-04 02:19:58 +00:00
sysctl - Attempt to help declutter kern. sysctl by moving security out from 2002-01-16 06:55:30 +00:00
tunefs tunefs no longer outputs a warning if one tries to set soft-updates on 2002-01-07 07:01:52 +00:00
umount Default to WARNS=2. 2001-12-04 02:19:58 +00:00
vinum Default to WARNS=2. 2001-12-04 02:19:58 +00:00
Makefile Kernel support for smbfs is only built on the i386 at the moment, so 2001-12-14 23:11:45 +00:00
Makefile.inc Default to WARNS=2. 2001-12-04 02:19:58 +00:00