summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | fstrim: update man page, reuse libmnt_iterKarel Zak2019-06-112-11/+10Star
| | | | | | | | | | | | | | | | * add info about read-only to the man page * don't be systemd specific, people aso use crond * reuse libmnt_iter Signed-off-by: Karel Zak <kzak@redhat.com>
* | cfdisk: simplify codeKarel Zak2019-06-111-3/+1Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fstrim: properly de-duplicate fstrim -AStanislav Brabec2019-06-111-13/+30
| | | | | | | | | | | | | | | | | | | | fstab can contain tag based mounts. De-duplication by source has to be done after resolving the full source path. Perform the table iteration twice. First time, prepare for de-duplication, second time perform the TRIM itself. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | fstrim -a/-A: Skip read-only volumesStanislav Brabec2019-06-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | Calling TRIM on some read-only volumes can fail with: fstrim: /win: FITRIM ioctl failed: Bad file descriptor Skipping all read-only mounts seems to be safe and logical strategy. Fixes opensuse#1106214. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | fstrim: Fix fstrim_all() commentStanislav Brabec2019-06-111-1/+1
| | | | | | | | | | | | | | | | "convert LABEL=" does not happens in mnt_fs_get_source(), but later in mnt_resolve_spec(). To make this more clean, move the comment before this chunk of code. Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* | lib/canonicalize: fix compiler warning [-Wsign-compare]Karel Zak2019-06-101-1/+2
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libmount: (docs) add reference to v2.33 and v2.34Karel Zak2019-06-075-1/+20
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libsmartcols: (docs) add reference to v2.33 and v2.34Karel Zak2019-06-071-0/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libfdisk: (docs) add reference to v2.33Karel Zak2019-06-072-0/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | umount: be more strict about --allKarel Zak2019-06-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | If you by accident execute umount ls -al /mnt/ then umount --all is executed and another arguments silently ignored. It seems better to be more strict in this case. Reported-by: Harald Dunkel <harald.dunkel@aixigo.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* | wall: make sure ut_line is not emptyKarel Zak2019-06-061-4/+6
| | | | | | | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1711574 Signed-off-by: Karel Zak <kzak@redhat.com>
* | libblkid: fix detection of dm-integrity superblock versionMilan Broz2019-06-041-1/+1
|/ | | | | | | | Kernel 5.2 can use superblock version 3 for dm-integrity. Let's remove the explicit version check to be compatible with future extensions. Signed-off-by: Milan Broz <gmazyland@gmail.com>
* hardlink: fix bad formatting in hardlink.1Karel Zak2019-05-311-10/+10
| | | | | | | | * fix regex\f to regex\fR (issue #805) * replace \fP with \fR to be consistent with our another man pages Addresses: https://github.com/karelzak/util-linux/issues/805 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add lscpu --caches to ReleaseNotesKarel Zak2019-05-311-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: release++ (v2.34-rc2)Karel Zak2019-05-302-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update v2.34-ReleaseNotesKarel Zak2019-05-301-0/+133
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update AUTHORS fileKarel Zak2019-05-301-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: merge changesKarel Zak2019-05-3027-25729/+26617
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* po: update hr.po (from translationproject.org)Božidar Putanec2019-05-301-2941/+2715Star
|
* libmount: add selinuxfs between pseudo filesystemsKarel Zak2019-05-291-0/+1
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add bpf between pseudo filesystemsKarel Zak2019-05-291-0/+1
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826 Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: fix filters use on --listKarel Zak2019-05-291-1/+1
| | | | | Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1714826 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add asan build-sys testKarel Zak2019-05-291-0/+120
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: add note about -S and -HKarel Zak2019-05-281-0/+4
| | | | | | | It's seems people still follow old advices for SSD/4K devices. Let's make CHS deprecation more visible at the begin of the man page... Signed-off-by: Karel Zak <kzak@redhat.com>
* ul: make sure buffers are zeroized [coverity scan]Karel Zak2019-05-281-2/+2
|
* column: make code more robust [coverity scan]Karel Zak2019-05-281-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setpriv: fix memory leak in local scope [coverity scan]Karel Zak2019-05-281-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* setarch: avoid NULL dereference [coverity check]Karel Zak2019-05-281-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: terminate mode and excl[]Karel Zak2019-05-281-1/+5
| | | | | | | * terminate string read from /proc * terminate array for exclusive options Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add info about ASANKarel Zak2019-05-281-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* renice: make code more readable for static analyzer [coverity scan]Karel Zak2019-05-281-1/+1
| | | | | | | It seems coverity and clag have no clue about relation between argv[] and argc. Let's make code more readable for them... Signed-off-by: Karel Zak <kzak@redhat.com>
* readprofile: be more explicit with used types [cppcheck]Karel Zak2019-05-281-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: check scols_line_set_data() return value [coverity scan]Karel Zak2019-05-281-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: make lookup() use more consistent [coverity scan]Karel Zak2019-05-281-2/+4
| | | | | | | We usually check lookup() return value. Let's do it in this case too. It seems static analyzers will be happy with consistent code. Signed-off-by: Karel Zak <kzak@redhat.com>
* mesg: avoid 'ttyname failed: Success' messageKarel Zak2019-05-273-5/+17
| | | | | | | | | | | | | The ttyname(3) can fail to access /dev/ path, and that will cause function to fail without setting errno value with result of rather confusing error message. Lets start setting stdin permission via /proc when this happens as a go-around, with hope kernel following symlink does not fail. Ok, noted, that hopes of symlink follow working are pretty slim. Based on patch from Sami Kerola <kerolasa@iki.fi>. Reference: https://github.com/lxc/lxd/issues/1724 Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/ttyutils: introduce get_terminal_stdfd()Karel Zak2019-05-273-9/+21
| | | | | | Let's use separate function to detect what is the current terminal. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: remove unneeded fields from struct bcache_super_blockSami Kerola2019-05-271-46/+7Star
| | | | | | | | | | | | | | | | This started as fix to following warning. libblkid/src/superblocks/bcache.c:33:3: warning: ISO C99 doesn’t support unnamed structs/unions [-Wc99-c11-compat] But when sent to review Karel told out rather than getting rid of warnings lets get rid of everything unnecessary. [kzak@redhat.com: - use original struct member names rather than 'padN'] Reference: https://github.com/karelzak/util-linux/pull/802 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* login: retire use of __FUNCTION__ macroKarel Zak2019-05-271-4/+3Star
| | | | | | | | | | | | | | This fixes following warning about deprecatd __FUNCTION__ that is another name for __func__ since GCC (pre 2.95, released July 1999). login-utils/login.c:860:10: warning: ISO C does not support ‘__FUNCTION__’ predefined identifier [-Wpedantic] Co-Author: Sami Kerola <kerolasa@iki.fi> Reference: https://c0x.coding-guidelines.com/6.4.2.2.html Reference: https://github.com/karelzak/util-linux/pull/802 Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: check return value when read from /proc [coverity scan]Karel Zak2019-05-231-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't use uninitialized value [coverity scan]Karel Zak2019-05-231-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fallocate: make posix_fadvise() use more readable for analyzersKarel Zak2019-05-231-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* dmesg: make strtok() use more robustKarel Zak2019-05-231-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkzone: remove never read valueKarel Zak2019-05-231-3/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* whereis: make subdirs scan more robustKarel Zak2019-05-231-10/+27
| | | | | | | | | * call strchr() only once * avoid things like strcat(buf, strchr(dir, '*') + 1) * make it more readable * improve debug messages Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: make sure __process_one_device() has proper arguments [coverity scan]Karel Zak2019-05-231-2/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: check ul_path_scanf() return value [coverity scan]Karel Zak2019-05-231-4/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: check stat() return code [coverity scan]Karel Zak2019-05-231-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: make code more robust for static analyzer [clang scan]Karel Zak2019-05-231-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hardlink: avoid uninitialized variables [clang scan]Karel Zak2019-05-231-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libfdisk: assert if self_pte() returns NULLSami Kerola2019-05-221-0/+4
| | | | | | | | | | The self_pte() can return NULL if partitions array is not large enough, but that should also be impossible and definitely a bug. libfdisk/src/dos.c:984:8: warning: potential null pointer dereference [-Wnull-dereference] libfdisk/src/dos.c:1031:8: warning: potential null pointer dereference [-Wnull-dereference] Signed-off-by: Sami Kerola <kerolasa@iki.fi>