summaryrefslogtreecommitdiffstats
path: root/disk-utils/mkfs.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: consolidate version printing and close_stdout()Karel Zak2019-04-161-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* include/c: add print_version() macroKarel Zak2019-04-161-8/+2Star
| | | | | | | | | | | Let's consolidate the version printing code. It also seems better to use exit() after --version, because it's handled in different way by ASAN. It's strange, but ASAN reports leaks after return in main(). Note that we do not use free-before-exit. Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: consolidate macro style USAGE_HELP_OPTIONSRuediger Meier2017-06-291-2/+2
| | | | | | | | | changed in include/c.h and applied via sed: sed -i 's/fprintf.*\(USAGE_MAN_TAIL.*\)/printf(\1/' $(git ls-files -- "*.c") sed -i 's/print_usage_help_options\(.*\);/printf(USAGE_HELP_OPTIONS\1);/' $(git ls-files -- "*.c") Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: consolidate all --help option descriptionsRuediger Meier2017-06-271-4/+1Star
| | | | | | | | Now we are always using the same text also for commands which had still hardcoded descriptions or where we can't use the standard print_usage_help_options macro. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: never use usage(stderr)Ruediger Meier2017-06-261-5/+8
| | | | | | | Here we fix all cases where we have usage(FILE*) functions. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* mkfs: drop hardcoded search pathMike Frysinger2015-04-271-16/+1Star
| | | | | | | | | | | Rather than maintain a hardcoded search path for looking up tools and override the user's PATH env setting, respect whatever the user has. This matches the convention of just about every other tool out there. It might break on systems that don't have /sbin in their PATH and they try to run /sbin/mkfs directly, but so be it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* textual: add a docstring to most of the utilitiesBenno Schulenberg2015-01-061-0/+4
| | | | | | | | | This adds a concise description of a tool to its usage text. A first form of this patch was proposed by Steven Honeyman (see http://www.spinics.net/lists/util-linux-ng/msg09994.html). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: improve error messagesSami Kerola2014-12-091-2/+1Star
| | | | | | | Use error printing facilities that add command name in front of the error message, and add explanation that is part of existing translations. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: use usage() text element macrosSami Kerola2014-10-011-3/+2Star
| | | | | | | Translating these text elements should happen only once, which is more likely when the text macros are used properly. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* textual: use manual tail usage() macroSami Kerola2014-10-011-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: update deprecation bannersSami Kerola2014-10-011-0/+9
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* fix mkfs --verbose and man pagePhillip Susi2014-02-101-0/+1
| | | | | | | | | mkfs did not actually accept the long form --verbose option. Also the man page seemed to indicate that version/verbose/help options were passed to the filesystem specific utility when this is not the case. Signed-off-by: Phillip Susi <psusi@ubuntu.com>
* textual: spell and encode the name of Arkadiusz Miƛkiewicz correctlyBenno Schulenberg2013-02-061-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mkfs: indicate that specifying fs-type and fs-options are independentBenno Schulenberg2013-01-301-14/+14
| | | | | | | Also standardize and improve the help text, and slice it into strips for ease of later translation maintenance. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: use UTIL_LINUX_VERSION everywhereKarel Zak2013-01-251-4/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* textual: standardize reporting of program name plus package versionBenno Schulenberg2013-01-251-2/+3
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* disk-utils: verify writing to streams was successfulSami Kerola2012-04-041-0/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs: coding style fixesSami Kerola2011-06-291-76/+78
| | | | | | | The patch includes two symbolic exit values and a main argv notation change, none of which should cause any side effects. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs: include-what-you-use header checkSami Kerola2011-06-291-2/+5
| | | | | | | | | | Two headers added #include <limits.h> // for CHAR_MAX #include <stdlib.h> // for exit, EXIT_SUCCESS, getenv, etc Rest sorted, and nls.h recategorized to be local header. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs: add long optionsSami Kerola2011-06-291-14/+46
| | | | | | Includes new help output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mkfs: general cleanupsDavidlohr Bueso2011-01-171-18/+7Star
| | | | | | Use xalloc, remove unused headers, use EXIT_* constants. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* fsck/mkfs/mount: unify default search paths for helpersMike Frysinger2010-02-021-1/+1
| | | | | | | | | | | | Rather than each fs util having its own search policy, unify the paths in configure and allow them to be tweaked by downstream. In the process, drop the /etc paths as no one has ever really used these. [kzak@redhat.com: - backport to autoconf < 2.64 (remove AS_{SET,IF,CASE,APPEND} macros)] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* Imported from util-linux-2.13-pre2 tarball.Karel Zak2006-12-071-3/+3
|
* Imported from util-linux-2.13-pre1 tarball.Karel Zak2006-12-071-4/+2Star
|
* Imported from util-linux-2.12p tarball.Karel Zak2006-12-071-3/+9
|
* Imported from util-linux-2.12d tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.11o tarball.Karel Zak2006-12-071-1/+1
|
* Imported from util-linux-2.11b tarball.Karel Zak2006-12-071-2/+2
|
* Imported from util-linux-2.10f tarball.Karel Zak2006-12-071-2/+12
|
* Imported from util-linux-2.9v tarball.Karel Zak2006-12-071-5/+13
|
* Imported from util-linux-2.8 tarball.Karel Zak2006-12-071-2/+13
|
* Imported from util-linux-2.7.1 tarball.Karel Zak2006-12-071-2/+6
|
* Imported from util-linux-2.5 tarball.Karel Zak2006-12-071-275/+57Star
|
* Imported from util-linux-2.2 tarball.Karel Zak2006-12-071-0/+297