summaryrefslogtreecommitdiffstats
path: root/sbin/restore/extern.h
Commit message (Collapse)AuthorAgeFilesLines
* - Cast time_t, int64_t and some int32_t values to intmax_t and use "%jd"jh2010-01-291-1/+1
| | | | | | | | | | | | | in format strings. - Use (void) instead of (void *) when discarding strcat(3) return value. - Format string fixes to match variable types. - Change canon() len parameter and getcmd() size parameter type from int to size_t. - Style Makefile and increase WARNS to 2. PR: bin/140061 Submitted by: uqs Approved by: trasz (mentor)
* Update the dump program to save extended attributes. Updatemckusick2007-02-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use the correct types for the functions rst_opendir(), glob_readdir() andstefanf2004-05-241-2/+2
| | | | | | | rst_closedir() which are called by glob(). Reviewed by: md5 Approved by: das (mentor)
* Add -P arguments for dump(8) and restore(8) which allow the user togreen2004-04-131-1/+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
* o remove __Pimp2002-03-201-73/+73
| | | | | o Use ANSI function definitions o unifdef -D__STDC__
* Silence non-constant format string warnings by marking functionskris2001-08-191-2/+2
| | | | | | | as __printflike()/__printf0like(), adding const, or adding missing "%s" format strings, as appropriate. MFC after: 2 weeks
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add rcsid. Remove unused #includes. Add missing prototypes and others -Wallcharnier1998-07-281-0/+3
| | | | cleanings. Spelling.
* Yet another buffer overflow.guido1997-01-011-1/+1
| | | | | | 2.2 candidate (and -stable too actually, who does that?) Reviewed by: Warner Losh
* 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.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+108
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud