]>
git.ipfire.org Git - thirdparty/util-linux.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Mon, 11 Feb 2013 09:36:17 +0000 (10:36 +0100)]
fdisk: sort menu
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Mon, 28 Jan 2013 15:11:41 +0000 (16:11 +0100)]
libfdisk: fix gpt status, don't use xcalloc() in library
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 Jan 2013 09:37:45 +0000 (10:37 +0100)]
fdisk: correctly initialize pointer to sun label
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 Jan 2013 09:28:32 +0000 (10:28 +0100)]
fdisk: fix typo
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 28 Jan 2013 09:09:03 +0000 (10:09 +0100)]
libfdisk: add stuff for unit tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 25 Jan 2013 19:04:11 +0000 (20:04 +0100)]
libfdisk: (gpt) fix compiler warnings [-Wformat]
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 Jan 2013 17:18:29 +0000 (18:18 +0100)]
libfdisk: add FDISK_LABEL_FL_ADDPART_NOPARTNO
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 Jan 2013 17:05:18 +0000 (18:05 +0100)]
fdisk: remove fdisk_label from API functions, add asserts, use size_t
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 Jan 2013 13:02:22 +0000 (14:02 +0100)]
libfdisk: (gpt) move code from fdisk to libfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 22 Jan 2013 12:46:55 +0000 (13:46 +0100)]
fdisk: (dos) kill 'partitions' global variable
... and use size_t for partition numbers
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 16:10:23 +0000 (17:10 +0100)]
libfdisk: add part_get_status operation
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:50:25 +0000 (12:50 +0100)]
libfdisk: cleanup fdisk_get_partition_type() returns
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:44:58 +0000 (12:44 +0100)]
fdisk: (dos) move dos specific code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:32:33 +0000 (12:32 +0100)]
fdisk: (dos) move 'toggle active' code to fdiskdoslabe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:28:27 +0000 (12:28 +0100)]
fdisk: (dos) move dos specific code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:26:21 +0000 (12:26 +0100)]
fdisk: remove dead code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:25:30 +0000 (12:25 +0100)]
fdisk: (dos) move dos_list_table_expert() to fdiskdoslabe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:11:43 +0000 (12:11 +0100)]
fdisk: (dos) move 'move begin' code to fdiskdoslabe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:06:17 +0000 (12:06 +0100)]
fdisk: (dos) move fix order code to fdiskdoslabe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 21 Jan 2013 11:01:44 +0000 (12:01 +0100)]
fdisk: (dos) move list table code to fdiskdoslabe.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 15:11:40 +0000 (16:11 +0100)]
fdisk: use libfdisk label->changed
The patch is huge because it's necessary to add a pointer context to
all read_<foo> functions.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 15:11:08 +0000 (16:11 +0100)]
libfdisk: add label->changed flag
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 13:43:00 +0000 (14:43 +0100)]
fdisk: (sun) remove nasty sunlabel macro
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 11:47:27 +0000 (12:47 +0100)]
fdisk: (sun) remove global variable 'partitions'
* use label counters
* add assert()
* use struct fdisk_label if possible
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 11:05:40 +0000 (12:05 +0100)]
fdisk: (bsd) add partitions counters
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 10:48:45 +0000 (11:48 +0100)]
fdisk: (aix) remove unuused variable 'partitions'
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 18 Jan 2013 10:43:56 +0000 (11:43 +0100)]
libfdisk: (gpt) introduce driver independent partitions counters
label->nparts_{max,cur} to later replace global variable partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Jan 2013 16:09:07 +0000 (17:09 +0100)]
fdisk: (gpt) remove global variables, cleanup header verification
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 17 Jan 2013 14:32:17 +0000 (15:32 +0100)]
fdisk: differentiate between get and read operation
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Dec 2012 17:30:03 +0000 (18:30 +0100)]
libfdisk: move label identifier to label struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Dec 2012 17:04:25 +0000 (18:04 +0100)]
libfdisk: add fdisk_label to driver API
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Dec 2012 15:37:04 +0000 (16:37 +0100)]
libfdisk: improve label deinitialization
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Dec 2012 14:08:06 +0000 (15:08 +0100)]
libfdisk: kill dos_compatible_flag global variable
... move the variable to label private struct.
Signed-off-by: Karel Zak <kzak@redhat.com>