summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* tests: refresh Makefile.am (add missing lscpu tests)Karel Zak2008-10-221-1/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu(1) test for fullvirt. Xen x86_64Karel Zak2008-10-2219-0/+86
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu(1) test for paravirt. Xen i386Karel Zak2008-10-2217-0/+72
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add mk-lscpu-input.shKarel Zak2008-10-222-0/+49
| | | | | | | This script makes a copy from system /proc and /sys. The result is useful for lscpu(1) regression tests. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add Hypervisor detectionKarel Zak2008-10-222-20/+166
| | | | | | | | | | | | | | | This patch adds two new fields: * "Hypervisor vendor" -- based on CPUID and hypervisor specific PCI devices. lscpu(1) supports KVM, XEN, Microsoft HV now. * "Virtualization type" - "none" = Xen dom0 - "full" = full virtualization (KVM, Xen, ...) - "para" = Xen paravirtualization Co-Author: Ky Srinivasan <ksrinivasan@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODO listKarel Zak2008-10-161-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: remove "cli" and "sti" from i386 CMOS codeKarel Zak2008-10-161-25/+4Star
| | | | | | | | | | The protection against context switch is nonsense. There is possible to optimize the access to CMOS by mlockall(MCL_CURRENT) and SCHED_FIFO. For more details see: http://lkml.org/lkml/2008/10/12/132 Reported-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: fix exit codes, remove tailing white-spacesKarel Zak2008-10-071-76/+61Star
| | | | | Addresses-Red-Hat-Bugzilla: #465911 Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txtKarel Zak2008-10-061-9/+62
| | | | | Addresses-Red-Hat-Bugzilla: #465761 Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txtKarel Zak2008-10-061-6/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: suggest partprobe(8) and kpartx(8) when BLKRRPART failedVincent Deffontaines2008-10-066-25/+33
| | | | | | Signed-off-by: Vincent Deffontaines <vincent@gryzor.com> Signed-off-by: Karel Zak <kzak@redhat.com> Co-Author: Karel Zak <kzak@redhat.com>
* mount: remove link to namesys.comKarel Zak2008-10-031-2/+0Star
| | | | | | | | | | Ricardo Catalinas Jiménez wrote: In the man page mount(8) there is the url "http://www.namesys.com/mount-options.html". The web site has been down for a long time and the Namesys company is trying to be sold. Reported-By: Ricardo Catalinas Jiménez <jimenezrick@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* pg: several strings without gettext callsPedro Ribeiro2008-10-031-5/+5
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* readprofile: several strings without gettext callsPedro Ribeiro2008-10-031-3/+3
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: several strings without gettext stringsPedro Ribeiro2008-10-031-4/+4
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* logger: several strings without gettext callsPedro Ribeiro2008-10-031-3/+3
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* login-utils: several strings without gettext callsPedro Ribeiro2008-10-034-16/+19
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: several strings without gettext callsPedro Ribeiro2008-10-032-12/+12
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: several strings without gettext callsPedro Ribeiro2008-10-034-9/+9
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* raw: add NLS supportPedro Ribeiro2008-10-031-35/+40
| | | | | | | | [kzak@redhat.com: - add setlocale(), ... - remove tailing white spaces] Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mkfs.cramfs: several strings without gettext callsPedro Ribeiro2008-10-031-2/+2
| | | | | Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: add NLS supportPedro Ribeiro2008-10-031-56/+60
| | | | | | | [kzak@redhat.com: - add setlocale(), ...] Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* elvtune: add NLS supportPedro Ribeiro2008-10-031-5/+9
| | | | | | | [kzak@redhat.com: - add missing setlocale(), ...] Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: mtab created multiple times with -a optionKarel Zak2008-10-011-2/+5
| | | | | | | | | | | | | | When /etc/mtab does not exist and mount is called with -a, for every mount point that is mounted a root-fs record is added to mtab. This is because get_mtab_info() sets the flag mtab_does_not_exist to 1 when it doesn't find /etc/mtab. However, if it actually finds /etc/mtab, the variable is not reset to 0. So on every subsequent call to get_mtab_info() (as it is the case when mounting several mount points with the -a option), mount will think that /etc/mtab does not exist, even if it was created in the meantime by mount itself. Reported-By: Jonas Kramer <jkramer@nex.scrapping.cc> Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: missing EBUSY error hint messageKarel Zak2008-09-301-5/+16
| | | | | | | | | | | | | | | old version: # losetup /dev/loop0 /foo.img # losetup /dev/loop0 /bar.img; echo $? 2 new version: # losetup /dev/loop0 /foo.img # losetup /dev/loop0 /bar.img; echo $? losetup: /dev/loop0: device is busy 2 Signed-off-by: Karel Zak <kzak@redhat.com>
* login: fix compiler warning (int32 time() arg)Karel Zak2008-09-291-1/+7
| | | | | | | | | | | | | | | | | login.c: In function ‘dolastlog’: login.c:1438 warning: passing argument 1 of ‘time’ from incompatible pointer type Unfortunately, on-disk lastlog format is always 32bit, bits/utmp.h: struct lastlog { #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32 int32_t ll_time; #else __time_t ll_time; #endif Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.cramfs: fix compiler warningKarel Zak2008-09-291-1/+1
| | | | | | | fsck.cramfs.c: In function ‘main’: fsck.cramfs.c:676 warning: ‘length’ may be used uninitialized in this function Signed-off-by: Karel Zak <kzak@redhat.com>
* umount: no checking mount point removalSigned-off-by: Guan Xin2008-09-291-25/+4Star
| | | | | | | | | | | No longer checks if mount point has been renamed or removed. Linux reports EBUSY for these actions, so this check is redundant. [kzak@redhat.com: - remove the check rather than "#if 0" - remove unnecessary mnt_err2 stuff] Signed-off-by: Guan Xin <guanx.bac@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix typoGuan Xin2008-09-291-1/+1
| | | | Signed-off-by: Guan Xin <guanx.bac@gmail.com>
* umount: check for overlaid mountsGuan Xin2008-09-291-1/+20
| | | | | | | | | | Linux cannot umount a device whose mount point is hidden by subsequent mount(s). i.e. We must umount the devices associated to a mount point in the reverse order of when they were mounted. If umount was called violating this rule, report error and exit. Signed-off-by: Guan Xin <guanx.bac@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add info about /proc/mounts to mount.1Karel Zak2008-09-291-1/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix typoKarel Zak2008-09-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: add NLS support, clean error messages and return codesKarel Zak2008-09-231-105/+69Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* chrt: support CFS SCHED_IDLE priority and document itMartin Steigerwald2008-09-232-3/+33
| | | | | Signed-off-by: Martin Steigerwald <ms@teamix.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: add -luuid to BLKID_LIBSKarel Zak2008-09-171-1/+1
| | | | | | | | The libblkid is always linked with libuuild, so this indirect dependence in BLKID_LIBS is not a problem. This change helps to people who compile util-linux-ng with non-standard prefix, ..etc. Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: don't redeclare daddr_tmaximilian attems2008-09-161-2/+1Star
| | | | | | | | klibc porting fix, use proper include, nuke redefinition. solaris.c:8: error: redefinition of typedef ‘daddr_t’ /usr/lib/klibc/include/sys/types.h:29: error: previous declaration of ‘daddr_t’ was here Signed-off-by: maximilian attems <max@stro.at>
* ipcmk: add NLS supportKarel Zak2008-09-102-10/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: fix error codes and error messagesKarel Zak2008-09-101-14/+32
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcmk: new commandHayden James2008-09-106-3/+185
| | | | | | | | | | | Small patch to create an application that can easily create ad-hoc ipc resources, along with man page. [kzak@redhat.com: - rename from ipccreat to ipcmk - minor coding style changes] Signed-off-by: Hayden James <hayden.james@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: add strtol() checks, cleanup usage text and man pageKarel Zak2008-09-062-21/+45
| | | | | | | | | | | | | | | | | | | * cleanup usage() output * check strtol(); don't ignore wrong command line options The original ionice design was a little broken, because it was possible to specify a PID and also a COMMAND: ionice -c2 -p 123 /bin/foo but the command /bin/foo was executed without requested scheduling class. That's stupid behaviour. Now you have to use "-p PID" **or** COMMAND, but not both. Nothing is ignored and all options are checked. Signed-off-by: Karel Zak <kzak@redhat.com>
* ionice: let -p handle multiple PIDsStephan Maka2008-09-052-30/+57
| | | | | | | | | | Makes ionice -p usable like renice, this time backwards compatible [kzak@redhat.com: - fix coding style - add ioprio_setpid()] Signed-off-by: Stephan Maka <stephan@spaceboyz.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* login: fix warning "dereferencing type-punned pointer will break ↵Karel Zak2008-09-011-4/+17
| | | | | | | | | strict-aliasing rules" This patch fix problems with odd pam_get_iten( ..., void **) API. (tested by gcc-4.1.2-42.el5.i386) Signed-off-by: Karel Zak <kzak@redhat.com>
* losetup: remove dependence on minor numbersKarel Zak2008-08-211-0/+4
| | | | | | | | | | | The latest kernel supports partitioned loop devices (kernel commit 476a4813cfddf7cf159956cc0e2d3c830c1507e3). Unfortunately, this change makes minor numbers useless, because mirror number does not match with loop device name (loop<N>). We have to follow loop device names only. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: round reported sizes rather than truncateKarel Zak2008-08-201-4/+8
| | | | | | | | | | | | | Exmaples (-old, +new): - Disk /dev/mapper/bar: 266.6 GB, 266666666496 bytes + Disk /dev/mapper/bar: 266.7 GB, 266666666496 bytes - WARNING: The size of this disk is 2.1 TB (2199023255552 bytes). + WARNING: The size of this disk is 2.2 TB (2199023255552 bytes). Reported-by: Stepan Kasal <skasal@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* ipcs: adjust some field positions and widths for correct alignmentBenno Schulenberg2008-08-201-5/+5
| | | | | | | | | | [kzak@redhat.com: - note that "ipcs -m -t" did not work correctly on terminal with 80 columns - the change of output alignment should be mentioned in the Release Notes] Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* ipcs: ungettextize the spacing of the table headersBenno Schulenberg2008-08-201-15/+15
| | | | | | | | It makes no sense to allow translators to adjust the spacing when they cannot adjust the spacing of the actual data too. Adjusting such spacing is not really a translator's task. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* fdisk: don't check for GPT when asked for disk size onlyKarel Zak2008-08-191-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: warn users about 2.2TB dos partition limitKarel Zak2008-08-191-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* swapon: -a has to complain, fix leaksKarel Zak2008-08-191-15/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The "swapon -a" command (without "-e" option) has to complain always when LABEL or UUID does not exist. Test: # grep foo /etc/fstab LABEL=foo swap swap defaults 0 0 Old version: # swapon -a; echo $? 0 Fixed version: # swapon -a; echo $? swapon: cannot find the device for LABEL=foo 255 # swapon -a -e; echo $? 0 This version also fix two memory leaks. Signed-off-by: Karel Zak <kzak@redhat.com>
* hwclock: don't open /dev/rtc repeatedlyKarel Zak2008-08-181-22/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>