summaryrefslogtreecommitdiffstats
path: root/sbin/dump/dump.h
Commit message (Collapse)AuthorAgeFilesLines
* Mark non-returning function as sucheadler2012-11-291-1/+1
| | | | | | PR: bin/172978 Approved by: cperciva MFC after: 3 days
* The current /etc/dumpdates file restricts device names to 32 characters.mckusick2011-10-181-2/+3
| | | | | | | | | | | | | | | | | With the addition of various GEOM layers some device names now exceed this length, for example /dev/mirror/encrypted.elig.journal. This change expands the field to 53 bytes which brings the /etc/dumpdates lines to 80 characters. Exceeding 80 characters makes the /etc/dumpdates file much less human readable. A test is added to dump so that it verifies that the device name will fit in the 53 character field failing the dump if it is too long. This change has been checked to verify that its /etc/dumpdates file is compatible with older versions of dump. Reported by: Martin Sugioarto <martin@sugioarto.com> PR: kern/160678 MFC after: 3 weeks
* Expand dump to allow MAX_INT dump levels.mckusick2008-05-241-3/+7
| | | | | PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu>
* When using dump to generate level 0 dumps which are then rsync'edmckusick2008-05-231-0/+1
| | | | | | | | | | | | to a remote machine, the fact that the dump date is stored with each header (inode) record makes rsync significantly less efficient than necessary. This also applies to inode access times when they are not important data to retain. When implementing an offsite backup solution of this type, these dates in particular are not important, especially if it prevents effective offsite backups. PR: bin/91049 Submitted by: Forrest W Christian <fwc@mt.net>
* Update the dump program to save extended attributes. Updatemckusick2007-02-261-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the restore program to restore all dumped extended attributes. If the restore is running as root, it will always be able to restore all extended attributes. If it is not running as root, it makes a best effort to set them. Using the -v command line flag or the `verbose' command in interactive mode will display all the extended attributes being set on files (and at the end on directories) that are being restored. It will note any extended attributes that could not be set. The extended attributes are placed on the dump image immediately following each file's data. Older versions of restore can work with the newer dump images. Old versions of restore will correctly restore the file data and then (silently) skip over the extended attribute data and proceed to the next file. This resolves PR 93085 which will be closed once the code has been MFC'ed. Note that this code will not compile until these header files have been updated: <protocols/dumprestore.h> and <sys/extattr.h>. PR: bin/93085 Comments from: Poul-Henning Kamp and Robert Watson MFC after: 3 weeks
* o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.maxim2004-12-021-2/+2
| | | | | | | | | PR: bin/69977 o Remove unused ddates_in. Obtained from: NetBSD MFC after: 3 weeks
* Add -P arguments for dump(8) and restore(8) which allow the user togreen2004-04-131-0/+1
| | | | | | | | | | | 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
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Add missing prototype for cread().iedowse2003-11-041-0/+1
|
* Avoid a name conflict with future functionality:mdodd2003-04-071-1/+1
| | | | getfstab() -> dump_getfstab()
* Add a caching option to dump. Use -C. Note that NetBSD has a caching optiondillon2003-01-131-0/+1
| | | | | | | | | | | | | | | | | | | 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
* Correct the estimated block count calculated by dump to accountmckusick2002-12-031-1/+0
| | | | | | for the minimal amount of space used by a snapshot. Sponsored by: DARPA & NAI Labs.
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-3/+6
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* - Do not include <utmp.h> for no reason.robert2002-07-081-3/+0
| | | | - Remove unneeded utmp path constant.
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org>
* s/daddr_t/ufs_daddr_t/gphk2002-06-061-4/+4
| | | | | | This should fix the issues which cropped up after daddr_t grew up. Sponsored by: DARPA & NAI Labs.
* more file system > filesystemtrhodes2002-05-161-1/+1
|
* o remove __Pimp2002-03-201-54/+38
| | | | | o Use ANSI function definitions o unifdef -D__STDC__
* Supply progress information in dump's process title, which is usefuliedowse2002-02-161-0/+1
| | | | | | | | for monitoring automated backups. This is based on a patch by Mikhail Teterin, with some changes to make its operation clearer and to update the proctitle more frequently. PR: bin/32138
* On receipt of a SIGINFO, schedule an immediate printout of theiedowse2002-02-161-0/+1
| | | | | | | percentage complete and remaining time estimate. PR: bin/32138 Submitted by: mi
* Zap a number of #ifdef sunos blocks, and all of the `register'iedowse2001-11-171-14/+0
| | | | keywords.
* SECURITY.ru2001-09-051-2/+0
| | | | | | | | Notify operators using wall(1)'s -g option. Drop ``setgid tty'' privilege. Obtained from: OpenBSD MFC after: 1 month
* Mark some functions as __printflike()kris2001-08-101-3/+3
| | | | MFC After: 1 week
* Use <sys/queue.h> instead of home-rolled list.phk2001-01-291-5/+2
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* Make `dump' exit codes confirm to manual page.jkoshy1998-07-141-0/+1
| | | | | PR: 5346 Style-check-by: bde
* Merge Lite2 changes (rather bigish, the dump/restore folks should check)peter1997-03-111-3/+4
|
* Add the `a' option (``auto-size'') to bypass all tape lengthjoerg1997-02-011-0/+1
| | | | considerations, and dump right to the end of medium.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-2/+2
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* Andreas Klemm's patch set for dump(8), with some minor (cosmetic)joerg1995-11-181-0/+1
| | | | | | | | | | | | | | | | changes and one addition by me. . Use reasonable defaults for the tape drive (/dev/rst0) instead of something we actually don't have. . Add a summary line displaying the alapsed time and the total throughput. . Replace "rmt" for the remote location of rmt(8) by "/etc/rmt", since this is the historical protocol, and relying on the $PATH causes a big pain. Make it adjustable via an environmental variable though. Reviewed by: joerg (for Andreas' part) Submitted by: andreas@knobel.gun.de (Andreas Klemm)
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+212
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud