summaryrefslogtreecommitdiffstats
path: root/sbin/dump/itime.c
Commit message (Collapse)AuthorAgeFilesLines
* The current /etc/dumpdates file restricts device names to 32 characters.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
* The dump, fsck_ffs, fsdb, fsirand, newfs, makefs, and quot utilitiesmckusick2011-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
* Plug two memory leaks in error case.delphij2010-02-031-1/+3
| | | | MFC after: 1 month
* Expand dump to allow MAX_INT dump levels.mckusick2008-05-241-4/+4
| | | | | PR: bin/100732 Submitted by: Matthew Vincenz <msvincen@midway.uchicago.edu>
* o Do not dump core in -W if dumpdates was not readable and ddatev == NULL.maxim2004-12-021-3/+0
| | | | | | | | | PR: bin/69977 o Remove unused ddates_in. Obtained from: NetBSD MFC after: 3 weeks
* 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
|
* 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.
* This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-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>
* o remove __Pimp2002-03-201-24/+13
| | | | | o Use ANSI function definitions o unifdef -D__STDC__
* I've been meaning to do this for a while. Add an underscore to thedillon2002-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.
* Zap a number of #ifdef sunos blocks, and all of the `register'iedowse2001-11-171-13/+6
| | | | keywords.
* Make the protocol/dumprestore.h header match restore's idea of the dumpdillon2001-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.
* Remove two lint directives that aren't needed since rev 1.5.obrien2001-03-301-2/+0
|
* Make rev 1.5 better match the rest of dump(8)'s output.obrien2001-03-271-2/+2
|
* Do not exit if unable to read /etc/dumpdates or create it.obrien2001-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.
* Use <sys/queue.h> instead of home-rolled list.phk2001-01-291-6/+9
| | | | Submitted by: "Jason Smethers" <jsmethers@pdq.net>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Correct use of .Nm. Add rcsid. Remove unused #includes.charnier1998-06-151-1/+4
|
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+271
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud