summaryrefslogtreecommitdiffstats
path: root/sys-utils
Commit message (Collapse)AuthorAgeFilesLines
* ipcs: fix ipc_sem_get_limits()Karel Zak2015-09-151-1/+1
| | | | | | Reported-by: https://github.com/AndrewIrcha Addresses: https://github.com/karelzak/util-linux/commit/e5995acda2d3d55ba4d926741ddd789c9776f1e7#commitcomment-13200369 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix format warning in alpha codeAndreas Henriksson2015-09-071-1/+1
| | | | Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* mount: remove XFS from man page, xfsprogs provides xfs(5)Karel Zak2015-09-021-195/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix read_hypervisor_powerpc() logicKarel Zak2015-09-011-12/+7Star
| | | | | | | | | | We care about /proc/device-tree/compatible content... The patch also removes unnecessary path_exist(), it seems good enough to call open() rather than access() + open(). Addresses: https://github.com/karelzak/util-linux/issues/218 Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/yurchor/util-linuxKarel Zak2015-08-261-1/+1
|\ | | | | | | | | * 'master' of https://github.com/yurchor/util-linux: Fix trivial typos
| * Fix trivial typosYuri Chornoivan2015-08-251-1/+1
| |
* | dmesg: highlight -T issues in docsKarel Zak2015-08-252-3/+5
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | fallocate: fix error messageKarel Zak2015-08-251-1/+1
|/ | | | | | | | FALLOC_FL_KEEP_SIZE flag is generic and used in many situations, "-n" in the error message does not make sense. Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1146152 Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: fix iopl implicit declaration warning on alphaAndreas Henriksson2015-08-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Build warning: sys-utils/hwclock-cmos.c: In function 'i386_iopl': sys-utils/hwclock-cmos.c:611:9: warning: implicit declaration of function 'iopl' [-Wimplicit-function-declaration] return iopl(level); ^ sys-utils/hwclock-cmos.c:611:2: warning: nested extern declaration of 'iopl' [-Wnested-externs] return iopl(level); ^ Also: checking sys/io.h usability... yes checking sys/io.h presence... yes checking for sys/io.h... yes Full build log: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html Please note that this has never been (build-)tested, but should hopefully resolve the warning. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* hwclock: fix fgets unchecked return value warning on alphaAndreas Henriksson2015-08-241-4/+4
| | | | | | | | | | | | | | | | | | Build warning: sys-utils/hwclock-cmos.c: In function 'is_in_cpuinfo': sys-utils/hwclock-cmos.c:162:4: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(field, 256, cpuinfo); Full build log: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html This change has never actually been (build-)tested on alpha, but hopefully the change should fix the warning. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* hwclock: fix signed/unsigned comparison warning on alphaAndreas Henriksson2015-08-241-2/+2
| | | | | | | | | | | | | | | | | | | Fixes the following warning: sys-utils/hwclock.c: In function 'manipulate_epoch': sys-utils/hwclock.c:1465:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (epoch_opt == -1) Full build log available on: https://buildd.debian.org/status/fetch.php?pkg=util-linux&arch=alpha&ver=2.26.2-9&stamp=1440078034 Detected by/via: https://qa.debian.org/bls/packages/u/util-linux.html Please note that this has never actually been (build-)tested on alpha, but should hopefully resolve the warning. Note also that limits.h is already included. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
* misc: fix shadow declarationsSami Kerola2015-08-241-3/+3
| | | | | | | | | | | | | | | | | | | | | | sys-utils/zramctl.c: In function 'get_mm_stat': sys-utils/zramctl.c:276:58: warning: declaration of 'inbytes' shadows a global declaration [-Wshadow] static char *get_mm_stat(struct zram *z, size_t idx, int inbytes) sys-utils/zramctl.c:119:39: note: shadowed declaration is here static unsigned int raw, no_headings, inbytes; libmount/src/tab.c: In function 'mnt_table_get_fs_root': libmount/src/tab.c:1221:22: warning: declaration of 'fs' shadows a parameter [-Wshadow] struct libmnt_fs *fs = mnt_table_find_mountpoint(tb, libmount/src/tab.c:1197:24: note: shadowed declaration is here struct libmnt_fs *fs, disk-utils/fsck.minix.c: In function 'main': disk-utils/fsck.minix.c:1364:17: warning: declaration of 'i' shadows a previous local [-Wshadow] unsigned long i, free; disk-utils/fsck.minix.c:1250:6: note: shadowed declaration is here int i; Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* libmount: add support for "bind,ro"Karel Zak2015-08-171-19/+16Star
| | | | | | | | | | | | | | Now it's necessary t use two mount(8) calls to create a read-only mount: mount /foo /bar -o bind mount /bar -o remount,ro,bind This patch allows to specify "bind,ro" and the remount is done automatically by libmount by additional mount(2) syscall. It's not atomic of course. Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'colcrt' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2015-08-122-2/+2
|\ | | | | | | | | | | | | | | | | | | * 'colcrt' of git://github.com/kerolasa/lelux-utiliteetit: tests: add colcrt regression tests colcrt: allocate enough space for data moves [afl & asan] colcrt: avoid writing beyond array bound [afl & asan] colcrt: use #define in place of magic constants misc: fix redundant assignment and reassignments before use [cppcheck] tools: stop checkmans.sh validating libtool builds
| * misc: fix redundant assignment and reassignments before use [cppcheck]Sami Kerola2015-08-082-2/+2
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | Merge branch 'patch-1' of https://github.com/borutmrak/util-linuxKarel Zak2015-08-121-2/+6
|\ \ | | | | | | | | | | | | | | | * 'patch-1' of https://github.com/borutmrak/util-linux: mount.8: also note diratime does not override noatime. mount.8: Clarify relation between noatime and nodiratime
| * | mount.8: also note diratime does not override noatime.Borut Mrak2015-08-111-0/+2
| | |
| * | mount.8: Clarify relation between noatime and nodiratimeBorut Mrak2015-08-111-2/+4
| |/ | | | | According to https://lwn.net/Articles/245002/ and checking Linus' git master fs/inode.c it's obvious nodiratime is redundant when mounting with noatime. Clarify that in the man page.
* / lsipc: add more resource to the limits listKarel Zak2015-08-121-12/+23
|/ | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: fix indention [smatch scan]Karel Zak2015-08-052-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* rtcwake: improve open() usage [coverity scan]Karel Zak2015-08-051-7/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: cleanup usernamesKarel Zak2015-08-041-70/+38Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: check scols_line_refer_data() return codeKarel Zak2015-08-041-6/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: don't duplicate already allocated dataKarel Zak2015-08-041-105/+81Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: ifdef SHM_* macrosKarel Zak2015-08-031-1/+8
| | | | | Reported-by: Andreas Henriksson <andreas@fatal.se> Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: remove angular brackets from literal argument in usage textBenno Schulenberg2015-08-031-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* mount: remove duplications of --help and --version from usage textBenno Schulenberg2015-08-031-5/+6
| | | | | | And slice up the affected portions. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* textual: adjust grammar and punctuation of some messagesBenno Schulenberg2015-08-032-6/+6
| | | | | | | Also equalize three messages to one other one, and fix a typo in USE_COLORS_BY_DEFAULT. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lsipc: cleanup {user,group}name usageKarel Zak2015-07-301-26/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: make static analyzes more happyKarel Zak2015-07-291-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: value is never read [clang analyze]Karel Zak2015-07-291-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* unshare: remove duplicate [make checkincludes]Karel Zak2015-07-291-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: make --id usable with all output formats and with -oKarel Zak2015-07-232-16/+23
| | | | | | | | | | | | | | This patch allows to use things like: # lsipc -m --id 47611910 -o COMMAND,SIZE,KEY --json or # lsipc -m --id 47611910 -o SIZE --bytes --noheadings --raw to get just one value for the resource. Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: the default --global is mutually exclusive with -c --id and -tKarel Zak2015-07-231-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: remove --print0 and -colon-separateKarel Zak2015-07-231-28/+8Star
| | | | | | | | These options have been originally designed for lslogins for compatibility another passwd-like tools. It does not make sense for IPC. Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: remove duplicate "Usage:"Karel Zak2015-07-231-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: tiny change about --global to the man pageKarel Zak2015-07-201-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: support <size>{K,M,G,...}Karel Zak2015-07-202-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: default to --globalKarel Zak2015-07-201-14/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: add USE% to --globalKarel Zak2015-07-201-3/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: use sub-table for semphore elementsKarel Zak2015-07-201-18/+73
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: improve JSON outputKarel Zak2015-07-201-4/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: move outmode to coltrol structKarel Zak2015-07-201-19/+13Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: fix coding styleKarel Zak2015-07-201-419/+419
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: differentiate between UID and USER namesKarel Zak2015-07-201-46/+95
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: fix ID parsing, use full time for pretty printKarel Zak2015-07-201-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: cleanup -o usageKarel Zak2015-07-201-94/+76Star
| | | | | | | * support -o+AAA,BBB,CCC * keep default resource columns in getopt switch() Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: improve --globalKarel Zak2015-07-201-110/+93Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: cleanup columns indexesKarel Zak2015-07-201-48/+65
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsipc: add COMMAND for shmemKarel Zak2015-07-201-1/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>