]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Fri, 21 Mar 2014 09:30:22 +0000 (10:30 +0100)]
build-sys: gettexts 0.18 -> 0.18.2 due to MKDIR_P
The autopoint is designed to not use the latest installed bug fix
release, if you specify
AM_GNU_GETTEXT_VERSION([0.18])
in your configure.ac then it really uses 0.18, rather than also
installed 0.18.2 or 0.18.3. It means that bug fix update has no any
effect. Oh...
The AM_PROG_MKDIR_P is deprecated for years, unfortunately still used
in 0.18 gettext m4 stuff. This problem should be fixed in 0.18.2 where
is the correct AC_PROG_MKDIR_P macro.
If you do not have gettext 0.18.2 (or 0.18.3) then update.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 21 Mar 2014 08:19:01 +0000 (09:19 +0100)]
Merge branch 'fix-unshare-defines' of https://github.com/rudimeier/util-linux
* 'fix-unshare-defines' of https://github.com/rudimeier/util-linux:
unshare: include libmount.h to provide missing MS_* defines
Hannes Reinecke [Thu, 20 Mar 2014 10:03:50 +0000 (11:03 +0100)]
blkid: convert superblocks to new calling convention
With the previous patch the scanning functions were
modified to return a differentiated return code.
To correctly abort scanning when an I/O error occurs
we need to differentiate between 'error' (= -1) and
'not found' (= 1) in the probe functions.
This patch updates all superblock scanning functions
to the new calling convention.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Hannes Reinecke [Thu, 20 Mar 2014 10:03:49 +0000 (11:03 +0100)]
blkid: stop scanning on I/O error
Whenever we fail to read from a device it's pointless to
continue with probing; we should be failing immediately.
Otherwise the system will continue logging I/O errors.
This patch updates the probe functions to return the
negative error number on error and BLKID_PROBE_NONE
if not found.
[kzak@redhat.com: - fix s/return errno/return -errno/]
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Mon, 17 Mar 2014 10:48:47 +0000 (11:48 +0100)]
unshare: include libmount.h to provide missing MS_* defines
Since
6728ca10 we are using MS_PRIVATE and MS_REC which are not defined
in some systems's sys/mount.h.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Karel Zak [Thu, 13 Mar 2014 11:41:03 +0000 (12:41 +0100)]
include/closestream: don't wipe errno on EPIPE
... the code in close_stdout() is sensitive to EPIPE, so
wipe errno is close_stream() is probably bad idea.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Mar 2014 11:39:09 +0000 (12:39 +0100)]
dmesg: don't report EPIPE
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 13 Mar 2014 10:08:01 +0000 (11:08 +0100)]
libfdisk: (gpt) use entry attributes as bitmap
* care about endianess
* don't use by compiler packed struct with bit array for GPT
attributes, it's more robust use it as bitmap stored in uint64_t.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 12 Mar 2014 14:09:02 +0000 (15:09 +0100)]
libblkid: convert GPT attributes to host endianess
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 12 Mar 2014 12:52:01 +0000 (13:52 +0100)]
libfdisk: update GPT partition types
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 12 Mar 2014 11:25:23 +0000 (12:25 +0100)]
mount: update XFS mount.8 allocsize=
Reported-by: Satoru Takeuchi
Signed-off-by: Karel Zak <kzak@redhat.com>
Benno Schulenberg [Thu, 13 Feb 2014 20:36:43 +0000 (21:36 +0100)]
libfdisk: avoid two compiler warnings about wrong print formats
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Sami Kerola [Sat, 8 Mar 2014 17:01:56 +0000 (11:01 -0600)]
docs: add a new command boilerplate code
Having howtos is good, having an working code that can be used as-is to
kickstart a write of a new command is better.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 8 Mar 2014 17:01:55 +0000 (11:01 -0600)]
build-sys: sort gitignore files
Use 'LC_ALL=C sort -fu' order for all lists.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 8 Mar 2014 17:01:54 +0000 (11:01 -0600)]
tests: check swaplabel, and perform more swapon boundary tests
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 8 Mar 2014 17:01:53 +0000 (11:01 -0600)]
mkswap: remove unnecessary usage output
The usage output changes too often making unnecessarily expected output
in test unstable. Besides in this case the usage ouput does not even
help user, because invalid swap target size error cannot be fixed by
specificing an option.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Wed, 12 Mar 2014 10:02:15 +0000 (11:02 +0100)]
tests: cleanup fallocate
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 12 Mar 2014 09:55:47 +0000 (10:55 +0100)]
Merge branch 'master' of https://github.com/rudimeier/util-linux
* 'master' of https://github.com/rudimeier/util-linux:
tests, skip fallocate for unsupported filesystems
Karel Zak [Wed, 12 Mar 2014 08:27:10 +0000 (09:27 +0100)]
lib/colors: care about colors only on tty()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 12 Mar 2014 08:11:36 +0000 (09:11 +0100)]
libblkid: improve comment
Signed-off-by: Karel Zak <kzak@redhat.com>
Ruediger Meier [Tue, 11 Mar 2014 14:53:19 +0000 (15:53 +0100)]
tests, skip fallocate for unsupported filesystems
Karel Zak [Tue, 11 Mar 2014 12:00:41 +0000 (13:00 +0100)]
tests: refresh fdisk outputs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 11:59:42 +0000 (12:59 +0100)]
lib/strutils: fix parse_size() return code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 11:35:44 +0000 (12:35 +0100)]
tests: update fdisk MBR and SUN tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 11:33:30 +0000 (12:33 +0100)]
libfdisk: (bsd) fix output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 11:22:35 +0000 (12:22 +0100)]
cfdisk: follow terminal-colors.d
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 11:16:14 +0000 (12:16 +0100)]
libfdisk: follow requested size rather than use all available space
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 10:51:38 +0000 (11:51 +0100)]
lib/colors: fix colors test
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 10:49:52 +0000 (11:49 +0100)]
cfdisk: fix colors initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 11 Mar 2014 10:40:00 +0000 (11:40 +0100)]
fdisk: add note about colors to the man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 13:44:50 +0000 (14:44 +0100)]
cfdisk: fix slang usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 13:15:36 +0000 (14:15 +0100)]
build-sys: ove fdisks to disk-utils
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 12:55:43 +0000 (13:55 +0100)]
fdisk: merge fdisk-ask.c to fdisk.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 12:36:22 +0000 (13:36 +0100)]
sfdisk: merge partname.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 12:21:39 +0000 (13:21 +0100)]
cfdisk: refresh man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 10 Mar 2014 10:57:26 +0000 (11:57 +0100)]
cfdisk: update table index when out of range
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:54:17 +0000 (13:54 +0100)]
libfdisk: (sun) add info about whole-disk partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:44:31 +0000 (13:44 +0100)]
cfdisk: fix header
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:44:12 +0000 (13:44 +0100)]
libfdisk: (sgi) cleanup, add infor about whole-disk partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:43:39 +0000 (13:43 +0100)]
libfdisk: don't count special whole-disk partitions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:14:51 +0000 (13:14 +0100)]
cfdisk: coding style, comments, etc.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 7 Mar 2014 12:01:22 +0000 (13:01 +0100)]
cfdisk: cleanup, rename menuitem struct
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 12:28:40 +0000 (13:28 +0100)]
cfdisk: add usage() and some basic main() stuff
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 12:05:19 +0000 (13:05 +0100)]
cfdisk:add page down/up
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 27 Feb 2014 11:24:50 +0000 (12:24 +0100)]
cfdisk: support partitions list longer than screen LINES
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 13:49:13 +0000 (14:49 +0100)]
cfdisk: improve write dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 13:22:04 +0000 (14:22 +0100)]
cfdisk: add help screen
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:58:31 +0000 (13:58 +0100)]
cfdisk: improve add parttype UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:02:30 +0000 (13:02 +0100)]
cfdisk: add parttype dialog
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 26 Feb 2014 12:02:02 +0000 (13:02 +0100)]
fdisk: remove unnecessary code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 12:22:26 +0000 (13:22 +0100)]
cfdisk: consolidate menu descriptions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 12:05:09 +0000 (13:05 +0100)]
cfdisk: menu actions refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 25 Feb 2014 11:47:22 +0000 (12:47 +0100)]
cfdisk: add create lebel UI
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 24 Feb 2014 13:27:49 +0000 (14:27 +0100)]
cfdisk: consolidate menu move code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 24 Feb 2014 12:57:08 +0000 (13:57 +0100)]
cfdisk: supports also vertical menus
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:53:03 +0000 (23:53 +0100)]
cfdisk: reorder abstract PT according to output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:52:17 +0000 (23:52 +0100)]
lib/tt: keep track about output order
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:34:54 +0000 (23:34 +0100)]
lib/tt: add tt_line_get_userdata()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:09:26 +0000 (23:09 +0100)]
libfdisk: add dump functions, make freespace code generic
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 22:09:02 +0000 (23:09 +0100)]
libfdisk: (dos) consolidate partition end-offset code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 20:09:55 +0000 (21:09 +0100)]
libfdisk: (dos) fix ext_index usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 19:51:30 +0000 (20:51 +0100)]
cfdisk: improve tree output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 4 Feb 2014 19:50:02 +0000 (20:50 +0100)]
libfdisk: remove label specific get_freespace
- it seems we can use improved nested<->container relationship
rather than implement DOS specific function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 17:06:07 +0000 (18:06 +0100)]
libfdisk: (dos) fix log.partition delete
- deallocate sector buffer and deincrement part_max when delete last
logical partition
- zap obsolete EBR on begin of the extended partition when no logical
partition defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 17:05:57 +0000 (18:05 +0100)]
libfdisk: again improve freespace code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 13:40:35 +0000 (14:40 +0100)]
cfdisk: use tree-mode for extended, colorize freesapce
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 13:40:27 +0000 (14:40 +0100)]
libfdisk: improve freesapce detection
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:23:18 +0000 (12:23 +0100)]
libfdisk: don't ask for pri/log if wanted start within extended partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:22:31 +0000 (12:22 +0100)]
cfdisk: follow default end if possible
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:19:38 +0000 (12:19 +0100)]
libfdisk: add table sort function, use it in get_freespace
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 3 Feb 2014 11:18:57 +0000 (12:18 +0100)]
include/list: add void data to the sort cmp function
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 Jan 2014 09:35:53 +0000 (10:35 +0100)]
cfdisk: use real partno
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 31 Jan 2014 09:31:08 +0000 (10:31 +0100)]
cfdisk: support <size>S, and long hint messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 14:07:46 +0000 (15:07 +0100)]
lib/strutils: support dec.points in parse_size()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 11:56:01 +0000 (12:56 +0100)]
lib/strutils: use proper return codes in parse_size()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 30 Jan 2014 11:21:11 +0000 (12:21 +0100)]
libfdisk: rewrite freespace code
* use separate function to get free space
* allow to use label-specific get_freespace() function
(this is necessary for MBR extended partitions mess)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:22:12 +0000 (14:22 +0100)]
cfdisk: add UI for linfdisk menus, ask for size
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:21:30 +0000 (14:21 +0100)]
fdisk: use ASKTYPE_MENU
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:20:40 +0000 (14:20 +0100)]
linfdisk: align free space
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:20:11 +0000 (14:20 +0100)]
libfdisk: (gpt) initialize last_lba, cleanup pa->{start,size} usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:19:05 +0000 (14:19 +0100)]
libfdisk: initialize last_lba
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:17:41 +0000 (14:17 +0100)]
libfdisk: add fdisk_partition_*_follow_default()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:15:30 +0000 (14:15 +0100)]
libfdisk: add ASKTYPE_MENU and context last_lba
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jan 2014 13:09:54 +0000 (14:09 +0100)]
lib/mbalign: add mbs_safe_width() from tt.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jan 2014 16:31:24 +0000 (17:31 +0100)]
fdisk: fix 'p'rint error on empty PT
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 13:22:35 +0000 (14:22 +0100)]
cfdisk: improve info line and menu updates
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 12:05:19 +0000 (13:05 +0100)]
cfdisk: improve info line, add Delete action
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:53:34 +0000 (11:53 +0100)]
cfdisk: update menu according to the current partition
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:52:50 +0000 (11:52 +0100)]
libfdisk: add fdisk_table_get_partition()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 22 Jan 2014 10:10:54 +0000 (11:10 +0100)]
cfdisk: add menu action functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 9 Jan 2014 13:49:45 +0000 (14:49 +0100)]
cfdisk: basic UI stuff
Karel Zak [Thu, 9 Jan 2014 13:48:49 +0000 (14:48 +0100)]
include/xalloc: add xvasprintf()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 6 Jan 2014 07:32:20 +0000 (08:32 +0100)]
libfdisk: add fdisk_table_get_nents()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Dec 2013 12:58:46 +0000 (13:58 +0100)]
libfdisk: tiny clean up in fdisk_table_to_string()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 19 Dec 2013 12:25:51 +0000 (13:25 +0100)]
libfdisk: clean up cylinder column
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:38:43 +0000 (10:38 +0100)]
libfdisk: remove tt stuff from API
The include/tt.h has to be used only internally by the library (for
example to convert fdisk_table to string).
The fdisk_ask API should not be more used for complex tasks like print
partition table. The application has to use fdisk_get_table() and
fdisk_table_to_string() or something else.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:28:55 +0000 (10:28 +0100)]
libfdisk: use fdisk_table to generate output
* add generic fdisk_iter iterator
* use fdisk_table to convert partition table to human readable output
* clean up partition.c API (don't use reference to fdisk_context in
fdisk_partition struct)
* extern table.c API to use fdisk_iter iterator
* remove old fdisk_list_partitions()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 18 Dec 2013 09:22:32 +0000 (10:22 +0100)]
include/tt: add function to convert table to string
Note that open_memstream() is POSIX-1.2008, so it's possible than not
all libc have already implemented this function.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Dec 2013 12:59:48 +0000 (13:59 +0100)]
libfdisk: move partition stuff to partition.c
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 13 Dec 2013 18:56:21 +0000 (19:56 +0100)]
libfdisk: add table container
Signed-off-by: Karel Zak <kzak@redhat.com>