summaryrefslogtreecommitdiffstats
path: root/sbin/dump/tape.c
Commit message (Collapse)AuthorAgeFilesLines
* Use a signal-safe type for two variables that are used to synchroniseiedowse2005-03-021-2/+2
| | | | | | 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.
* Add -P arguments for dump(8) and restore(8) which allow the user togreen2004-04-131-12/+39
| | | | | | | | | | | 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
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-0/+1
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* Replace the use of %qd with intmax_t/%jd and fix a number of -Walliedowse2002-07-081-0/+1
| | | | | | | and -Wformat warnings: o Include timeconv.h for the time conversion functions. o Remove unused variables. o Correct a few cases where %d was used when printing longs.
* Fix some printf format errors.iedowse2002-07-071-1/+1
| | | | Submitted by: Don Lewis <dl-freebsd@catspoiler.org>
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-211-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+3
| | | | | | This should fix the issues which cropped up after daddr_t grew up. Sponsored by: DARPA & NAI Labs.
* o remove __Pimp2002-03-201-44/+22
| | | | | 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
* Make dump's behaviour more sensible when the output file is a fifo.iedowse2002-02-111-0/+6
| | | | | | | | | | Normally trewind() performs a close-open-close cycle to rewind the tape when closing the device, but this is not ideal for fifos. We now skip the final open-close if the output descriptor is a fifo. PR: bin/25474 Submitted by: Alex Bakhtin <bakhtin@amt.ru> MFC after: 1 week
* Zap a number of #ifdef sunos blocks, and all of the `register'iedowse2001-11-171-17/+7
| | | | keywords.
* Use \a instead of \007 for making noise.phk2001-01-281-1/+1
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* temporary workaround for bin/11464mjacob1999-05-031-1/+5
|
* Add support for dealing with ENOSPC as the error code returned by a tapegibbs1998-09-151-5/+9
| | | | device hitting EOM on a write.
* Correct use of .Nm. Add rcsid. Remove unused #includes.charnier1998-06-151-1/+4
|
* read() and write() return ssize_t not int, so the first arg to atomic()jb1998-01-251-2/+3
| | | | should be ssize_t too.
* Do not account the tape change time for ETA estimations.joerg1997-10-121-0/+6
| | | | | PR: bin/4369 Submitted by: blank@fox.uni-trier.de (Sascha Blank)
* Fix a long-standing bug with dump not treating errors correctly. Theyjoerg1997-05-061-2/+4
| | | | | | | were mishandled as an EOF, which became fatal if your first tape was accidentally write-protected. PR: bin/850 dump treats write-protect as an EOT...
* Merge Lite2 changes (rather bigish, the dump/restore folks should check)peter1997-03-111-4/+4
|
* Add the `a' option (``auto-size'') to bypass all tape lengthjoerg1997-02-011-2/+2
| | | | considerations, and dump right to the end of medium.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-1/+1
| | | | | | 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.
* Remove trailing whitespace.rgrimes1995-05-301-23/+23
|
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+859
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud