summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-30rename util-linux-ng back to util-linuxKarel Zak185-1650/+1970
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30libblkid: add LINHIB0001 signature to swap proberKarel Zak2-1/+14
The new swsuspend signature has been added by commit 3624eb04c24861ab296842414f9752a393e68372 to kernel 2.6.37-rc1. Reported-by: "Dr. David Alan Gilbert" <linux@treblig.org> Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/682176 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-29fdisk: fix freespace boundaries calculation on SGI disklabelKarel Zak1-0/+3
Thanks to Aurelien Jarno <aurelien@aurel32.net> Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510130 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-29fstrim: fix typoKarel Zak1-1/+1
Reported-by: Jeroen Oortwijn <oortwijn@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-29libblkid: remove unnecessary __UCLIBC__ checkMike Frysinger1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-26rtcwake: use err.h routinesKarel Zak2-71/+58
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-26rtcwake: add 'show' mode for rtc alarmMarek Otahal2-20/+94
The 'show' mode prints information on current alarm setting. [kzak@redhat.com: - code clean up - don't setup alarm on 'disable' mode] Signed-off-by: Marek Otahal <markotahal@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-26fstrim: add new commandLukas Czerner4-3/+242
fstrim is used on a mounted filesystem to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-26libblkid: 256MiB is min size of btrfsKarel Zak1-0/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24fallocate: fix typoKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24build-sys: fix lsblk buildingKarel Zak2-9/+14
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lsblk: add new utilityMilan Broz4-2/+1138
Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [strutils] move strmode() from namei.c to strutils.cKarel Zak4-36/+47
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [xalloc] add xstrdup()Karel Zak2-9/+9
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24findmnt: apply new changes from tt.cKarel Zak1-42/+16
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [tt] add TT_FL_RIGHT, add columns list parserKarel Zak2-11/+65
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-24lib: [ismounted] don't wast time with mtab is /proc/mounts usedKarel Zak1-0/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23libblkid: remove unused variableKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23docs: update TODO fileKarel Zak1-5/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23lib: [strutils] general purpose string handling functionsDavidlohr Bueso35-182/+139
This patch replaces a few functions used throughout the source: * Renames getnum (from schedutils) to strtol_or_err * Moves strtosize (from lib/strtosize.c) * Moves xstrncpy (from include/xstrncpy.h) * Adds strnlen, strnchr and strndup if not available (remove it from libmount utils) A few Makefile.am files were modified to compile accordingly along with trivial renaming in schedutils source code. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-23libblkid: cache is incorrectly revalidatedKarel Zak2-6/+5
for example: # echo "password" | cryptsetup luksFormat /dev/loop7 # blkid /dev/loop7 /dev/loop7: UUID="09240a80-1cf1-456d-9a6e-a35b39dc1f2b" TYPE="crypto_LUKS" # pvcreate -ff /dev/loop7 # blkid /dev/loop7 # the second blkid call has to return info about LVM. Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-23mount: mark die() as nonreturnKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-19mount: ignore *context= options on remountKarel Zak1-3/+59
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=563267 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-16mount: update relatime description in mount.8Karel Zak1-0/+9
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=653705 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15agetty: use nl_langinfo()Karel Zak2-9/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15cal: follow HAVE_LANGINFOKarel Zak2-20/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15findmnt: follow HAVE_LANGINFOKarel Zak3-7/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15lib: add fallback for nl_langinfo()Karel Zak3-1/+200
The fallback ignores locales and returns hardcoded static strings. It should be enough to include "nls.h" to work with nl_langinfo() on all systems. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15lib/tt: fix langinfo build breakDavidlohr Bueso1-1/+1
When HAVE_LANGINFO_H is not defined we break the compilation in tt.c: CC tt.o tt.c: In function ‘tt_new_table’: tt.c:142: warning: implicit declaration of function ‘nl_langinfo’ tt.c:142: error: ‘CODESET’ undeclared (first use in this function) tt.c:142: error: (Each undeclared identifier is reported only once tt.c:142: error: for each function it appears in.) make: *** [tt.o] Error 1 Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-15libblkid: add blkid_probe_get_sectors()Davidlohr Bueso4-0/+14
This function allows users to obtain the device's 512-byte sector count. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-15hwclock: [m68k] unbreak FTBFS with recent (>= 2.4.18?) kernelsThorsten Glaser2-25/+19
The old KDGHWCLK ioctl was removed from the Linux kernel quite some time ago. The kd.c source file of hwclock contains fallback code to handle this, but the fallback code never could have compiled or was not fixed along other code changes. The Linux kernel nowadays igno- res the ioctl entirely so removing it unless provided by the kernel headers, to keep it working on very old kernels, seems the sensible thing to do, as the comments say m68k only and deprecated (which is correct AFAICT). According to pickaxe on gitweb, it was removed in 2002: http://git.kernel.org/?p=linux/kernel/git/torvalds/old-2.6-bkcvs.git;a=commit;h=a915e414af5fc541ff62ef0bfec847457ae650bc Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578168 Signed-off-by: Thorsten Glaser <tg@mirbsd.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-10swapon: better text for "discard", note about swapon in fstab.5Karel Zak2-4/+7
Suggested by Hugh Dickins. Thanks. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-09docs: remove ipc.texi (info with IPC API docs)Karel Zak2-1315/+0
The IPC API documentation is maintained in the standard man-pages. It does not make sense to maintain this docs in util-linux-ng. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-08libblkid: add magic to vfatJeroen Oortwijn1-0/+1
Add the "FAT " magic to vfat. There are devices that use this magic in their FAT filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/491476 Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
2010-11-04column: segfault on empty inputKarel Zak1-2/+4
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=579955 Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-01sys-utils: make use xalloc wrappersDavidlohr Bueso4-52/+21
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01libblkid: add signature to FAT32 fsinfo blockJeroen Oortwijn1-0/+1
Add 0x41645252 to the list of valid signatures of the FAT32 fsinfo block. It isn't a valid signature, but there are devices that use this signature in their FAT32 filesystem. Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/589369 Signed-off-by: Jeroen Oortwijn <oortwijn@gmail.com>
2010-11-01swapon: add "discard" supportHugh Dickins2-12/+39
In kernel 2.6.36 (and in stable kernel 2.6.35.5) I made a tiny change to the swapon(const char *path, int swapflags) system call interface: kernel commit 3399446632739fcd05fd8b272b476a69c6e6d14a swap: discard while swapping only if SWAP_FLAG_DISCARD As things stand at present, we could just remove the swap discard support; but since several filesystems (including ext4 and btrfs and fat) are offering a "discard" mount option, I thought swap should take the same course, and offer a "--discard" or "-d" option to swapon(8). [kzak@redhat.com: - update swapon.8 man page - use for -d the same logic as for -p] Signed-off-by: Hugh Dickins <hughd@google.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-01rev: use xalloc for memory allocationDavidlohr Bueso1-3/+2
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01ul: use xalloc for memory allocationDavidlohr Bueso1-7/+4
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01col: use err.h and EXIT_* macrosKarel Zak1-27/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-01col: use xalloc for memory allocationDavidlohr Bueso1-27/+11
Differentiate between malloc and realloc (not done so far) and get rid of local warn() Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01tailf: use xalloc for memory allocationDavidlohr Bueso1-2/+3
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01more: use xalloc for memory allocationDavidlohr Bueso1-10/+6
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-11-01pg: use xalloc for memory allocationDavidlohr Bueso1-17/+3
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2010-10-29mount: use utimensat(AT_FDCWD) rather than open()+futimens()Karel Zak1-10/+3
Thanks to Kay Sievers. Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-29docs: add note about agetty to TODOKarel Zak1-1/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-29remove free() from atexit() callbacksKarel Zak2-13/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-10-29chrt: Add noreturn attribute to show_usage() functionMarek Polacek1-1/+1
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>
2010-10-29use _exit() instead of exit() in sighandlersMarek Polacek5-5/+5
Signed-off-by: Marek Polacek <mmpolacek@gmail.com>