| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
unlinked as soon as the dump starts (and removed when the dump is
completed, and the dump process exits). Previous wording was confusing
because users might expect the snapshot to be visible in the .snap
subdirectory while dump is running.
MFC after: 1 week
|
|
|
|
|
|
| |
PR: 94045
Submitted by: Andrey Elsukov
MFC after: 1 week
|
|
|
|
|
|
| |
fix.
Noticed by: ru
|
|
|
|
|
|
|
| |
archs, hence printf(3) warning. Fix this.
Noticed by: tinderbox
Approved by: rse
|
|
|
|
|
|
|
|
| |
output to setproctitle(3) in order to get rid of the ugly two-character
escape sequence "\n" in the ps(1) output of a dump(8) process:
<< [...] finished in 0:00 at Sat Aug 5 14:44:39 2006\n (dump)
>> [...] finished in 0:00 at Sat Aug 5 14:44:39 2006 (dump)
|
|
|
|
|
|
|
|
|
|
| |
to match the number of inodes on the disk. If we find a directory
entry with a crazy inode number in it, don't look beyond the end
of the bitmap to find that inode's state. Instead skip that directory
entry and print a warning.
Reviewed by: iedowse
MFC after: 3 weeks
|
|
|
|
|
| |
Submitted by: Andriy Tkachuk <andrit@ukr.net>
X-MFC after: RE approval
|
|
|
|
|
| |
pipe functionality. I've done a cvs log main.c about a dozen times
now. Maybe others will find this useful.
|
|
|
|
|
|
|
|
| |
Based on:
PR: docs/84200
Submitted by: Gary W. Swearingen <garys at opusnet dot com>
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
that has an 'r' in it.
This also eliminates a bogus use of strlcat.
PR: 80064
|
|
|
|
|
|
| |
with a signal handler. This fixes a race condition introduced by
compiler reordering that caused dump to sometimes get stuck,
especially while dumping large filesystems.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
generate snapshots in when -L is requested. If the .snap directory
does not exist, or is not a directory, issue a warning and revert
to the non- live behavior.
Obtained from: St. Bernard Software RAPID
|
| |
|
| |
|
|
|
|
| |
Submitted by: bde
|
|
|
|
|
|
|
|
|
| |
PR: bin/69977
o Remove unused ddates_in.
Obtained from: NetBSD
MFC after: 3 weeks
|
| |
|
|
|
|
|
|
|
| |
normal status messages. Previously a large number of these new
messages could be spewed out towards the end of a dump.
Reviewed by: imp
|
|
|
|
|
|
| |
Print the ETA of dump being finished, rather than a cryptic delta
time. Also, if we have written more blocks than the tapesize, assume
that we are 99.99% done and that we'll be finished 'soon'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
use backup methods other than files and tapes. The -P argument is
a normal sh(1) pipeline with either $DUMP_VOLUME or $RESTORE_VOLUME
defined in the environment, respectively.
For example, I can back up my home to three DVD+R[W]s as so:
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s2e 40028550 10093140 26733126 27% /home
green# dump -0 -L -C16 -B4589840 -P 'growisofs -Z /dev/cd0=/dev/fd/0' /home
|
|
|
|
|
|
|
| |
it is specified for read-only filesystems.
Submitted by: Jason Young <jyoung8607@hotmail.com>
PR: 46672
|
| |
|
|
|
|
|
|
| |
per letter dated July 22, 1999.
Approved by: core, imp
|
| |
|
|
|
|
|
|
| |
that mksnap_ffs(8) can be found using the current $PATH.
Reviewed by: mckusick
|
|
|
|
|
|
|
| |
in the .snap directory in the root of the filesystem being dumped.
Document that if the .snap directory is missing that it must be
created manually and that it should be owned by user root and
group operator and set to mode 770 before a live dump can be run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of trying to directly create the snapshot itself. This change allows
users logged into the system as operator to run live dumps.
Note that dump no longer tries to create the snapshot in the root of
the filesystem, but rather in a .snap directory in the root of the
filesystem. The reason is that the operator is usually not permitted
to write into the root of the filesystem. The newfs command and
background fsck have both been modified to create a .snap directory
in the root of the filesystem, but if neither of these have been run,
then the .snap directory must be created manually by the superuser
before a live dump can be run. The .snap directory should be owned
by user root and group operator and set to mode 770.
|
|
|
|
|
|
|
|
|
|
| |
- using (intmax_t) and %j
- giving a non-empty format string to msg()
Include <stdint.h> directly instead of depending on <inttypes.h>
to do it.
Tested by: make universe
|
|
|
|
|
|
|
|
| |
- explain the reason for permitting 32 read errors for a dump
PR: docs/35602 and docs/35607
Reviewed by: jhb
Approved by: blackend (mentor)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
has been called, since it points to a shared inode buffer that may
be overwritten. The two cases where `dp' was used incorrectly appear
to have been overlooked when "nodump" inheritance was first added
in revision 1.12.
This is reported to correct propagation of the nodump flag on
directories that are larger than one block in size.
PR: bin/58912
Submitted by: Volker Paepcke <vpaepcke@incore.de>
MFC after: 1 week
|
| |
|
|
|
|
|
|
|
| |
variable arguments. version 1.26 incorrectly truncated the message if
the buffer was too long.
Requested by: bde
|
|
|
|
| |
Reviewed by: peter
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1024-byte boundaries. For many years this was a reasonable
assumption. However, in recent years we have begun seeing
devices with 2048-byte sectors. These devices return errors
when dump tries to read starting in the middle of a sector
or when it tries to read only the first half of a sector.
Rather than change the native block size used by dump (and
thus create an incompatible dump format), this fix checks
for transfer requests that start and/or end on a non-sector
boundary. When such a read is detected, the new code reads
the entire sector and copies out just the part that dump
needs.
Reviewed by: Poul-Henning Kamp <phk@critter.freebsd.dk>
Approved by: re (John Baldwin <jhb@FreeBSD.org>)
Sponsored by: DARPA & NAI Labs.
|
| |
|
| |
|
|
|
|
|
| |
remote backups can still be done with Kerberos authentication using
SSH and Kerberos 5.
|
|
|
|
| |
getfstab() -> dump_getfstab()
|
| |
|
|
|
|
| |
cache is bypassed when disabled.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
called -r but it takes 512 byte blocks instead of megabytes, and I felt a
megabytes specification would be far more useful so I did not use the same
option character.
This will *greatly* improve dump performance at the cost of possibly
missing filesystem changes that occur between passes, and does a fairly
good job making up for the loss of buffered block devices. Caching is disabled
by default to retain historical behavior.
In tests, dump performance improved by about 40% when dumping / or /usr.
Beware that dump forks and the cache may wind up being larger then you
specify, but a more complex shared memory implementation would not produce
results that are all that much better so I kept it simple for now.
MFC after: 3 days
|