aboutsummaryrefslogtreecommitdiff
path: root/sbin/dump/optr.c
Commit message (Collapse)AuthorAgeFilesLines
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-09-251-2/+0
| | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Cleanup unnecessary semicolons from utilities we all love.Pedro F. Giffuni2016-04-151-1/+1
| | | | Notes: svn path=/head/; revision=298089
* The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilitiesKirk McKusick2011-01-241-1/+1
| | | | | | | | | | | | | | | | | include sys/time.h instead of time.h. This include is incorrect as per the manpages for the APIs and the POSIX definitions. This commit replaces sys/time.h where necessary with time.h. The commit also includes some minor style(9) header fixup in newfs. This commit is part of a larger effort by Garrett Cooper started in //depot/user/gcooper/posix-conformance-work/ -- to make FreeBSD more POSIX compliant. Submitted by: Garrett Cooper yanegomi at gmail dot com Notes: svn path=/head/; revision=217769
* Make dump -W show the level correctly.Brian Somers2009-05-291-1/+1
| | | | | | | | | PR: 129110 Submitted by: Mike Voorhis <mvoorhis@cs.wpi.edu> MFC after: 3 weeks Notes: svn path=/head/; revision=193022
* Verify that the filesystem being referenced in fstab is indeed a UFSCy Schubert2009-03-021-2/+3
| | | | | | | | | | | filesystem. This avoids confusion with nullfs and unionfs filesystems which reference the root of a UFS filesystem as a target. PR: 116849 Approved by: kib Notes: svn path=/head/; revision=189267
* Eliminate a pair of unneeded parentheses slipped in from previous version ofDmitry Morozovsky2006-08-061-1/+1
| | | | | | | | | fix. Noticed by: ru Notes: svn path=/head/; revision=161025
* strlen(3) returns size_t, which is not strictly equivalent to int an 64-bitDmitry Morozovsky2006-08-061-3/+4
| | | | | | | | | | archs, hence printf(3) warning. Fix this. Noticed by: tinderbox Approved by: rse Notes: svn path=/head/; revision=161017
* Do not pass-through the tailing newline character from the ctime(3)Ralf S. Engelschall2006-08-051-3/+5
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=161000
* va_list style tweaksDavid E. O'Brien2005-02-161-1/+2
| | | | Notes: svn path=/head/; revision=141965
* Clearer va-args usage.David E. O'Brien2004-12-301-4/+3
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=139422
* Print the `99.99% done, finished soon' message only as often as theIan Dowse2004-06-191-2/+5
| | | | | | | | | | normal status messages. Previously a large number of these new messages could be spewed out towards the end of a dump. Reviewed by: imp Notes: svn path=/head/; revision=130753
* Enter the 1990's and assume that the computer knows what time it is.Warner Losh2004-05-211-15/+22
| | | | | | | | | 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'. Notes: svn path=/head/; revision=129556
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* revert to version 1.25 and use va_copy to obtain another copy of thePaul Saab2003-09-211-2/+5
| | | | | | | | | | variable arguments. version 1.26 incorrectly truncated the message if the buffer was too long. Requested by: bde Notes: svn path=/head/; revision=120323
* Fix improper use of varargs.Paul Saab2003-09-201-2/+2
| | | | | | | Reviewed by: peter Notes: svn path=/head/; revision=120306
* Avoid a name conflict with future functionality:Matthew N. Dodd2003-04-071-2/+2
| | | | | | | getfstab() -> dump_getfstab() Notes: svn path=/head/; revision=113214
* Use the standardized CHAR_BIT constant instead of NBBY in userland.Mike Barcroft2002-09-251-0/+1
| | | | Notes: svn path=/head/; revision=103949
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-211-2/+2
| | | | Notes: svn path=/head/; revision=102231
* - Do not include <utmp.h> for no reason.Robert Drehmel2002-07-081-1/+0
| | | | | | | - Remove unneeded utmp path constant. Notes: svn path=/head/; revision=99579
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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> Notes: svn path=/head/; revision=98542
* more file system > filesystemTom Rhodes2002-05-161-2/+2
| | | | Notes: svn path=/head/; revision=96707
* o remove __PWarner Losh2002-03-201-53/+15
| | | | | | | | o Use ANSI function definitions o unifdef -D__STDC__ Notes: svn path=/head/; revision=92837
* Supply progress information in dump's process title, which is usefulIan Dowse2002-02-161-7/+12
| | | | | | | | | | | 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 Notes: svn path=/head/; revision=90743
* On receipt of a SIGINFO, schedule an immediate printout of theIan Dowse2002-02-161-1/+12
| | | | | | | | | | percentage complete and remaining time estimate. PR: bin/32138 Submitted by: mi Notes: svn path=/head/; revision=90742
* Zap a number of #ifdef sunos blocks, and all of the `register'Ian Dowse2001-11-171-9/+9
| | | | | | | keywords. Notes: svn path=/head/; revision=86473
* deltat declared time_t, msg("") call used %d (assumed time_t == int).Matthew Dillon2001-10-281-1/+2
| | | | | | | | | Changed deltat to be an int (result of delta time calculation). MFC after: 1 day Notes: svn path=/head/; revision=85622
* SECURITY.Ruslan Ermilov2001-09-051-112/+14
| | | | | | | | | | | Notify operators using wall(1)'s -g option. Drop ``setgid tty'' privilege. Obtained from: OpenBSD MFC after: 1 month Notes: svn path=/head/; revision=83083
* Use <sys/queue.h> instead of home-rolled list.Poul-Henning Kamp2001-01-291-5/+5
| | | | | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net> Notes: svn path=/head/; revision=71787
* Use \a instead of \007 for making noise.Poul-Henning Kamp2001-01-281-2/+2
| | | | | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net> Notes: svn path=/head/; revision=71750
* Avoid rawname() stupidly prepending an `r' before the device name evenJoerg Wunsch2000-04-021-5/+0
| | | | | | | | | | | | | | in cases where the supplied name was already pointing to a character special device. This fixes the breakage that occured when trying to dump a filesystem by name (e. g. /usr), with an fstab already mentioning the raw device name (like /dev/rda0g) where dump attempted to use /dev/rrda0g then. Also removed the now obsolete remark that fstab were carrying block special names. Notes: svn path=/head/; revision=58928
* vsprintf -> vsnprintf in msg().Warner Losh1999-11-101-1/+1
| | | | Notes: svn path=/head/; revision=53084
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Fix time of last dump handling.Jordan K. Hubbard1999-07-021-6/+11
| | | | | | | Submittted by: Richard Wiwatowski <rjwiwat@ozemail.com.au> Notes: svn path=/head/; revision=48447
* The attached patch to /usr/src/sbin/dump/optr.c changes the comparisonJordan K. Hubbard1999-03-211-5/+5
| | | | | | | | | | | | | | | so that dumps are treated by dump -w as having been done on midnight of the day they were actually run. This makes dump -w behave as expected for regularly scheduled daily dumps - if they all run the same day. It makes dump -w behave strangely if you dump late in the day and check again after midnight, but that is the lesser of two evils. Submitted by: Mike Meyer <mwm@phone.net> PR: 9429 Notes: svn path=/head/; revision=44929
* Correct use of .Nm. Add rcsid. Remove unused #includes.Philippe Charnier1998-06-151-1/+4
| | | | Notes: svn path=/head/; revision=36997
* Fix many buffer overflows, correct usage of strcat and implementWarner Losh1997-01-071-2/+2
| | | | | | | | | | $TAPE. Inspired by OpenBSD's work in this area. Reviewed by: Peter Wemm, Guido van Rooij and Jordan Hubbard. Obtained from: OpenBSD Notes: svn path=/head/; revision=21409
* Delete bogus referneces to timezone code internal header file `tzfile.h',Garrett Wollman1995-08-071-9/+1
| | | | | | | which is no longer bogusly installed in /usr/include. Notes: svn path=/head/; revision=9987
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-2/+2
| | | | Notes: svn path=/head/; revision=8871
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+538
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558