]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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.

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>

12 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>
12 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>
12 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>
12 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>
12 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>
12 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

12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 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>
12 years agofdisk: remove global unit variables
Karel Zak [Mon, 11 Feb 2013 15:38:20 +0000 (16:38 +0100)] 
fdisk: remove global unit variables

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: add info about display units to context
Karel Zak [Mon, 11 Feb 2013 13:48:18 +0000 (14:48 +0100)] 
libfdisk: add info about display units to context

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) use yes/no from libfdisk
Karel Zak [Mon, 11 Feb 2013 10:41:47 +0000 (11:41 +0100)] 
fdisk: (sun) use yes/no from libfdisk

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: add Yes/No to Ask API
Karel Zak [Mon, 11 Feb 2013 10:41:19 +0000 (11:41 +0100)] 
libfdisk: add Yes/No to Ask API

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) use Ask API for new-partiton dialog
Karel Zak [Mon, 11 Feb 2013 09:59:43 +0000 (10:59 +0100)] 
fdisk: (sun) use Ask API for new-partiton dialog

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: sort menu
Karel Zak [Mon, 11 Feb 2013 09:36:17 +0000 (10:36 +0100)] 
fdisk: sort menu

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: allow zero as default offset/size
Karel Zak [Mon, 11 Feb 2013 09:35:55 +0000 (10:35 +0100)] 
fdisk: allow zero as default offset/size

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) use fdisk_{info,warnx}
Karel Zak [Fri, 8 Feb 2013 09:48:15 +0000 (10:48 +0100)] 
fdisk: (sun) use fdisk_{info,warnx}

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: add 'G' to create SGI label to the main menu
Karel Zak [Thu, 7 Feb 2013 11:18:27 +0000 (12:18 +0100)] 
fdisk: add 'G' to create SGI label to the main menu

For unknown reason you have to go to the expert menu to create SGI
label.  It's inconsistent behavior as we have all "create label"
operations in the main menu.

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) remove dead code
Karel Zak [Thu, 7 Feb 2013 10:57:11 +0000 (11:57 +0100)] 
fdisk: (sun) remove dead code

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun): use ask API, remove global variable
Karel Zak [Thu, 7 Feb 2013 10:41:58 +0000 (11:41 +0100)] 
fdisk: (sun): use ask API, remove global variable

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: add wrapper to ask for numbers
Karel Zak [Thu, 7 Feb 2013 10:41:26 +0000 (11:41 +0100)] 
libfdisk: add wrapper to ask for numbers

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) share disk label struct with libblkid
Karel Zak [Mon, 4 Feb 2013 17:29:27 +0000 (18:29 +0100)] 
fdisk: (sun) share disk label struct with libblkid

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: rename in sun_disklabel for compatibility with fdisk
Karel Zak [Mon, 4 Feb 2013 17:29:05 +0000 (18:29 +0100)] 
libblkid: rename in sun_disklabel for compatibility with fdisk

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agoinlude/pt-sun: add flags and tags
Karel Zak [Mon, 4 Feb 2013 16:54:30 +0000 (17:54 +0100)] 
inlude/pt-sun: add flags and tags

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibblkid: move sun PT definition to include/
Karel Zak [Mon, 4 Feb 2013 16:46:30 +0000 (17:46 +0100)] 
libblkid: move sun PT definition to include/

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (sun) use cpu_to_be* macros, remove other_endian global variable
Karel Zak [Mon, 4 Feb 2013 16:33:49 +0000 (17:33 +0100)] 
fdisk: (sun) use cpu_to_be* macros, remove other_endian global variable

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: (gpt) use fdisk_{warn,warx,info} functions
Karel Zak [Wed, 30 Jan 2013 13:52:02 +0000 (14:52 +0100)] 
fdisk: (gpt) use fdisk_{warn,warx,info} functions

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: add callacks for info, warn and warnx Ask API
Karel Zak [Wed, 30 Jan 2013 13:50:55 +0000 (14:50 +0100)] 
fdisk: add callacks for info, warn and warnx Ask API

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: add info, warn and wanx Ask API
Karel Zak [Wed, 30 Jan 2013 13:49:27 +0000 (14:49 +0100)] 
libfdisk: add info, warn and wanx Ask API

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: extend "ask" API, add support for offsets
Karel Zak [Tue, 29 Jan 2013 14:28:30 +0000 (15:28 +0100)] 
libfdisk: extend "ask" API, add support for offsets

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolib/strutils: simplify strtosize(), return info about suffix
Karel Zak [Tue, 29 Jan 2013 14:25:47 +0000 (15:25 +0100)] 
lib/strutils: simplify strtosize(), return info about suffix

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agofdisk: add callback for ask-numbers API
Karel Zak [Mon, 28 Jan 2013 15:16:11 +0000 (16:16 +0100)] 
fdisk: add callback for ask-numbers API

Signed-off-by: Karel Zak <kzak@redhat.com>
12 years agolibfdisk: add "ask" interface
Karel Zak [Mon, 28 Jan 2013 15:14:21 +0000 (16:14 +0100)] 
libfdisk: add "ask" interface

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