]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
11 years agobuild-sys: release++ (v2.23-rc1) v2.23-rc1
Karel Zak [Fri, 22 Mar 2013 11:34:28 +0000 (12:34 +0100)] 
build-sys: release++ (v2.23-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: keep libuser optional
Karel Zak [Fri, 22 Mar 2013 11:33:27 +0000 (12:33 +0100)] 
build-sys: keep libuser optional

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: upadte v2.23-ReleaseNotes
Karel Zak [Fri, 22 Mar 2013 09:17:10 +0000 (10:17 +0100)] 
docs: upadte v2.23-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: add v2.23-ReleaseNotes
Karel Zak [Fri, 22 Mar 2013 00:01:17 +0000 (01:01 +0100)] 
docs: add v2.23-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agomount: fix typos in man page
Karel Zak [Thu, 21 Mar 2013 22:56:35 +0000 (23:56 +0100)] 
mount: fix typos in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update AUTHORS file
Karel Zak [Thu, 21 Mar 2013 22:29:45 +0000 (23:29 +0100)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: merge changes
Karel Zak [Thu, 21 Mar 2013 22:19:54 +0000 (23:19 +0100)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agopo: add hr.po (from translationproject.org)
Tomislav Krznar [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: add hr.po (from translationproject.org)

11 years agopo: update vi.po (from translationproject.org)
Trần Ngọc Quân [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update vi.po (from translationproject.org)

11 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update fr.po (from translationproject.org)

11 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Thu, 21 Mar 2013 22:08:23 +0000 (23:08 +0100)] 
po: update cs.po (from translationproject.org)

11 years agotests: update build tests
Karel Zak [Thu, 21 Mar 2013 21:35:11 +0000 (22:35 +0100)] 
tests: update build tests

 * remove ld-linux-* from output
 * findmnt linked with libudev
 * lslocks linked with libmount
 * uuidd linked with librt
 * static binaries are no more enabled by default
 * chfn/chsh linked with libuser
 * add nsenter, runuser, setpriv

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: add chfnsh build tests
Karel Zak [Thu, 21 Mar 2013 21:34:35 +0000 (22:34 +0100)] 
tests: add chfnsh build tests

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: set dependence fdisk -> libfdisk -> libuuid
Karel Zak [Thu, 21 Mar 2013 12:22:10 +0000 (13:22 +0100)] 
build-sys: set dependence fdisk -> libfdisk -> libuuid

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: lslocks depends on libmount
Karel Zak [Thu, 21 Mar 2013 12:13:23 +0000 (13:13 +0100)] 
build-sys: lslocks depends on libmount

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: don't use libs from pkg-config from libuser
Karel Zak [Thu, 21 Mar 2013 12:12:52 +0000 (13:12 +0100)] 
build-sys: don't use libs from pkg-config from libuser

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: don't use nested BUILD_*
Karel Zak [Thu, 21 Mar 2013 12:11:09 +0000 (13:11 +0100)] 
build-sys: don't use nested BUILD_*

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agohwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()
Karel Zak [Thu, 21 Mar 2013 07:56:15 +0000 (08:56 +0100)] 
hwclock: cleanup _() usage in synchronize_to_clock_tick_rtc()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agohwclock: don't confuse users with select() timeout warning
Karel Zak [Thu, 21 Mar 2013 07:51:22 +0000 (08:51 +0100)] 
hwclock: don't confuse users with select() timeout warning

Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoraw: fix "Error setting raw device: Success"
Karel Zak [Thu, 21 Mar 2013 07:23:36 +0000 (08:23 +0100)] 
raw: fix "Error setting raw device: Success"

 # raw /dev/raw/raw1 253 40
 raw: Error setting raw device:Success

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=923820
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: remove unwanted operator [smatch scan]
Karel Zak [Thu, 21 Mar 2013 07:12:35 +0000 (08:12 +0100)] 
fdisk: remove unwanted operator [smatch scan]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoipcs: fix compiler warning [clang -Wuninitialized]
Karel Zak [Wed, 20 Mar 2013 14:20:47 +0000 (15:20 +0100)] 
ipcs: fix compiler warning [clang -Wuninitialized]

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoscript: use __noreturn__ for really last function [clang -Winvalid-noreturn]
Karel Zak [Wed, 20 Mar 2013 14:17:13 +0000 (15:17 +0100)] 
script: use __noreturn__ for really last function [clang -Winvalid-noreturn]

Use 'noreturn' for done() only.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: check for security_get_initial_context()
Karel Zak [Wed, 20 Mar 2013 13:59:21 +0000 (14:59 +0100)] 
build-sys: check for security_get_initial_context()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: (gpt) rmeove xalloc calls
Karel Zak [Wed, 20 Mar 2013 13:46:03 +0000 (14:46 +0100)] 
libfdisk: (gpt) rmeove xalloc calls

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoremove duplicate includes
Karel Zak [Wed, 20 Mar 2013 13:40:19 +0000 (14:40 +0100)] 
remove duplicate includes

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: add AVAILABILITY section to isosize man page, and tweak wording
Benno Schulenberg [Sun, 17 Mar 2013 21:23:45 +0000 (22:23 +0100)] 
docs: add AVAILABILITY section to isosize man page, and tweak wording

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: make the section AVAILABILITY always come last in man pages
Benno Schulenberg [Sun, 17 Mar 2013 21:05:19 +0000 (22:05 +0100)] 
docs: make the section AVAILABILITY always come last in man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: normalize formatting of lslocks man page
Benno Schulenberg [Sun, 17 Mar 2013 20:59:21 +0000 (21:59 +0100)] 
docs: normalize formatting of lslocks man page

Also alphabetize the options and improve some wording.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: normalize formatting of wipefs man page
Benno Schulenberg [Sun, 17 Mar 2013 19:39:12 +0000 (20:39 +0100)] 
docs: normalize formatting of wipefs man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: normalize formatting of findmnt man page
Benno Schulenberg [Mon, 4 Mar 2013 20:01:29 +0000 (21:01 +0100)] 
docs: normalize formatting of findmnt man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: sort the options in findmnt man page alphabetically
Benno Schulenberg [Fri, 1 Mar 2013 21:50:05 +0000 (22:50 +0100)] 
docs: sort the options in findmnt man page alphabetically

Also improve wording and formatting a bit.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agoblkid: also accept -V for displaying version information
Benno Schulenberg [Fri, 1 Mar 2013 21:18:30 +0000 (22:18 +0100)] 
blkid: also accept -V for displaying version information

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agodocs: improve wording and formatting of blkid man page
Benno Schulenberg [Fri, 1 Mar 2013 21:11:52 +0000 (22:11 +0100)] 
docs: improve wording and formatting of blkid man page

Furthermore, explain the device argument right at the beginning,
since it is not an option, and alphabetize -k.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
11 years agolib/mbsalign: correct license header from GPLv[23] to LGPLv2+
Pádraig Brady [Fri, 15 Mar 2013 09:48:37 +0000 (09:48 +0000)] 
lib/mbsalign: correct license header from GPLv[23] to LGPLv2+

* lib/mbsalign.c: s/GPLv3/LGPLv2+/
* include/mbsalign.h: s/GPLv2/LGPLv2+/
* README.licensing: Remove mention GPLv3 as it's not actually used.

11 years agowhereis: canonicalize directories paths
Karel Zak [Wed, 20 Mar 2013 10:52:35 +0000 (11:52 +0100)] 
whereis: canonicalize directories paths

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agowipefs: add -f to getopt_long()
Karel Zak [Tue, 19 Mar 2013 21:53:16 +0000 (22:53 +0100)] 
wipefs: add -f to getopt_long()

Reported-by: Dan Horák <dhorak@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: add wipefs feature request to TODO
Karel Zak [Tue, 19 Mar 2013 21:45:51 +0000 (22:45 +0100)] 
docs: add wipefs feature request to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: generic whereis.1 clean up
Sami Kerola [Sat, 16 Mar 2013 21:36:02 +0000 (21:36 +0000)] 
docs: generic whereis.1 clean up

Align with howto-man-page.txt, and more importantly remove out dated 'SEE
ALSO' and 'BUGS' sections.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agowhereis: support MANPATH environment variable
Sami Kerola [Sat, 16 Mar 2013 21:05:24 +0000 (21:05 +0000)] 
whereis: support MANPATH environment variable

The MANPATH has been around long enough that it can be added to whereis
default search path.

Reference: manpath(1)
Addresses: http://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agowhereis: align with howto-usage-function.txt
Sami Kerola [Sat, 16 Mar 2013 20:25:17 +0000 (20:25 +0000)] 
whereis: align with howto-usage-function.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agowhereis: add search scope listing option
Sami Kerola [Sat, 16 Mar 2013 20:12:49 +0000 (20:12 +0000)] 
whereis: add search scope listing option

Mostly useful when debugging why the command does, or does not, work.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agowhereis: rewrite most of the command
Sami Kerola [Wed, 13 Mar 2013 22:27:12 +0000 (22:27 +0000)] 
whereis: rewrite most of the command

The earlier code gave little or no change to fix bugs and improve the
command.  This rewrite attempts to make further patching easier.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Co-Author: Karel Zak <kzak@redhat.com>

11 years agodocs: add TB to list of supported suffixes
Karel Zak [Mon, 18 Mar 2013 17:31:07 +0000 (18:31 +0100)] 
docs: add TB to list of supported suffixes

Reported-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: cleanup TODO
Karel Zak [Mon, 18 Mar 2013 16:07:39 +0000 (17:07 +0100)] 
docs: cleanup TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodmesg: use $PAGER for --human output, add --nopager
Karel Zak [Mon, 18 Mar 2013 13:05:24 +0000 (14:05 +0100)] 
dmesg: use $PAGER for --human output, add --nopager

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodmesg: add --human
Karel Zak [Mon, 18 Mar 2013 11:38:28 +0000 (12:38 +0100)] 
dmesg: add --human

 * enable --reltime
 * enable --color
 * a little bit cleanup main()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodmesg: more colors, more fun
Karel Zak [Mon, 18 Mar 2013 11:25:03 +0000 (12:25 +0100)] 
dmesg: more colors, more fun

 * colorize subsystem prefix
 * colorize time
 * colorize by keywords (now "segfault" only)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agohwclock: make hwclock leap-second-aware
Joseph Parmelee [Mon, 18 Mar 2013 04:48:57 +0000 (22:48 -0600)] 
hwclock: make hwclock leap-second-aware

Attached is a patch file leap_seconds.patch against util-linux-2.22.2
that allows leap seconds to be included in hwclock --show or --hctosys.
The current code uses the default UTC zonefile in reading the hardware
RTC with mktime().  This zonefile usually does not include leap
seconds.  As of this date there have been a total of 25 leap seconds
added since the epoch (start of 1970).  This is particularly a problem
for systems using ntp to maintain their system clocks because ntp does
take leap seconds into account.  A user can specify a leap-second-aware
zonefile via /etc/localtime.  By defining the environment variable
TZUTC, mktime() can be induced to use a matching UTC zonefile that
includes leap seconds.  The default behavior (TZUTC undefined) is
unchanged.

Regards,

Joseph Parmelee
jparmele at wildbear.com

11 years agofsck.cramfs: fix compiler warnings
Karel Zak [Fri, 15 Mar 2013 14:33:23 +0000 (15:33 +0100)] 
fsck.cramfs: fix compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: update year
Karel Zak [Fri, 15 Mar 2013 14:18:22 +0000 (15:18 +0100)] 
docs: update year

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibmount: clean up header file
Karel Zak [Fri, 15 Mar 2013 13:23:04 +0000 (14:23 +0100)] 
libmount: clean up header file

 * don't teach people C by header files, so use warn_unused_result
   attribute only on places where we return allocated memory (to avoid
   leaks in applications).

 * merge multiple function attributes to the one list to make it
   usable with gtk-doc

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibblkid: clean up header file
Karel Zak [Fri, 15 Mar 2013 13:23:04 +0000 (14:23 +0100)] 
libblkid: clean up header file

 * don't teach people C by header files, so use warn_unused_result
   attribute only on places where we return allocated memory (to avoid
   leaks in applications).

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agobuild-sys: inform gtk-doc about __ul_attribute__
Karel Zak [Fri, 15 Mar 2013 13:58:08 +0000 (14:58 +0100)] 
build-sys: inform gtk-doc about __ul_attribute__

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibblkid: fix docs comment
Karel Zak [Fri, 15 Mar 2013 11:47:53 +0000 (12:47 +0100)] 
libblkid: fix docs comment

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agochkdupexe: remove, deprecated for years
Karel Zak [Thu, 14 Mar 2013 12:34:11 +0000 (13:34 +0100)] 
chkdupexe: remove, deprecated for years

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoarch: remove the command, deprecated since 2.13, use coreutils version
Karel Zak [Thu, 14 Mar 2013 11:22:11 +0000 (12:22 +0100)] 
arch: remove the command, deprecated since 2.13, use coreutils version

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofindmnt: add FREQ and PASSNO columns
Karel Zak [Thu, 14 Mar 2013 09:50:37 +0000 (10:50 +0100)] 
findmnt: add FREQ and PASSNO columns

 ... to provide all information from fstab.

Reported-by: Roger Leigh <rleigh@codelibre.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: support --list=<signal>
Karel Zak [Wed, 13 Mar 2013 15:02:55 +0000 (16:02 +0100)] 
kill: support --list=<signal>

The '=' is expected for optional arguments and required in procps version.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: add pretty printed list output (for compatibility with procps)
Sami Kerola [Tue, 12 Mar 2013 21:18:13 +0000 (21:18 +0000)] 
kill: add pretty printed list output (for compatibility with procps)

 * add -L, --table

References: http://www.freelists.org/post/procps/kill1-consolidation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agonamespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/
Josh Triplett [Fri, 8 Mar 2013 19:43:17 +0000 (11:43 -0800)] 
namespace.h: Fix typo: s/CLONE_NEWSNS/CLONE_NEWNS/

This typo causes namespace.h to always unconditionally define
CLONE_NEWNS rather than using the system definition.

Bug present since the initial version of unshare in commit
4205f1fda1ac32046125a2e0f3937b666186bfab.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Anton Cherkashyn <mail@antonc.com>
11 years agoinclude/timer: return setitimer return value
Karel Zak [Wed, 13 Mar 2013 13:07:23 +0000 (14:07 +0100)] 
include/timer: return setitimer return value

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofsfreeze: check for collision between options
Karel Zak [Wed, 13 Mar 2013 12:07:32 +0000 (13:07 +0100)] 
fsfreeze: check for collision between options

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoinclude/optutils: make collisions detection between options more robust
Karel Zak [Wed, 13 Mar 2013 12:04:02 +0000 (13:04 +0100)] 
include/optutils: make collisions detection between options more robust

 - don't rely on the correct ul_excl_t usage
 - don't print --(null) for non-existing long options

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofsfreeze: clean up usage(), add -V
Karel Zak [Wed, 13 Mar 2013 11:32:30 +0000 (12:32 +0100)] 
fsfreeze: clean up usage(), add -V

 - clean up usage()
 - add -V,--version
 - print usage() if not action specified
 - update man page

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoflock: use include/timer.h
Karel Zak [Wed, 13 Mar 2013 11:13:55 +0000 (12:13 +0100)] 
flock: use include/timer.h

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoinclude: add timer.h
Karel Zak [Wed, 13 Mar 2013 11:13:11 +0000 (12:13 +0100)] 
include: add timer.h

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agoflock: use strtotimeval() from libcommon
Karel Zak [Wed, 13 Mar 2013 10:52:34 +0000 (11:52 +0100)] 
flock: use strtotimeval() from libcommon

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/strutils: add strtotimeval_or_err()
Karel Zak [Wed, 13 Mar 2013 10:51:15 +0000 (11:51 +0100)] 
lib/strutils: add strtotimeval_or_err()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: use new API from lib/procutils.c
Karel Zak [Tue, 12 Mar 2013 16:40:31 +0000 (17:40 +0100)] 
kill: use new API from lib/procutils.c

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/procutils: add simple API to scan /proc/PID/*
Karel Zak [Tue, 12 Mar 2013 16:24:14 +0000 (17:24 +0100)] 
lib/procutils: add simple API to scan /proc/PID/*

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: move fallocate test file
Karel Zak [Tue, 12 Mar 2013 15:08:23 +0000 (16:08 +0100)] 
tests: move fallocate test file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: move tailf test input
Karel Zak [Tue, 12 Mar 2013 14:56:49 +0000 (15:56 +0100)] 
tests: move tailf test input

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolib/procutils: test refactoring
Karel Zak [Tue, 12 Mar 2013 14:45:59 +0000 (15:45 +0100)] 
lib/procutils: test refactoring

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agodocs: add long options and tidy up kill.1
Sami Kerola [Thu, 7 Mar 2013 23:05:48 +0000 (23:05 +0000)] 
docs: add long options and tidy up kill.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agokill, procs: use pid_t for pids
Sami Kerola [Thu, 7 Mar 2013 20:02:46 +0000 (20:02 +0000)] 
kill, procs: use pid_t for pids

Reference: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/linux/threads.h#n30
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: use libc error printing facilities and exit values
Sami Kerola [Wed, 6 Mar 2013 22:53:36 +0000 (22:53 +0000)] 
kill: use libc error printing facilities and exit values

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: align with howto-usage-function.txt
Sami Kerola [Wed, 6 Mar 2013 22:28:39 +0000 (22:28 +0000)] 
kill: align with howto-usage-function.txt

[kzak@redhad.com: - s/commandname/name/
                  - improve --all description
                  - add -h/--help]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agokill: add long options
Sami Kerola [Wed, 6 Mar 2013 22:07:42 +0000 (22:07 +0000)] 
kill: add long options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
11 years agofdisk: improve MBR detection
Karel Zak [Tue, 12 Mar 2013 10:58:34 +0000 (11:58 +0100)] 
fdisk: improve MBR detection

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: no more AIX "support"
Karel Zak [Tue, 12 Mar 2013 10:37:33 +0000 (11:37 +0100)] 
fdisk: no more AIX "support"

The whole AIX support in fdisk has been limited to pretty poor AIX
magic string detection and warning that the AIX is unsupported. It's
too expensive to maintain such fdisk driver.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update fdisk tests
Karel Zak [Tue, 12 Mar 2013 10:27:28 +0000 (11:27 +0100)] 
tests: update fdisk tests

 - the new fdisk ask-partition-number dialog does not ask for non-senses
   (non-existing partitions etc.)

 - 'p'rint command prints disk label name (usually "dos" in the tests)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: use comma in the ask-partition-number dialog (again)
Karel Zak [Tue, 12 Mar 2013 09:58:33 +0000 (10:58 +0100)] 
fdisk: use comma in the ask-partition-number dialog (again)

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update aks-partition-number dialog (planned regression)
Karel Zak [Mon, 11 Mar 2013 15:15:36 +0000 (16:15 +0100)] 
tests: update aks-partition-number dialog (planned regression)

Since 2.23 the fdisk ask-partition-number dialog don't ask for
partition number if there is only one partition. This was default in
DOS driver, now it's default everywhere.

For Sun/BSD it's regression... but we don't want to maintain any extra
code --- sorry --- we don't want any exception in the code.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update 'odd input' fdisk test
Karel Zak [Mon, 11 Mar 2013 15:05:29 +0000 (16:05 +0100)] 
tests: update 'odd input' fdisk test

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (bsd) support non-nested version too
Karel Zak [Mon, 11 Mar 2013 14:51:22 +0000 (15:51 +0100)] 
fdisk: (bsd) support non-nested version too

 note that btrydev() should be unnecessary, regular list_table()
should be enough for all types.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: fix typo in fdisk test
Karel Zak [Mon, 11 Mar 2013 14:35:43 +0000 (15:35 +0100)] 
tests: fix typo in fdisk test

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: update bsd test
Karel Zak [Mon, 11 Mar 2013 14:15:32 +0000 (15:15 +0100)] 
tests: update bsd test

This is the correct 'L'ist partition types dialog output for BSD.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agotests: ignore stderr in fdisk -l
Karel Zak [Mon, 11 Mar 2013 14:14:51 +0000 (15:14 +0100)] 
tests: ignore stderr in fdisk -l

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: remove comma from ask number dialog
Karel Zak [Tue, 5 Mar 2013 14:45:35 +0000 (15:45 +0100)] 
fdisk: remove comma from ask number dialog

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: use fdisk_ask_partnum() everywhere
Karel Zak [Tue, 5 Mar 2013 14:39:12 +0000 (15:39 +0100)] 
fdisk: use fdisk_ask_partnum() everywhere

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (bds) use nested partition table
Karel Zak [Tue, 5 Mar 2013 14:14:04 +0000 (15:14 +0100)] 
fdisk: (bds) use nested partition table

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: add support for nested contexts
Karel Zak [Tue, 5 Mar 2013 14:13:26 +0000 (15:13 +0100)] 
libfdisk: add support for nested contexts

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibblkid: ignore nested BSD partitions if same like parent
Karel Zak [Tue, 5 Mar 2013 12:40:32 +0000 (13:40 +0100)] 
libblkid: ignore nested BSD partitions if same like parent

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (dos) use new dialog to ask for prim. partitions
Karel Zak [Tue, 5 Mar 2013 12:08:10 +0000 (13:08 +0100)] 
fdisk: (dos) use new dialog to ask for prim. partitions

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: improve fdisk_ask_partnum()
Karel Zak [Tue, 5 Mar 2013 11:54:13 +0000 (12:54 +0100)] 
libfdisk: improve fdisk_ask_partnum()

 .. to don't ask is there is only one choice.

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: add disk_partition_is_used()
Karel Zak [Tue, 5 Mar 2013 10:15:54 +0000 (11:15 +0100)] 
libfdisk: add disk_partition_is_used()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (sun) cleanup header file
Karel Zak [Tue, 5 Mar 2013 08:42:24 +0000 (09:42 +0100)] 
fdisk: (sun) cleanup header file

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agolibfdisk: add fdisk_partition_toggle_flag()
Karel Zak [Fri, 22 Feb 2013 21:46:51 +0000 (22:46 +0100)] 
libfdisk: add fdisk_partition_toggle_flag()

Signed-off-by: Karel Zak <kzak@redhat.com>
11 years agofdisk: (sun) use fdisk_ prefix for label specific public functions
Karel Zak [Fri, 22 Feb 2013 14:34:04 +0000 (15:34 +0100)] 
fdisk: (sun) use fdisk_ prefix for label specific public functions

Signed-off-by: Karel Zak <kzak@redhat.com>