summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
Commit message (Collapse)AuthorAgeFilesLines
* MFC r314655:ngie2017-05-301-2/+2
| | | | | | bin: normalize paths using SRCTOP-relative paths or :H when possible This simplifies make logic/output
* MFC r306603:sevan2016-10-101-8/+9
| | | | | | | | | Document which version of BSD first showed up in and add the version info for NetBSD & FreeBSD. PR: 212477 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8105
* Use NULL instead of 0 for pointers.araujo2016-04-181-1/+1
| | | | | | malloc will return NULL if it cannot allocate memory. MFC after: 2 weeks.
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Add META_MODE support.sjg2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge head from 7/28sjg2014-08-192-3/+3
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-281-1/+1
| |\ \
| * \ \ sync from headsjg2013-04-122-6/+6
| |\ \ \
| * | | | Updated dependenciessjg2013-03-111-0/+1
| | | | |
| * | | | Updated dependenciessjg2013-02-161-2/+0
| | | | |
| | | | |
| | \ \ \
| *-. \ \ \ Sync from headsjg2012-11-042-17/+22
| |\ \ \ \ \
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+22
| | |/ / / / | |/| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | Reduce overlinking
* | | | | Replace all uses of libncurses and libtermcap with their wide characterbrooks2014-07-171-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL
* | | | Add globs.c to the build now that it's a separate file.scottl2013-12-301-1/+1
| |_|/ |/| | | | | | | | | | | | | | Reviewed by: max Obtained from: Netflix MFC after: 3 days
* | | Revert 248634 and 248643 (e.g., restoring 248625 and 248639).mckusick2013-03-231-3/+4
| | | | | | | | | | | | Build verified by: Glen Barber (gjb@)
* | | Revert r248639 to fix build failure on head/gjb2013-03-231-4/+3
| | |
* | | Fix the build after addition of cylinder group cacheing (r248625)mckusick2013-03-231-3/+4
| | | | | | | | | | | | | | | Reported by: Glen Barber (gjb@) Pointy hat to: Kirk McKusick (mckusick@)
* | | Catch up with internal API changes for initbarea() and getdatablk()pluknet2013-02-241-2/+2
| | | | | | | | | | | | | | | | | | of fsck_ffs introduced with r247212. Submitted by: David Wolfskill <david@catwhisker.org>
* | | Remove write only assignments and thus fix the build after struct bufareapluknet2013-02-151-1/+0
| |/ |/| | | | | TAILQ conversion (r246812).
* | Fix sbin/ build with a 64-bit ino_t.mdf2012-09-272-17/+22
|/ | | | Original code by: Gleb Kurtsou
* Partially undo r228693, by removing NO_WFORMAT.clang in fsdb's Makefile,dim2012-03-092-3/+1
| | | | | | | | | | | | and fixing the format string in sbin/fsdb/fsdbutil.c instead. Note the remark "Work around a problem with format string warnings and ntohs macros" was actually incorrect. The DIP(dp, di_nlink) macro invocation actually returned an int, due to its ternary expression, even though the di_nlink members of struct ufs1_dinode and struct ufs2_dinode are both defined as int16_t. MFC after: 2 weeks
* Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, todim2012-02-281-3/+1
| | | | | | | | | | | | | | | | | | | | | get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks
* Improve sparse file handling when printing the block list for an inode bytruckman2012-02-061-7/+6
| | | | | | | | | | | not bailing out early when a hole is encountered in the direct block list. Print NULL block pointers in the direct block list. Simplify the code that prints the fragment count. Match the style of the existing code. Reviewed by: mckusick MFC after: 1 week
* Revert r228603, and add the workaround to sbin/fsdb/Makefile instead.dim2011-12-182-3/+6
| | | | MFC after: 1 week
* In sbin/fsdb/fsdbutil.c, work around a clang false positive with printfdim2011-12-161-2/+3
| | | | | | | format warnings and conditional operators. (See LLVM PR 11313 for more information.) MFC after: 1 week
* Get rid of major/minor number distinction.ed2011-09-281-4/+2
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* 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
* - Merge soft-updates journaling from projects/suj/head into head. Thisjeff2010-04-242-17/+20
| | | | | | | | brings in support for an optional intent log which eliminates the need for background fsck on unclean shutdown. Sponsored by: iXsystems, Yahoo!, and Juniper. With help from: McKusick and Peter Holm
* Update after function renames.pjd2006-10-312-4/+3
| | | | Sponsored by: home.pl
* Markup fixes.ru2006-09-181-1/+1
|
* Add a note that the btime command only works on UFS2.ceri2006-08-241-1/+4
| | | | Suggested by: maxim (who had also done the btime patch independently).
* Allow fsdb to manipulate the birthtime entries on UFS2.ceri2006-08-233-3/+29
| | | | | Approved by: jhb MFC after: 1 month
* o Implement findblk command: find the inode(s) owning the specifiedmaxim2006-06-022-1/+272
| | | | | | | disk block(s) number(s). Obtained from: NetBSD MFC after: 2 months
* o Do recrack(arguments) for commands which actually take NAME asmaxim2006-04-213-10/+12
| | | | | | | | | | | arguments so we do not coredump at "help foo", "back bar" and such. o Be consistent and print argc - 1 as a command arguments number in all cases. PR: bin/37096 Submitted by: Joshua Goodall MFC after: 1 month
* Use the new name H_SETSIZE instead of the old H_EVENT to set the historystefanf2005-10-191-1/+1
| | | | | | size. PR: 86355
* The libedit update made a const cast necessary.stefanf2005-08-071-1/+1
|
* Reword a sentence to conform with our mdoc(7) style.trhodes2005-02-121-3/+4
| | | | | | | Modify wording in a sentence to avoid a run on within (). Remove a contraction. Submitted by: Joel Dahl <joel@automatvapen.se> (original version)
* Sort sections.ru2005-01-181-9/+9
|
* Make fsck WARNS=2 clean.le2004-10-092-17/+17
|
* Downgrade WARNS level until GCC 3.4.2 warning are fixed.kan2004-07-281-0/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-9/+18
|
* Fixed style of DPADD and LDADD assignments as per style.Makefile(5).ru2004-02-051-2/+2
|
* Make this WARNS=2 clean byjohan2003-11-133-8/+10
| | | | | | | | | | - #include <timeconv.h> for _time_to_time32 et al - use (uintmax_t) and %j - remove unused variable 'j' (from PR 39866) PR: 39866 Submitted by: Dan Lukes <dan@obluda.cz> Tested by: make universe
* Backout Rev. 1.24brueffer2003-08-301-1/+1
| | | | English lessons provided by: jhb
* Grammar fixbrueffer2003-08-291-1/+1
|
OpenPOWER on IntegriCloud