summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-29Merge remote branch 'origin/master'LaMont Jones334-38860/+47012
Conflicts: login-utils/Makefile.am mount/lomount.c text-utils/od.1
2010-12-27fsck: returns proper code on exec() errorKarel Zak1-4/+6
# fsck -t foo /dev/sda1; echo $? fsck: fsck.foo: not found /sbin/fsck: Error 2 while executing fsck.foo for /dev/sda1 0 new version: # fsck -t foo /dev/sda1; echo $? fsck: fsck.foo: not found fsck: Error 2 while executing fsck.foo for /dev/sda1 8 Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=619139 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-26lsblk: rename "RA" column to "RE"Karel Zak1-4/+4
The RA abbreviation is usually used for readahead, the column in lsblk(8) means removable. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-17fdisk: use canonicalized names for -l (and sfdisk -d)Karel Zak4-23/+32
.. no more /dev/dm-X in "fdisk -l" and "sfdisk -d" output, always use /dev/mapper/<name>. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-17swpaon: use canonicalized devnames on -s outputKarel Zak1-10/+28
Old version Filename Type Size Used Priority /dev/sda3 partition 2353516 76 -1 /dev/dm-1 partition 409596 0 -2 New version: Filename Type Size Used Priority /dev/sda3 partition 2353516 76 -1 /dev/mapper/VUL-lvol0 partition 409596 0 -2 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-17swapon: Canonicalize swap deviceAlexey Gladkov1-1/+7
Swapon checks whether a swap device is active by searching for the device name in /proc/swaps. /proc/swaps always specifies the path to real device file, even if the path to real device file, even if symlink was passed to the swapon() system call. This differs from /proc/mounts semantics where each string contains exactly the same device name as it was passed to the mount*() system call. If a swap partition resides on lvm, libblkid returns a name in form /dev/mapper/*, but now there are symlinks pointing to device files /dev/dm-*, resulting to /proc/swaps containing /dev/dm-*, but swapon still looks for /dev/mapper/* and tries to activate the swap partition again. [kzak@redhat.com: - remove unnecessary changes from is_in_proc_swaps()] Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com> Tested-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-16lsblk: add --nodepsKarel Zak2-1/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-16lib: [tt] fix alignment of the last tree childKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10mesg: change error exit code from 1 to >1Francesco Cosoleto1-9/+15
According to POSIX and mesg(1) error exit code should be >1. Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-12-10docs: update DEPRECATED fileKarel Zak1-4/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10simpleinit: move old init stuff to separate directoryKarel Zak17-37/+41
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10docs: update TODO fileKarel Zak1-2/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10vipw: fix warn_unused_result gcc warningKarel Zak1-1/+3
vipw.c:194:6: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10fix __noreturn__ usageKarel Zak6-10/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10chfn: Use EXIT_* and err()Marek Polacek1-82/+45
[kzak@redhat.com: - clean usage() calls and some error messages] Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-12-10wall: fix coding styleKarel Zak1-12/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10wall: remove prognameKarel Zak1-9/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10wall: Use EXIT_* and err()Marek Polacek1-25/+18
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-12-10vipw: use EXIT_* and err()Marek Polacek1-22/+22
[kzak@redhat.com: - fix one error message] Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10simpleinit: Use EXIT_*Marek Polacek1-6/+6
[kzak@redhat.com: use the main() part of the patch] Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10shutdown: Use EXIT_*Marek Polacek1-36/+29
Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10docs: update TODO fileDavidlohr Bueso2-8/+1
Here's a patch to update some the TODO list now that the new partx is merged. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-12-10login: fix "ignoring return value" errorsKarel Zak1-10/+26
login.c:542:8: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result login.c:1013:11: warning: ignoring return value of ‘fchown’, declared with attribute warn_unused_result login.c: In function ‘dolastlog’: login.c:1452:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result login.c: In function ‘motd’: login.c:1391:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10login: use EXIT_* and err.h, clean up return codesMarek Polacek1-49/+41
[kzak@redhat.com: - cleanup return codes - use warn()] Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10last: Use EXIT_* and err()Marek Polacek1-19/+23
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-12-10login: use EXIT_* in checktty()Karel Zak1-5/+5
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-10chsh: use EXIT_* and err.hKarel Zak1-95/+59
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09sfdisk: add option to use maximum partition sizeKarel Zak2-1/+5
Based on patch from Alex Bligh <alex@alex.org.uk>, Alex wrote: By default, omitting a size parameter means that the maximum sized partition is used. However, this option is not available in conjunction with the -N flag, as under such circumstances the default is the current size of the partition. This patch allows a size to be specified as "+" in which case the maximum sized partition is used, irrespective of the setting of the -N flag. This allows partitions to be programatically resized to their maximum size, by (for instance): echo ",+," | sfdisk -N1 /dev/sda This is non-trivial to do without the patch, as -N makes the default size the existing size. As there is (without this patch) no way of reading the maximum size, the only option is to delete the partition and recreate it. This is undesirable for a number of reasons (e.g. errors between delete and recreate). Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/686124 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09renice: improve messages specifying what ID is referring toFrancesco Cosoleto1-5/+11
Hello, On 30/11/2010 13:01, Karel Zak wrote: > Unfortunately, translators don't like this kind of strings where any > translatable substring is inserted to the normal sentence. It would be > better to use something like: > > "%d (%s): failed to set priority", who, idtype > > "%s: %d: failed to set priority", idtype, who > > or so... or "failed to set priority for %d (%s)"? From 536eb11f873f2c887e075a37ffb3c971cac258d5 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto <cosoleto@gmail.com> Date: Mon, 6 Dec 2010 01:23:10 +0100 Subject: [PATCH] renice: improve messages specifying what ID is referring to This version makes more clear the printed message specially when the --user option is used. Old version: $ renice 19 10 -u fra -g 1 renice: 10: setpriority: Operation not permitted renice: 1000: setpriority: Operation not permitted renice: 1: setpriority: Operation not permitted $ renice 19 -u fra 1000: old priority 0, new priority 19 New version: $ renice 19 10 -u fra -g 1 renice: failed to set priority for 10 (process ID): Operation not permitted renice: failed to set priority for 1000 (user ID): Operation not permitted renice: failed to set priority for 1 (process group ID): Operation not permitted $ renice 19 -u fra 1000 (user ID) old priority 0, new priority 19 Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-12-09partx: tiny change in usage()Karel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: cleanup and add columnsKarel Zak1-13/+31
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09tests: add regression testsDavidlohr Bueso7-0/+61
Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09delpart: code consolidationKarel Zak1-20/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09addpart: code consolidationKarel Zak1-21/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09partx: complete rewriteDavidlohr Bueso19-2130/+955
Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-06mount: be more explicit about --move in mount.8Karel Zak1-3/+18
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-03libblkid: NTFS volume label not foundKarel Zak1-1/+1
Reported-by: Hugh Eaves <hugh@hugheaves.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-03ipc: remove .info fileKarel Zak1-1107/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-02build-sys: add mesg to .gitignoreKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-02agetty: Use EXIT_* and add noreturn attributeMarek Polacek1-12/+10
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-12-02mesg: Use EXIT_* and discard K&R style declaration.Marek Polacek1-24/+22
[kzak@redhat.com: - use return rather than exit() in main() - more verbose error messages] Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-02newgrp: Use err() and EXIT_*Marek Polacek1-28/+19
Use err() or errx() where appropriate. Also use EXIT_* macros instead of 0/1. All error messages shall start with lowercase. Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-02README: fix typoDavidlohr Bueso1-1/+1
Change feture for feature Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-12-01mount: read /sys for loopdev backing fileKarel Zak3-3/+61
On systems without /etc/mtab (or everywhere if kernel >= 2.6.37) we use loop autoclear flag and then the backing file name is not stored in /etc/mtab. mount(8) uses sysfs to get the filename (or LOOP_GET_STATU* ioctls on old kernels). Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-01remove -ng from some filesKarel Zak4-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-01losetup: use /sys/dev/block/.../loop/backing_fileKarel Zak3-1/+64
The basic loopdev attributes are available in sysfs since kernel 2.6.37. This patch uses the backing_file attribute from sysfs for very long filenames (the LOOP_GET_STATUS ioctl uses only 64 bytes for the filename). old version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_*) new version: # losetup -a /dev/loop0: [0804]:12865322 (/home/images/filesystems/this_is_really_really_long_directory_name/ext2.img) Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-01lscpu: use GPLv2+Karel Zak1-4/+5
CAI Qian and I agree that GPLv2+ is better for lscpu.c. This license is more compatible (than v3) with the rest of the util-linux package. We need to link the code with functions from lib/ -- mix GPLv3 and GPLv2 is bad idea. Note that it was only Cai and I who did significant changes to lscpu.c, all others changes from others developers was trivial (fix typos, add _(), ...). Signed-off-by: CAI Qian <caiqian@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30docs: update TODO fileKarel Zak1-0/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30last: use xalloc libDavidlohr Bueso1-12/+4
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-30login: use xalloc libDavidlohr Bueso1-7/+2
Signed-off-by: Davidlohr Bueso <dave@gnu.org>