Age | Commit message (Collapse) | Author | Files | Lines |
|
For some reason original author had defined symbolic exit codes,
but had not use them. One could argue the symbolic exit codes for
mkfs should go to local exit header which would be included to
all commands that exit with non zero or one return code.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
|
|
Use xalloc, remove unused headers, use EXIT_* constants.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This patch replaces a few functions used throughout the source:
* Renames getnum (from schedutils) to strtol_or_err
* Moves strtosize (from lib/strtosize.c)
* Moves xstrncpy (from include/xstrncpy.h)
* Adds strnlen, strnchr and strndup if not available (remove it from libmount utils)
A few Makefile.am files were modified to compile accordingly along with trivial renaming
in schedutils source code.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Reported-by: Marcos Felipe Rasia de Mello <marcosfrm@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
|
|
Note that option -v0 is obsolete, and remove the now unneeded comment
about new-style swap areas. Further doublespace sentences, add some
commas and articles, and alphabetize the options.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=601552
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Reported-by: Marcos Felipe Rasia de Mello <marcosfrm@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Print or change the label / UUID of a swap area.
[kzak@redhat.com: - code refactoring
- add long options
- clean up Makefile.am]
Signed-off-by: Jason Borden <jborden@bluehost.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Use spaces in usage text instead of tabs and reduce the distance between
option names and descriptions.
This helps to minimize problems due to limited number of columns and
translated texts which take up more space than English.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
|
|
- catch empty string
- check against LLONG_MAX and LLONG_MIN instead of ULLONG_MAX and 0
Signed-off-by: Yann Droneaud <yann@droneaud.fr>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
.. it's already called by blkdev_get_size().
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
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>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The blkid.h file is generated and stored in $top_builddir.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
|
|
It's better to use one macro for all situations where we depends on
in-tree (internal) libblkid.
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
See http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2689/focus=2690
This reverts commit d4fa971c42467fb69e5d89d28e1b98c491a1505a.
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
This bug has been introduced by commit
95356e8b744439336925eeb36f01399f1ee8a5e9.
The fsck.minix code assumes that isset() macro returns boolean,
unfortunately the generic implementation from libc returns integer.
This patch also add a fallback for the bitmap macros to include/bitops.h.
Reported-by: "Andries E. Brouwer" <Andries.Brouwer@cwi.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
kernel 2.6.32-rc4 (kvm):
# blockdev -v --getss --getpbsz --getiomin --getioopt --getmaxsect --getalignoff /dev/sda
get logical block (sector) size: 512
get physical block (sector) size: 512
get minimum I/O size: 512
get optimal I/O size: 0
get max sectors per request: 1024
get alignment offset: 0
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
new options:
--getpbsz get physical block (sector) size
--getiomin get minimum I/O size
--getioopt get optimal I/O size
--getalignoff get alignment offset
--getmaxsect get max sectors per request
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
The bfs/cramfs/minix rarely (if ever?) are used for root filesystems, so
it doesn't make much sense to keep them in the root partition. Move them
to /usr by default.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
Those became unused with the switch to the blkdev functions.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
|
|
Do not defined volatile away on non-Linux systems, detect its presence
using AC_C_VOLATILE instead.
Signed-off-by: Guillem Jover <guillem@hadrons.org>
|
|
Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
|
|
mkfs.cramfs.c: In function ‘parse_directory’:
mkfs.cramfs.c:310: warning: passing argument 4 of ‘scandir’ from incompatible pointer type
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
Signed-off-by: Karel Zak <kzak@redhat.com>
|
|
In the check_blocks() loop, current_page is not incremented. Because of this
bug, the loop does not end when the end of the device is reached. Instead it
tries to continue reading, which of course fails, and eventually mkswap aborts
("too many bad pages").
Note that this can only be tested with swap partitions, mkswap ignores the -c
option for swap files.
Signed-off-by: Peter De Wachter <pdewacht@gmail.com>
|
|
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
|
|
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
|
|
Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
|