freebsd-nq/sbin
Ian Dowse cfd8a00918 In createfiles(), properly handle a number of cases where no further
volumes are available, instead of getting stuck in a loop calling
getvol(). Normally restore in 'x' or 'i' modes will ask for a new
(earlier) volume when the current inode number on the tape is greater
than the last inode to be restored, since there can be no further
inodes of interest on that volume. However we don't want to change
volumes in this case either if the user explicitly said that there
are no more tapes, or if we are looking at the first volume.

When no more volumes are available but there are still inodes that
we have not found, we now just fall through to the code that prints
out a list of any missing files, so the restore completes normally.
Also simplify the logic a bit by always returning to the start of
the main for(;;) loop whenever the volume has changed.

This should completely fix the "Changing volumes on pipe input" bug
that is often observed when restoring dumps of active filesystems.

PR:		bin/4176, bin/34604, misc/34675
2002-02-14 01:30:45 +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 Typo fix: Usally -> Usually. 2002-02-14 01:21:07 +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 In createfiles(), properly handle a number of cases where no further 2002-02-14 01:30:45 +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