Benno Schulenberg
33b981f757
libfdisk: (dos) make a helpful message fit within 80 characters
...
Also add a hint for translators.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-03 13:25:27 +01:00
Karel Zak
68fe4b2822
libfdisk: don't align very small partitions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 13:20:45 +01:00
Karel Zak
29e9b787da
cfdisk: improve ui_get_size() warnings
...
- don't reset to default after error
- clean previous warnings after users response
- remove unnecessary warning
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 13:06:20 +01:00
Karel Zak
1bb387bdbd
libfdisk: fix issues with very small partitions
...
- cfdisk: minimal partitions size is 1 sector
- dos: when align last sector then don't set partition size to zero
for very small partitions.
- don't ignore tiny partitions before free space when define
free-space start offset
- improve some debug messages
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 12:44:00 +01:00
Karel Zak
3d919d9583
libfdisk: (dos) write new empty label too
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 12:03:12 +01:00
Karel Zak
0e4254f42c
docs: add new cfdisk request to TODO file
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 11:22:21 +01:00
Karel Zak
47dd69188a
docs: add info about *_DEBUG= to man pages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 11:16:46 +01:00
Karel Zak
f9fb8290d8
cfdisk: print "wrong order" warning after startup, colorize info messages
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 11:04:37 +01:00
Karel Zak
b5ef65a931
cfdisk: force main menu to default to Quit/New menu items
...
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-03 10:37:33 +01:00
Karel Zak
635a81513a
cfdisk: disable some KEY_* in ui_get_wqstring()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 13:05:48 +01:00
Karel Zak
316bce9dd4
cfdisk: default to Quit menu item
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 12:47:50 +01:00
Karel Zak
eed0e7b9bc
libfdisk: (dos) fix logical partitions errors handling
...
The current code in add_partition() de-increment number of partitions
on error when logical partition requested and add_logical() does the
same. The result is mess in partitions array.
The another fixed issue is that add_logical() is called if all primary
partitions are already used although 'pa->start' (the template) is
explicitly defined outside the extended partition. The right behavior
is to end with error message.
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 12:20:44 +01:00
Benno Schulenberg
fc14ceba5e
textual: grammarize and harmonize the stat error message
...
The message "stat failed %s" seems to say that stat() failed to
do something, or failed to pass a test, but of course it means
that the statting of something failed. So say so. Also make
two very similar messages equal to this one.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 11:27:10 +01:00
Sami Kerola
51278ec020
docs: mention nice(1) in renice(1) manual page
...
Addresses: https://bugs.debian.org/260984
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2015-02-02 11:27:10 +01:00
Jan Kara
3c1f7603bf
mount: Further FAT mount option update
...
Add some mount options mentioned in Documentation/filesystems/vfat.txt.
Signed-off-by: Jan Kara <jack@suse.cz>
2015-02-02 11:27:10 +01:00
Jan Kara
b7b16b0bcf
mount: Add documentation of FAT mount option time_offset
...
Signed-off-by: Jan Kara <jack@suse.cz>
2015-02-02 11:27:10 +01:00
Karel Zak
db0ccb761d
whereis: lookup also info docs
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 11:15:47 +01:00
Benno Schulenberg
9ac1fcf6c5
sfdisk: actually translate the table headers by calling gettext()
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
c7b1fbb4c5
docs: add the Sort command to the man page of cfdisk
...
Also sort T into its proper position, improve the wording of U,
and add the Left and Right arrow keys.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
a0aee0a9a9
build-sys: improve wording and punctuation of several messages
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
dc45b86e14
libfdisk: actually translate the human-readable name of the partition type
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
25e3dd1739
lib/strutils: accept not just 'B' but also lowercase 'b' in a size suffix
...
Just line 'M' and 'm' are accepted for mega, 'G' and 'g' for giga,
'S' and 's' for sectors, and so on.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
2a0ffa311c
cfdisk: make '?' an alias of 'h', to also show the help screen
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
d4640320df
cfdisk: punctuate the bottombar messages consistently
...
Also adjust the style of two comments and add another.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
143d9e3e52
cfdisk: improve wording and consistency of the size warnings
...
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Benno Schulenberg
a4fbbbd491
cfdisk: remove the mistaken B from the explanation of size suffixes
...
Also reword the explanation to be clearer. It is not necessary to
be complete -- that is what the man page is for.
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2015-02-02 10:57:07 +01:00
Karel Zak
625d00fefb
libfdisk: (dos) delete also logical with extended
...
deleting an extended partition with cfdisk leaves its contained
partitions in existence
Reported-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-02-02 10:38:05 +01:00
Karel Zak
f1b64c1c1f
wipefs: fix FD leak on error [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 12:42:58 +01:00
Karel Zak
1539750f2a
lsblk: implement SOMEOK (=64) return code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 12:35:26 +01:00
Karel Zak
4631e25427
findmnt: fix mem leaks [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:59:54 +01:00
Karel Zak
912a7077b2
utmpdump: don't pass parameter of type "struct utmp" by value [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:40:47 +01:00
Karel Zak
863d371c83
sulogin: make sure that fallback FD is valid [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:32:42 +01:00
Karel Zak
101c5838ac
su: fix mem leak in modify_environ() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:26:09 +01:00
Karel Zak
86cf1ff42a
login: fix mem leak in init_environ() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:25:07 +01:00
Karel Zak
78ad5aaaa9
libsmartcols: remove unnecessary check [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:07:37 +01:00
Karel Zak
7396bdd468
libmount: fix possible mem leak in has_utab_entry() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 11:03:49 +01:00
Karel Zak
7bc2fd3d23
libmount: fix mem leak in do_mount_by_types() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 10:58:55 +01:00
Karel Zak
edc4cf94a8
libfdisk: make fdisk_partition_to_string() more robust [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-29 10:49:51 +01:00
Karel Zak
4044d24468
libfdisk: (gpt) check return from GUID parser [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 15:10:15 +01:00
Karel Zak
9c321dfbf0
libfdisk: fix possible mem leak [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 15:05:14 +01:00
Karel Zak
6a7857d247
libblkid: (hfs) avoid overflow [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 15:02:41 +01:00
Karel Zak
d655ceac78
libblkid: fix macro redefinition [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:57:53 +01:00
Karel Zak
e8b150e9ba
lib/sysfs: use ssize_t for sysfs_readlink() [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:55:20 +01:00
Karel Zak
54efd37875
sfdisk: fix --id fallthrough [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:50:38 +01:00
Karel Zak
52c56476ae
fsck: deallocate when no cache [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:45:15 +01:00
Karel Zak
68ddb13662
fdisk: check return and robust label usage [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:40:10 +01:00
Karel Zak
9eaa7292e4
blockdev: check return when read from sysfs [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:33:36 +01:00
Karel Zak
ec8a728ae0
cfdisk: fix mem leak and main_menu_action() logic [coverity scan]
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 14:30:20 +01:00
Karel Zak
bf031d89ea
libfdisk: support unknown partition types in sfdisk scripts
...
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1183234
Signed-off-by: Karel Zak <kzak@redhat.com>
2015-01-28 09:57:03 +01:00
Karel Zak
9bd2906012
Merge branch 'fix-tests-ppc' of https://github.com/rudimeier/util-linux
...
* 'fix-tests-ppc' of https://github.com/rudimeier/util-linux :
tests: fix fdisk/bsd again for big endian
tests: fix swaplabel test for 9a83b03c
Revert "tests: simplify and update swaplabel test"
2015-01-28 08:30:17 +01:00