summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fdisk: fix -l [<device>]Karel Zak2014-07-281-5/+8
| | | | | | | | | | | | | * don't use err(), but warn(), so don't stop after the first error * display all errors when "-l <device> ..." specified * display only EACCES errors when list whole disks from /proc/partitions ("fdisk -l" ) Reported-by: Boian Bonev <bbonev@ipacct.com> Addresses: https://github.com/karelzak/util-linux/pull/106 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: use pluralized translations.Lauri Nurmi2014-07-281-3/+8
|
* more: replace ad-hoc support for plurals with gettext plurals.Lauri Nurmi2014-07-281-8/+6Star
|
* sfdisk: use pluralized translation.Lauri Nurmi2014-07-281-1/+2
|
* various: erase all traces of the long-obsolete ext filesystemBenno Schulenberg2014-07-284-13/+7Star
| | | | | | The same argument as for xiafs: dead for over ten years. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* various: erase all traces of the long-obsolete xiafsBenno Schulenberg2014-07-287-14/+5Star
| | | | | | | | The xiafs filesystem was removed from the kernel fifteen years ago, and any kernel that contained it reached end of life ten years ago. It's time to stop mentioning it in the mount man page and elsewhere. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: improve some wordings in the man page of mountBenno Schulenberg2014-07-281-159/+177
| | | | | | | Also sort the command-line options alphabetically (with the customary exception of -V and -h). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: fix some things that were overlooked during the first passBenno Schulenberg2014-07-2810-212/+260
| | | | | | | Mainly more option sorting, some formatting adjustments, and the adding of a missing --version here and there. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* cfdisk: reenable cursor when quittingAndreas Henriksson2014-07-281-0/+1
| | | | | | | | | After quitting cfdisk (built with slang) the cursor would be missing at the command prompt. Reported-by: Martin Steigerwald <Martin@Lichtvoll.de> Addresses-Debian-Bug: #755991 Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* tests: Fall back on host/getent in ts_resolve_hostAndreas Henriksson2014-07-281-0/+6
| | | | | | | | | | | | | | | | | | | Neither dig or nslookup would be my first option for resolving, so add the host utility of ISC/bind fame and the (slow) getent utility shipped with libc. This extends the conditions introduced in ... commit a98de9696e1a898f925c9154e5693e73aec0779d Author: Ruediger Meier <ruediger.meier@ga-group.nl> Date: Wed Jun 11 19:28:20 2014 +0200 tests: skip some last tests if no dns support ... and should help us not skip certain tests when we have network connection but none of dig or nslookup available. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* mcookie: avoid format warningBernhard Voelker2014-07-281-2/+2
| | | | | | | | | | | | | "gcc (SUSE Linux) 4.8.1 20130909 [gcc-4_8-branch revision 202388]" issued the following warning: warning: format ‘%zu’ expects argument of type ‘size_t’, \ but argument 3 has type ‘int’ [-Wformat=] * misc-utils/mcookie.c (main): Change format from %zu to %d. RAND_BYTES is an enum, thus of type int. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* mount: clean up -t info in mount.8 and fstab.5Karel Zak2014-07-252-118/+45Star
| | | | | | | | | * remove the huge and unmaintained list of filesystems, just keep only very basic FS types in the man pages * add info about command delimited lists to fstab.5 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mount -t testKarel Zak2014-07-257-0/+103
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't use /{proc,ext}/filesystems when more fs types specifiedKarel Zak2014-07-252-44/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | # mkfs.ext4 /dev/sda1 # mount -t foo,bar /dev/sda1 /mnt successfully mount the device, this is unexpected as extN is no between wanted (by -t specified) filesystems. Summary about -t: * "mount -t foo" mount(2) with "foo" type * "mount -t foo,bar" try mount(2) with "foo" or "bar" * "mount -t foo,auto" try mount(2) with "foo" or ask libblkid for the type * "mount -t nofoo,bar" try types from /{etc,proc}/filesystems, but exclude "foo" and "bar" Note that more filesystems may be specified in fstab (as comma delimited list). The stuff from fstab is always interpreted as list and never as a pattern ("no" prefix makes no sense in fstab). Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix switch_root/pivot_root cut-n-paste error in configure.acAndreas Henriksson2014-07-241-1/+1
| | | | | | | The "linux only" check for pivot_root seems to suffer from a cut-n-paste problem from the earlier switch_root part. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* textual: fix some typos and inconsistencies in various messagesBenno Schulenberg2014-07-2318-32/+33
| | | | | | | | Fixing plain typos, miswordings, inconsistent periods, some missing angular brackets, and a proper pluralization (even when it involves a constant, because for some languages the precise value matters). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* swapon: don't print errors as data in smartcols tableKarel Zak2014-07-221-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: don't use empty strings for smartcols outputKarel Zak2014-07-221-6/+2Star
| | | | | | | The libsmartcols is smart enough to accept NULL for empty fields rather than empty strings. Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: share get_swap_prober() with swaplabel to print uuid and labelSami Kerola2014-07-226-55/+95
| | | | | | | | | | | | The swapon(8) listing was almost complete, apart from label and uuid. This change moves the code from swaplabel(8) to shared scope to be used for printouts in other swap commands, such as swapon. Adding this feature to lsblk(8) was a consideration, but lsblk is not interested of swapfiles, so the swapon seems like a better option to add this information. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Merge branch 'rename' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2014-07-2219-70/+331
|\ | | | | | | | | | | | | | | | | | | | | * 'rename' of git://github.com/kerolasa/lelux-utiliteetit: tests: add rename(1) return value check rename: use function pointer to select file or symlink operation rename: continue despite something failed tests: add rename(1) checks tests: use ts_cd everywhere to change direcrory tests: add function to change directory reliable way rename: allow renaming in subdirectories
| * tests: add rename(1) return value checkSami Kerola2014-07-182-0/+48
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * rename: use function pointer to select file or symlink operationSami Kerola2014-07-181-75/+67Star
| | | | | | | | | | | | | | Add separate functions to different functionality, and add a function for the stuff that is in common for both. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * rename: continue despite something failedSami Kerola2014-07-182-21/+71
| | | | | | | | | | | | | | Try to do all file operations even when one or some of them fail, and use exit value to inform what happen. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: add rename(1) checksSami Kerola2014-07-187-0/+152
| | | | | | | | | | | | | | | | | | Check basic file moves, symlink relinking, and both file moves and symlinks when operations are have directory in destination path. Reviewed-by: Ruediger Meier <sweet_f_a@gmx.de> Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: use ts_cd everywhere to change direcrorySami Kerola2014-07-187-12/+12
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * tests: add function to change directory reliable waySami Kerola2014-07-181-0/+14
| | | | | | | | | | | | | | | | | | Without arguments bash cd will move to $HOME. Ensure also that when directory is assumed to be changed the current directory and intented destination are the same location. Reference: http://www.spinics.net/lists/util-linux-ng/msg09509.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * rename: allow renaming in subdirectoriesSami Kerola2014-07-181-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Earlier the rename(1) considered path as possible string to be renamed, could lead to an issue with none existing destination. See below for demonstration of this issue. After this change all directory elements are ignored when the match finding happens. $ cd $(mktemp -d) $ mkdir aa ab $ touch a{a,b}/aa $ rename -v a x */aa rename: aa/aa: rename to xa/aa failed: No such file or directory Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | Merge branch 'master' of https://github.com/yurchor/util-linuxKarel Zak2014-07-222-2/+2
|\ \ | | | | | | | | | | | | * 'master' of https://github.com/yurchor/util-linux: Fix typos in user visible messages
| * | Fix typos in user visible messagesYuri Chornoivan2014-07-032-2/+2
| | |
* | | Merge branch 'ioclt' of https://github.com/lanurmi/util-linuxKarel Zak2014-07-224-4/+4
|\ \ \
| * | | Fix typo "ioclt" in various files.Lauri Nurmi2014-07-114-4/+4
| |/ /
* | | build-sys: release++ (v2.25)Karel Zak2014-07-222-1/+5
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | docs: update v2.25-ReleaseNotesKarel Zak2014-07-221-0/+91
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | docs: bring one more man page closer to standard formattingBenno Schulenberg2014-07-221-71/+73
| | | | | | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | | docs: update AUTHORS fileKarel Zak2014-07-221-1/+4
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | po: merge changesKarel Zak2014-07-2227-43115/+46890
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | | po: update zh_CN.po (from translationproject.org)Wylmer Wang2014-07-221-6029/+5042Star
| | |
* | | po: update vi.po (from translationproject.org)Trần Ngọc Quân2014-07-221-905/+662Star
| | |
* | | po: update uk.po (from translationproject.org)Yuri Chornoivan2014-07-221-799/+575Star
| | |
* | | po: update pt_BR.po (from translationproject.org)Rafael Ferreira2014-07-221-6075/+5118Star
| | |
* | | po: update pl.po (from translationproject.org)Jakub Bogusz2014-07-221-2312/+558Star
| | |
* | | po: update nl.po (from translationproject.org)Benno Schulenberg2014-07-221-1171/+689Star
| | |
* | | po: update ja.po (from translationproject.org)Takeshi Hamasaki2014-07-221-6047/+5036Star
| | |
* | | po: update fr.po (from translationproject.org)David Prévot2014-07-221-857/+641Star
| | |
* | | po: update fi.po (from translationproject.org)Lauri Nurmi2014-07-221-1950/+2001
| | |
* | | po: update es.po (from translationproject.org)Antonio Ceballos Roa2014-07-221-7146/+2844Star
| | |
* | | po: update de.po (from translationproject.org)Mario Blättermann2014-07-221-828/+653Star
| | |
* | | po: update da.po (from translationproject.org)Joe Hansen2014-07-221-5874/+4990Star
| | |
* | | po: update cs.po (from translationproject.org)Petr Písař2014-07-221-6068/+5101Star
| | |
* | | prlimit: remove repeating words from man pageKarel Zak2014-07-211-2/+2
| | | | | | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>