summaryrefslogtreecommitdiff
path: root/sys-utils
AgeCommit message (Collapse)AuthorFilesLines
2010-06-30ipcs: advise translators a different output formatFrancesco Cosoleto1-5/+19
Shared memory status output format need changes but there are backward compatibility problems. This is a invite to apply in translations the same style used for the rest of the summaries as well as for the limits reported by -l option. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-06-30lscpu: fix typo in lscpu.1Francesco Cosoleto1-1/+1
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-06-30lscpu: gettextize "CPU(s)"Francesco Cosoleto1-1/+1
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-06-15lscpu: fix typo, "faild" to "failed"Benno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2010-06-14messages: gettextize a few skipped or forgotten onesBenno Schulenberg2-4/+4
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2010-06-14textual: fix typos, and rephrase some things for clarityBenno Schulenberg1-1/+1
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2010-06-01ipcs: reorganize help and usage textsFrancesco Cosoleto1-14/+28
Help text old version: ipcs provides information on ipc facilities for which you have read access. Resource Specification: -m : shared_mem -q : messages -s : semaphores -a : all (default) Output Format: -t : time -p : pid -c : creator -l : limits -u : summary -i id [-s -q -m] : details on resource identified by id usage : ipcs -asmq -tclup ipcs [-s -m -q] -i id ipcs -h for help. New version: Usage: ipcs [resource]... [output-format] ipcs [resource] -i id Provide information on IPC facilities for which you have read access. -h display this help -i id print details on resource identified by id Resource options: -m shared memory segments -q message queues -s semaphores -a all (default) Output format: -t time -p pid -c creator -l limits -u summary Usage text old version: usage : ipcs -asmq -tclup ipcs [-s -m -q] -i id ipcs -h for help. New version: Usage: ipcs [-asmq] [-t|-c|-l|-u|-p] ipcs [-s|-m|-q] -i id ipcs -h for help [kzak@redhat.com: - use program_invocation_short_name - minor cleanups] Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01ipcs: add missing "PIDs" to related shared memory header textFrancesco Cosoleto1-1/+1
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-06-01ipcs: get rid of colons from header strings for consistencyFrancesco Cosoleto1-3/+3
This changes output of -u, -l, and -c. Example of non consistent output: $ ipcs -u | grep ^--- ------ Shared Memory Status -------- ------ Semaphore Status -------- ------ Messages: Status -------- Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-06-01lscpu: use cpuset masks, read data for all CPUsKarel Zak3-201/+285
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01lscpu: improve --sysroot codeKarel Zak1-35/+73
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01lscpu: cleanup used namesKarel Zak1-114/+115
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-06-01lscpu: cleanup path_scanstr()Karel Zak1-8/+33
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-24build-sys: replace ../ with $top_srcdirKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-18rdev: remove this deprecated commandKarel Zak4-504/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-14Merge remote branch 'origin/master' into HEADLaMont Jones10-84/+185
Conflicts: lib/fsprobe.c mount/lomount.c
2010-05-14fallocate: check for number of argumentsKarel Zak1-0/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-14fsfreeze: new commandHajime Taira4-2/+210
[kzak@redhat.com: - cleanup - add long options - add note about DM to the man page - use err.h and nls.h] Signed-off-by: Hajime Taira <htaira@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-05-06unshare: drop potential euid privileges before execKarel Zak2-0/+10
This patch drops potential euid privileges before executing the target program. This allows to setuid unshare. The unshare(1) is still distributed as non-setuid program. Based on patch from Martin Pohlack <mp26@os.inf.tu-dresden.de>. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-23rtcwake: add disable action to rtcwake man pageMarek Otahal1-0/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-23rtcwake : add disable action for rtc alarmMarek Otahal1-1/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-08rtcwake: add --dry-run optionKarel Zak2-19/+37
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-04-08rtcwake: does miss the "off" optionKarel Zak1-5/+19
Reported-by: Piergiorgio Sartor <piergiorgio.sartor@nexgo.de> Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=580296 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-30fallocate: support suffixes for --offset and --lenghtKarel Zak3-40/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-01lscpu: fix cpuid opcode detectionHenne Vogelsang1-1/+1
Fixes commit c9239f23acdc8b50f8bcbfadf967c6a490fd4693. The author didn't care for matching constraints when resorting the register constraints. The eax register (with the cpuid opcode) is now in operand 1, not zero anymore. Signed-off-by: Henne Vogelsang <hvogel@opensuse.org>
2010-03-01ldattach: prints help to stdoutKarel Zak1-5/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-01ldattach: add --iflag command line optionTilman Schmidt2-4/+68
Add a command line option '-i' / '--iflag' for setting or clearing input flags on the serial device before attaching the line discipline. [kzak@redhat.com: - use generic functions for work with iflags table - add list of iflags to usage/help output - move iflags parsing to separate function] Impact: added functionality Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-03-01ldattach: create a generic functions for name=value tablesKarel Zak1-14/+29
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-01-18Merge commit 'v2.17'LaMont Jones1-0/+35
2010-01-07lscpu: add {32,64}-bit CPU modes detectionKarel Zak1-0/+35
This patch add "CPU op-mode(s):" field that prints all supported CPU operation modes. The field is based on CPU flags: rm (real mode) 16-bit tm (transparent mode) 32-bit lm (long mode) 64-bit Example: $ lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit CPU(s): 2 Thread(s) per core: 1 Core(s) per socket: 2 CPU socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 Model: 15 Stepping: 11 CPU MHz: 1600.000 Virtualization: VT-x L1d cache: 32K L1i cache: 32K L2 cache: 4096K Signed-off-by: Karel Zak <kzak@redhat.com>
2009-12-21Merge remote branch 'origin/master'LaMont Jones1-1/+9
2009-12-07flock: fix hang when parent ignores SIGCHLDMike Frysinger1-1/+9
If flock is executed from a process which has set SIGCHLD to SIG_IGN, then flock will eat cpu and hang indefinitely if given a command to execute. So before we fork(), make sure to set SIGCHLD handling back to the default so that the later waitpid() doesn't freak out on us. [kzak@redhat.com: - add a check for waitpid() return value] Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-27Merge remote branch 'origin/master'LaMont Jones2-76/+18
2009-11-20switch_root: add note about subroots to switch_root.8Karel Zak1-0/+13
Based on patch from Daniel Drake <dsd@laptop.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-11-20Revert "switch_root: add subroot support"Karel Zak1-76/+5
This reverts commit a692a8745941a192528c5e2a05de97155ba586f9. On Wed, Nov 18, 2009 at 03:33:12PM +0000, Daniel Drake wrote: > Booting into a system this way just leads to problems because > you cannot remount the root read-only at shutdown (leading to unclean > shutdowns). > Miklos Szeredi pointed out a trick to turn any directory into a > mount point which avoids this problem. Therefore we can simplify > switch_root again and simply document that its users should set
2009-10-19dmesg: fix typo in man pageKen Kopin1-1/+1
Signed-off-by: LaMont Jones <lamont@debian.org>
2009-10-19Fix typo in dmesg manpage.Ken Kopin1-1/+1
Signed-off-by: LaMont Jones <lamont@debian.org>
2009-10-19Merge remote branch 'origin/master'LaMont Jones1-4/+1
Conflicts: mount/lomount.c
2009-10-16ldattach: use c.hKarel Zak1-4/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-10Merge remote branch 'origin/master'LaMont Jones8-18/+194
2009-10-09switch_root: remove TIOCSCTTY and setsid()Karel Zak1-7/+0
requested by dracut developers because: bash: cannot set terminal process group (-1): Inappropriate ioctl for device Addresses-Red-Hat-Bug: #519237 Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-09ipcs: use __GLIBC__ instead of obsolete __GNU_LIBRARY__Guillem Jover1-3/+1
The latter is obsolete and it's currently defined to 6 for historical reasons (as per comment in <features.h>) instead of 2 as what would be expected. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2009-10-09build-sys: check for union semun instead of using _SEM_SEMUN_UNDEFINEDGuillem Jover2-6/+2
Older versions of glibc used to declare ‘union semun’ in <sys/sem.h>, but POSIX.1-2001 requires the caller to declare it instead. Later versions of glibc started defining _SEM_SEMUN_UNDEFINED to note that the union was not being declared, but conforming systems are not required to define that macro (e.g. FreeBSD). As a side effect we get rid of some obsolete __GNU_LIBRARY__ macro usage. [kzak@redhat.com: - use #ifndef] Signed-off-by: Guillem Jover <guillem@hadrons.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06fallocate: check for ERANGE errorsKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06build-sys: cleanup --disable-{fallocate,pivot_root,unshare}Karel Zak1-2/+2
* add --disable-fallocate * add --disable-pivot_root * cleanup --disable-unshare Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06unshare: new commandMikhail Gusarov4-0/+183
New utility allows to run process with separate mount, UTC, IPC or network namespaces. [kzak@redhat.com: - some cosmetic changes in usage() and err() usage - move "if BUILD_UNSHARE" to separate place in Makefile.am - add unshare to .gitignore] Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-26Merge commit 'origin/master'LaMont Jones4-0/+230
2009-09-22fallocate: new commandKarel Zak4-0/+230
The fallocate(1) utility is used to preallocate blocks to a file. This can be useful for virtual images, database files, testing, etc. Normally we'd hope that various tools will start using preallocation internally, but until then such a utility may be useful, and could be scripted as well. The original Eric's version is available at: http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490 This version: - checks for fallocate glibc function and kernel syscall - does not provide a fallback and does not call posix_fallocate() - adds long options - uses err.h for errro messages - adds NLS support - cleanups man page Co-Author: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16Merge commit 'origin/master'LaMont Jones2-2/+28
2009-09-07rtcwake: ignore the tm_isdst field returned from the RTCPaul Fox1-1/+1
Signed-off-by: Paul Fox <pgf@laptop.org>