aboutsummaryrefslogtreecommitdiff
path: root/sbin/dump/itime.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up global variable declarations in the dump and restoreKirk McKusick2020-04-041-2/+4
| | | | | | | | | | | | utilities so that they will compile with -fno-common. Started by: Kyle Evans (kevans) Reviewed by: Kyle Evans (kevans) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24210 Notes: svn path=/head/; revision=359627
* 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
* dump: use NULL instead of zero for pointers.Pedro F. Giffuni2016-04-191-5/+4
| | | | | | | Clean out the casts from calloc(3) while here. Notes: svn path=/head/; revision=298288
* The current /etc/dumpdates file restricts device names to 32 characters.Kirk McKusick2011-10-181-1/+4
| | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=226520
* 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
* Plug two memory leaks in error case.Xin LI2010-02-031-1/+3
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=203459
* Expand dump to allow MAX_INT dump levels.Kirk McKusick2008-05-241-4/+4
| | | | | | | | PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu> Notes: svn path=/head/; revision=179275
* o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.Maxim Konovalov2004-12-021-3/+0
| | | | | | | | | | | | PR: bin/69977 o Remove unused ddates_in. Obtained from: NetBSD MFC after: 3 weeks Notes: svn path=/head/; revision=138314
* 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
* Use the standardized CHAR_BIT constant instead of NBBY in userland.Mike Barcroft2002-09-251-0/+1
| | | | Notes: svn path=/head/; revision=103949
* Replace the use of %qd with intmax_t/%jd and fix a number of -WallIan Dowse2002-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. Notes: svn path=/head/; revision=99562
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* o remove __PWarner Losh2002-03-201-24/+13
| | | | | | | | o Use ANSI function definitions o unifdef -D__STDC__ Notes: svn path=/head/; revision=92837
* I've been meaning to do this for a while. Add an underscore to theMatthew Dillon2002-01-191-4/+4
| | | | | | | | | | | time_to_xxx() and xxx_to_time() functions. e.g. _time_to_xxx() instead of time_to_xxx(), to make it more obvious that these are stopgap functions & placemarkers and not meant to create a defacto standard. They will eventually be replaced when a real standard comes out of committee. Notes: svn path=/head/; revision=89572
* Zap a number of #ifdef sunos blocks, and all of the `register'Ian Dowse2001-11-171-13/+6
| | | | | | | keywords. Notes: svn path=/head/; revision=86473
* Make the protocol/dumprestore.h header match restore's idea of the dumpMatthew Dillon2001-10-281-5/+11
| | | | | | | | | | | header for the case where sizeof(time_t) != sizeof(int). dumprestore.h was embedding time_t when it should have been embedding int32_t. Use time_to_time32() and time32_to_time() to convert between the protocoll/file-format time and time_t. Notes: svn path=/head/; revision=85635
* Remove two lint directives that aren't needed since rev 1.5.David E. O'Brien2001-03-301-2/+0
| | | | Notes: svn path=/head/; revision=75023
* Make rev 1.5 better match the rest of dump(8)'s output.David E. O'Brien2001-03-271-2/+2
| | | | Notes: svn path=/head/; revision=74873
* Do not exit if unable to read /etc/dumpdates or create it.David E. O'Brien2001-03-271-2/+4
| | | | | | | | | If one is trying to dump or repair an ill system, give the user a fighting chance. Refusing to operate w/o a very non-critical file (feature) is just plain stupid. Notes: svn path=/head/; revision=74872
* Use <sys/queue.h> instead of home-rolled list.Poul-Henning Kamp2001-01-291-6/+9
| | | | | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net> Notes: svn path=/head/; revision=71787
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Correct use of .Nm. Add rcsid. Remove unused #includes.Philippe Charnier1998-06-151-1/+4
| | | | Notes: svn path=/head/; revision=36997
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-261-0/+271
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558