]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
14 years agoddate: remove non-ascii chars from ddate
Karel Zak [Fri, 18 Mar 2011 09:25:42 +0000 (10:25 +0100)] 
ddate: remove non-ascii chars from ddate

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotailf: support --lines 0
Karel Zak [Fri, 18 Mar 2011 08:52:07 +0000 (09:52 +0100)] 
tailf: support --lines 0

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: rename mount option "quiet" to "silent"
Karel Zak [Fri, 18 Mar 2011 08:21:32 +0000 (09:21 +0100)] 
libmount: rename mount option "quiet" to "silent"

 See commit 2ac1890aa0d8ce404528587134fcabe0e2834963.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: check index before access to array [coverity scan]
Karel Zak [Thu, 17 Mar 2011 21:58:05 +0000 (22:58 +0100)] 
fdisk: check index before access to array [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add blkid_evaluate_spec()
Karel Zak [Thu, 17 Mar 2011 11:51:06 +0000 (12:51 +0100)] 
libblkid: add blkid_evaluate_spec()

The function blkid_evaluate_tag() is useful for tags only (e.g.
LABEL=foo). But we also need to address devices by tags OR paths in
many utils.

The function blkid_evaluate_spec() support this functionality without
extra care about the way how device is addressed. The tags as well as
paths are converted to the standardized device path.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [fsprobe.c] remove obsolete <blkid/blkid.h>
Karel Zak [Wed, 16 Mar 2011 16:48:47 +0000 (17:48 +0100)] 
lib: [fsprobe.c] remove obsolete <blkid/blkid.h>

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: don't use HAVE_LIBBLKID_INTERNAL macro
Karel Zak [Wed, 16 Mar 2011 16:45:53 +0000 (17:45 +0100)] 
build-sys: don't use HAVE_LIBBLKID_INTERNAL macro

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: clean up partx Makefile
Karel Zak [Wed, 16 Mar 2011 16:39:54 +0000 (17:39 +0100)] 
build-sys: clean up partx Makefile

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: don't support external (e2fsprogs) libblkid
Karel Zak [Wed, 16 Mar 2011 16:31:50 +0000 (17:31 +0100)] 
build-sys: don't support external (e2fsprogs) libblkid

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: include <uuid.h> rather than <uuid/uuid.h>
Karel Zak [Wed, 16 Mar 2011 16:04:21 +0000 (17:04 +0100)] 
build-sys: include <uuid.h> rather than <uuid/uuid.h>

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: don't support external (e2fsprogs) libuuid
Karel Zak [Wed, 16 Mar 2011 16:03:48 +0000 (17:03 +0100)] 
build-sys: don't support external (e2fsprogs) libuuid

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [fsprobe.c] use internal libblkid only
Karel Zak [Wed, 16 Mar 2011 15:22:36 +0000 (16:22 +0100)] 
lib: [fsprobe.c] use internal libblkid only

fsck, mount and swapon will be compilable with libblkid from
util-linux package. The old libblkid from e2fsprogs will not be
supported.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: use blkid_probe_get_buffer() more carefully
Karel Zak [Wed, 16 Mar 2011 13:06:23 +0000 (14:06 +0100)] 
libblkid: use blkid_probe_get_buffer() more carefully

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoRevert "umount: call /sbin/umount.<uhelper> for root user too"
Karel Zak [Tue, 15 Mar 2011 12:59:55 +0000 (13:59 +0100)] 
Revert "umount: call /sbin/umount.<uhelper> for root user too"

This reverts commit c56226697342ddd663492f77768e7a7cb8e579a1.

14 years agoumount: call /sbin/umount.<uhelper> for root user too
Karel Zak [Tue, 15 Mar 2011 09:31:06 +0000 (10:31 +0100)] 
umount: call /sbin/umount.<uhelper> for root user too

Originally the "uhelper=" was ignored for root, now the umount command
calls /sbin/umount.<uhelper> always.

This change is necessary for things like pam_mount where a device has
to be uninitialized by uhelper rather than directly umounted by
umount(2).

Note that all uhelpers has to be linked with libmount or execute

umount -fake -i /mountpoint

to remove mountpoint entry from /etc/mtab or /dev/.mount/utab.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: cleanup *_do_[u]mount() return codes and docs
Karel Zak [Mon, 14 Mar 2011 13:33:53 +0000 (14:33 +0100)] 
libmount: cleanup *_do_[u]mount() return codes and docs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: rename "quiet" to "silent" (MS_SILENT)
Karel Zak [Fri, 11 Mar 2011 15:58:27 +0000 (16:58 +0100)] 
mount: rename "quiet" to "silent" (MS_SILENT)

The quiet mount option was in collision with vfat and hfs mount
options. The option was also undocumented -- so it's probably safe to
rename the option than add some ugly hacks or exceptions for vfat/hfs
to the mount(8) code.

Reported-by: https://bugzilla.redhat.com/show_bug.cgi?id=622089
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update GPT test
Karel Zak [Fri, 11 Mar 2011 15:21:20 +0000 (16:21 +0100)] 
tests: update GPT test

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: fix double free [coverity scan]
Karel Zak [Fri, 11 Mar 2011 15:12:20 +0000 (16:12 +0100)] 
blkid: fix double free [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [tt.c] use mbs_truncate() from mbsalign.c
Karel Zak [Fri, 11 Mar 2011 14:30:27 +0000 (15:30 +0100)] 
lib: [tt.c] use mbs_truncate() from mbsalign.c

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [tt.c] dereferencing data before a null check [coverity scan]
Karel Zak [Fri, 11 Mar 2011 14:00:30 +0000 (15:00 +0100)] 
lib: [tt.c] dereferencing data before a null check [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotailf: fix open() return value check [coverity scan]
Karel Zak [Fri, 11 Mar 2011 13:25:45 +0000 (14:25 +0100)] 
tailf: fix open() return value check [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofsck.minix: use lib/ismounted.c
Karel Zak [Fri, 11 Mar 2011 13:15:47 +0000 (14:15 +0100)] 
fsck.minix: use lib/ismounted.c

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: keep code more readable for analyzers [coverity scan]
Karel Zak [Fri, 11 Mar 2011 12:57:14 +0000 (13:57 +0100)] 
libmount: keep code more readable for analyzers [coverity scan]

This is not a bug ('ent' is always non-NULL is 'm' is non-NULL), but
let's keep static analyzes and humans who read the code happy.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: fix typo in *_to_cpu() usage in raid detection [coverity scan]
Karel Zak [Fri, 11 Mar 2011 12:40:33 +0000 (13:40 +0100)] 
libblkid: fix typo in *_to_cpu() usage in raid detection [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolsblk: fix strtoul() usage [coverity scan]
Karel Zak [Fri, 11 Mar 2011 12:36:00 +0000 (13:36 +0100)] 
lsblk: fix strtoul() usage [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add PART_ENTRY_* to docs
Karel Zak [Fri, 11 Mar 2011 12:31:07 +0000 (13:31 +0100)] 
libblkid: add PART_ENTRY_* to docs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofindmnt: check mnt_tab_next_fs() return code [coverity scan]
Karel Zak [Fri, 11 Mar 2011 12:23:17 +0000 (13:23 +0100)] 
findmnt: check mnt_tab_next_fs() return code [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: build on non-Linux
Samuel Thibault [Thu, 3 Mar 2011 01:18:32 +0000 (02:18 +0100)] 
hwclock: build on non-Linux

Thanks to the direct ISA method and by disabling the RTC get/set epoch
functionality, hwclock can work fine on non-Linux systems which provide
ioperm or iopl.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 years agocfdisk: add home and end keys movements in partition list
Francesco Cosoleto [Mon, 28 Feb 2011 11:16:42 +0000 (12:16 +0100)] 
cfdisk: add home and end keys movements in partition list

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agocfdisk: move keys related to the cursor of the partition list outside menuselect()
Francesco Cosoleto [Mon, 28 Feb 2011 11:16:41 +0000 (12:16 +0100)] 
cfdisk: move keys related to the cursor of the partition list outside menuselect()

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agocfdisk: move "No more partition" warning to draw_cursor()
Francesco Cosoleto [Mon, 28 Feb 2011 11:16:40 +0000 (12:16 +0100)] 
cfdisk: move "No more partition" warning to draw_cursor()

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agocfdisk: use keypad() in menu selection function
Francesco Cosoleto [Mon, 28 Feb 2011 11:16:39 +0000 (12:16 +0100)] 
cfdisk: use keypad() in menu selection function

This makes the source code looks cleaner, and works a bit better than
the previous way with hardcoded escape sequences.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agolsblk: use ssize_t for readlink() return code
Karel Zak [Fri, 11 Mar 2011 09:49:08 +0000 (10:49 +0100)] 
lsblk: use ssize_t for readlink() return code

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolsblk: add TYPE column to lsblk output
Milan Broz [Thu, 24 Feb 2011 16:41:33 +0000 (17:41 +0100)] 
lsblk: add TYPE column to lsblk output

[kzak@redhat.com: - fix leaks
                  - use lowercase for TYPEs]

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotailf: fix memmove() usage
Karel Zak [Tue, 8 Mar 2011 13:13:41 +0000 (14:13 +0100)] 
tailf: fix memmove() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: print helpful error when pkg.m4 is missing
Sami Kerola [Sat, 26 Feb 2011 14:37:21 +0000 (15:37 +0100)] 
build-sys: print helpful error when pkg.m4 is missing

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: fix unportable Makefile.am assignment
Sami Kerola [Sat, 26 Feb 2011 14:37:20 +0000 (15:37 +0100)] 
build-sys: fix unportable Makefile.am assignment

Makefile.am:36: warning: `:='-style assignments are not portable

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: Enable automake's -Wno-portability option.
Sami Kerola [Sat, 26 Feb 2011 14:37:19 +0000 (15:37 +0100)] 
build-sys: Enable automake's -Wno-portability option.

The util-linux depends on GNU make.

shlibs/blkid/src/Makefile.am:58: warning: `%'-style pattern rules are a GNU make extension
shlibs/mount/src/Makefile.am:62: warning: `%'-style pattern rules are a GNU make extension

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: introduce AM_PROG_CC_C_O macro
Sami Kerola [Sat, 26 Feb 2011 14:37:18 +0000 (15:37 +0100)] 
build-sys: introduce AM_PROG_CC_C_O macro

Fix to warning which will appear when using fairly new automake
(automake commit id fd22dca).

disk-utils/Makefile.am:31: warning: compiling `mkswap.c' with per-target flags requires `AM_PROG_CC_C_O' in `configure.ac'

Reference documentation
http://www.gnu.org/software/hello/manual/automake/Public-Macros.html#index-AM_005fPROG_005fCC_005fC_005fO-296

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: use AC_LANG_SOURCE to suppress warnings
Sami Kerola [Sat, 26 Feb 2011 14:37:17 +0000 (15:37 +0100)] 
build-sys: use AC_LANG_SOURCE to suppress warnings

Messages bellow be supressed by using AC_LANG_SOURCE macro around
code test blocks.

m4/tls.m4:13: AX_CHECK_TLS is expanded from...
configure.ac:335: the top level
configure.ac:335: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
../../lib/autoconf/lang.m4:193: AC_LANG_CONFTEST is expanded from...
../../lib/autoconf/general.m4:2660: _AC_LINK_IFELSE is expanded from...
../../lib/autoconf/general.m4:2677: AC_LINK_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from...
../../lib/autoconf/general.m4:2728: _AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from...
../../lib/autoconf/general.m4:2747: AC_RUN_IFELSE is expanded from...
../../lib/m4sugar/m4sh.m4:605: AS_IF is expanded from...
../../lib/autoconf/general.m4:2030: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2051: AC_CACHE_CHECK is expanded from...
m4/tls.m4:13: AX_CHECK_TLS is expanded from...
configure.ac:335: the top level

Reference to documentation;
http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html#id1168723648533

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agortcwake: do not duplicate argument strings
Davidlohr Bueso [Sun, 27 Feb 2011 17:45:01 +0000 (14:45 -0300)] 
rtcwake: do not duplicate argument strings

This is not necessary and prevents memory leaks.

Reported-by: Marek Otahal <markotahal@gmail.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agoblkid: don't ignore -i
Karel Zak [Tue, 8 Mar 2011 12:32:05 +0000 (13:32 +0100)] 
blkid: don't ignore -i

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: uniformize the synopsis, remove "the the"
Benno Schulenberg [Sun, 27 Feb 2011 15:30:20 +0000 (16:30 +0100)] 
blkid: uniformize the synopsis, remove "the the"

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agotextual: tweak several manpages, mainly the blkid one
Benno Schulenberg [Sun, 27 Feb 2011 15:28:14 +0000 (16:28 +0100)] 
textual: tweak several manpages, mainly the blkid one

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoraw: remove constants from message strings; undo some abbrevs
Benno Schulenberg [Sun, 27 Feb 2011 15:27:43 +0000 (16:27 +0100)] 
raw: remove constants from message strings; undo some abbrevs

Having a constant embedded within a message string prevents gettext from
picking up the rest of the string.  Also, translators may wish to change
word order; using a constant as a prefix or postfix makes this impossible.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agouuidd: add "-q" to synopsis, order options alphabetically
Benno Schulenberg [Sun, 27 Feb 2011 15:26:56 +0000 (16:26 +0100)] 
uuidd: add "-q" to synopsis, order options alphabetically

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agoinclude: [c.h]: remove strings.h include dublicate
Sami Kerola [Sun, 27 Feb 2011 12:05:11 +0000 (13:05 +0100)] 
include: [c.h]: remove strings.h include dublicate

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoinclude: [c.h]: typeof to __typeof__ fix
Sami Kerola [Sun, 27 Feb 2011 12:05:09 +0000 (13:05 +0100)] 
include: [c.h]: typeof to __typeof__ fix

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: update TODO
Sami Kerola [Thu, 24 Feb 2011 21:39:13 +0000 (22:39 +0100)] 
docs: update TODO

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agotailf: tailf mention new help & version options in man page
Sami Kerola [Thu, 24 Feb 2011 21:39:12 +0000 (22:39 +0100)] 
tailf: tailf mention new help & version options in man page

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agotailf: use long options
Sami Kerola [Thu, 24 Feb 2011 21:39:11 +0000 (22:39 +0100)] 
tailf: use long options

This was TODO item from commit 947a7c9c. The patch also
introduces version and help switches.

[kzak@redhat.com: rewrite old_style_option()]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologger: mention long option in logger man page
Sami Kerola [Thu, 24 Feb 2011 19:16:42 +0000 (20:16 +0100)] 
logger: mention long option in logger man page

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agologger: use libc error printing facilities
Sami Kerola [Thu, 24 Feb 2011 19:16:41 +0000 (20:16 +0100)] 
logger: use libc error printing facilities

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologger: support long options
Sami Kerola [Thu, 24 Feb 2011 19:16:40 +0000 (20:16 +0100)] 
logger: support long options

Use getopt_long and usage output changed to match long options.
This patch will also scrutiny argument of formerly undocumented
-P option.

[kzak@redhat.com: - include c.h]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologger: fix variable type compiler warning
Sami Kerola [Thu, 24 Feb 2011 19:16:39 +0000 (20:16 +0100)] 
logger: fix variable type compiler warning

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agofsck: fix clang compiler warning
Sami Kerola [Thu, 24 Feb 2011 19:15:43 +0000 (20:15 +0100)] 
fsck: fix clang compiler warning

fsck.c:874:22: warning: format string is not a string literal
      (potentially insecure) [-Wformat-security]
errx(EXIT_USAGE, _(fs_type_syntax_error));
 ^~~~~~~~~~~~~~~~~~~~~~~

The issue was introduced in my commit 0a09eb4e, sorry.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoman page syntax fixes
Ville Skyttä [Sun, 6 Mar 2011 09:02:25 +0000 (11:02 +0200)] 
man page syntax fixes

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
14 years agomount: update mtab on "-f" and compiled with libmount
Karel Zak [Mon, 7 Mar 2011 09:06:24 +0000 (10:06 +0100)] 
mount: update mtab on "-f" and compiled with libmount

Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoumount: segfaults with inconsistent entry in /etc/fstab
Karel Zak [Fri, 4 Mar 2011 13:44:29 +0000 (14:44 +0100)] 
umount: segfaults with inconsistent entry in /etc/fstab

Addresses: https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/726283
Reported-by: Greg Brockman <gdb@gregbrockman.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO
Karel Zak [Thu, 3 Mar 2011 21:57:27 +0000 (22:57 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomove struct option to .rodata
Karel Zak [Thu, 3 Mar 2011 14:00:30 +0000 (15:00 +0100)] 
move struct option to .rodata

It does not make sense to have writable large arrays of "struct
option" on the stack.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Thu, 3 Mar 2011 13:58:59 +0000 (14:58 +0100)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: add term-utils/.gitignore
Karel Zak [Wed, 2 Mar 2011 13:29:34 +0000 (14:29 +0100)] 
build-sys: add term-utils/.gitignore

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move wall to term-utils/
Karel Zak [Wed, 2 Mar 2011 13:20:33 +0000 (14:20 +0100)] 
build-sys: move wall to term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move mesg to term-utils/
Karel Zak [Wed, 2 Mar 2011 13:18:31 +0000 (14:18 +0100)] 
build-sys: move mesg to term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move reset to term-utils/
Karel Zak [Wed, 2 Mar 2011 13:08:30 +0000 (14:08 +0100)] 
build-sys: move reset to term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move script and scriptreplay to term-utils/
Karel Zak [Wed, 2 Mar 2011 13:06:23 +0000 (14:06 +0100)] 
build-sys: move script and scriptreplay to term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move setterm to term-utils/
Karel Zak [Wed, 2 Mar 2011 13:02:01 +0000 (14:02 +0100)] 
build-sys: move setterm to term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move agetty to term-utils
Karel Zak [Wed, 2 Mar 2011 12:57:00 +0000 (13:57 +0100)] 
build-sys: move agetty to term-utils

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: add term-utils/
Karel Zak [Wed, 2 Mar 2011 12:44:02 +0000 (13:44 +0100)] 
build-sys: add term-utils/

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: fix gcc warnings
Karel Zak [Tue, 1 Mar 2011 14:31:49 +0000 (15:31 +0100)] 
libblkid: fix gcc warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: fix EFI GPT uuid byte order
Karel Zak [Tue, 1 Mar 2011 09:01:21 +0000 (10:01 +0100)] 
libblkid: fix EFI GPT uuid byte order

Intel uses little-endians for UUID, the rest of the sane world uses 16
byte big-endian array...

Reported-by: Andrew Lutomirski <luto@mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agokill: add -q sigval to use sigqueue(2)
Karel Zak [Mon, 28 Feb 2011 16:15:40 +0000 (17:15 +0100)] 
kill: add -q sigval to use sigqueue(2)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agokill: translate "-l <num>" to RT<n>
Karel Zak [Mon, 28 Feb 2011 14:09:18 +0000 (15:09 +0100)] 
kill: translate "-l <num>" to RT<n>

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agokill: add support for real-time signals
Karel Zak [Mon, 28 Feb 2011 12:43:28 +0000 (13:43 +0100)] 
kill: add support for real-time signals

Newly supported syntax for RT signals:

 RT<n>   = SIGRTMIN + n
 RTMIN+<n> = SIGRTMIN + n
 RTMAX-<n> = SIGRTMAX - n

the final signal number has to be in interval [SIGRTMIN,SIGRTMAX].

Note that the "SIG" prefix is also supported for RT signals of course.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=676297
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agortcwake: test for available suspend modes
Lawrence Rust [Thu, 10 Feb 2011 09:02:20 +0000 (10:02 +0100)] 
rtcwake: test for available suspend modes

Signed-off-by: Lawrence Rust <lawrence@softsystem.co.uk>
14 years agodmesg.c: cleanups -- use err(), xalloc()
Marek Polacek [Mon, 28 Feb 2011 09:10:32 +0000 (10:10 +0100)] 
dmesg.c: cleanups -- use err(), xalloc()

Signed-off-by: Marek Polacek <mpolacek@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO
Karel Zak [Sat, 26 Feb 2011 13:14:17 +0000 (14:14 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: try to detect if PT is newer than LVM
Karel Zak [Thu, 24 Feb 2011 13:03:44 +0000 (14:03 +0100)] 
libblkid: try to detect if PT is newer than LVM

LVM (pvcreate) wipes the begin of the device. If there is a PT in the
wiped area then LVM signature is obsolete.

 # pvcreate /dev/sdb
 # fdisk /dev/sdb

old version:
 # blkid -p -o udev /dev/sdb
 ID_FS_TYPE=LVM2_member

new version:
 # blkid -p -o udev /dev/sdb
 ID_PART_TABLE_TYPE=dos

Reported-by: Matej Cepl <mcepl@redhat.com>
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=679799
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO
Karel Zak [Wed, 23 Feb 2011 16:26:19 +0000 (17:26 +0100)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update libmount tests (add optstr output)
Karel Zak [Tue, 22 Feb 2011 23:22:00 +0000 (00:22 +0100)] 
tests: update libmount tests (add optstr output)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: better "user" evaluation
Karel Zak [Tue, 22 Feb 2011 23:21:54 +0000 (00:21 +0100)] 
libmount: better "user" evaluation

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: don't export functions for vfs/fs/userspace mount options
Karel Zak [Tue, 22 Feb 2011 17:41:20 +0000 (18:41 +0100)] 
libmount: don't export functions for vfs/fs/userspace mount options

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoipcs: fix typo
Karel Zak [Mon, 21 Feb 2011 18:06:54 +0000 (19:06 +0100)] 
ipcs: fix typo

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Mon, 21 Feb 2011 16:18:09 +0000 (17:18 +0100)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting
Dave Reisner [Mon, 21 Feb 2011 13:51:24 +0000 (08:51 -0500)] 
lsblk: bitwise or TT_FL_ASCII with tt_flags instead of setting

Signed-off-by: Dave Reisner <d@falconindy.com>
14 years agohwclock: make RTC default to UTC time
Daniel Drake [Mon, 21 Feb 2011 13:27:07 +0000 (13:27 +0000)] 
hwclock: make RTC default to UTC time

If /etc/adjtime doesn't specify UTC or LOCAL, rtcwake defaults to UTC
and hwclock defaults to LOCAL.

Switch hwclock to meet the behaviour of rtcwake (default=UTC), also
matching the kernel's CONFIG_RTC_HCTOSYS behaviour.

The user impact of this change should be minimal, as anyone who has run
"hwclock --systohc" before will have their UTC/LOCAL choice already
recorded in /etc/adjtime.

Signed-off-by: Daniel Drake <dsd@laptop.org>
14 years agocfdisk: fix compiler warning
Karel Zak [Mon, 21 Feb 2011 16:06:26 +0000 (17:06 +0100)] 
cfdisk: fix compiler warning

cfdisk.c: In function ‘menuUpdate’:
cfdisk.c:1034:25: warning: unused variable ‘ymargin’

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: remove unused vertical menu direction code
Francesco Cosoleto [Sun, 20 Feb 2011 07:36:16 +0000 (08:36 +0100)] 
cfdisk: remove unused vertical menu direction code

It isn't used and doesn't seem very important, as well as requires more
work to run properly.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agoscriptreplay: bug in argument check
Sami Kerola [Sun, 20 Feb 2011 12:21:17 +0000 (13:21 +0100)] 
scriptreplay: bug in argument check

Number of arguments cannot be at the same time too many and few.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoscript: inform about long options in script manual page
Sami Kerola [Sun, 20 Feb 2011 12:21:16 +0000 (13:21 +0100)] 
script: inform about long options in script manual page

[kzak@redhat.com: - use -V instead of -v]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoscript: support for long options
Sami Kerola [Sun, 20 Feb 2011 12:21:15 +0000 (13:21 +0100)] 
script: support for long options

[kzak@redhat.com: - use -V instead of -v
  - minor changes in usage()]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoscript: use libc error printing facilities
Sami Kerola [Sun, 20 Feb 2011 12:21:14 +0000 (13:21 +0100)] 
script: use libc error printing facilities

[kzak@redhat.com: - use more verbose warnings]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoscript: fix compiler warnings
Sami Kerola [Sun, 20 Feb 2011 12:21:13 +0000 (13:21 +0100)] 
script: fix compiler warnings

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agogetopt: fix '--unqote' typo in usage text
Francesco Cosoleto [Sun, 20 Feb 2011 07:34:27 +0000 (08:34 +0100)] 
getopt: fix '--unqote' typo in usage text

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agomkswap: fix compiler warning
Karel Zak [Mon, 21 Feb 2011 15:22:52 +0000 (16:22 +0100)] 
mkswap: fix compiler warning

mkswap.c: In function ‘main’:
mkswap.c:646:6: warning: too few arguments for format

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodoc: mention mkswap long options in man page
Sami Kerola [Sat, 19 Feb 2011 23:00:42 +0000 (00:00 +0100)] 
doc: mention mkswap long options in man page

The update will also expand kernel version numbers to have a
month and year next to them. This should help users can get idea
how long, for example, swap v1 has been around.

[kzak@redhat.com: - modify synopsis, remove duplicate info about page size]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkswap: coding style unification
Sami Kerola [Sat, 19 Feb 2011 23:00:41 +0000 (00:00 +0100)] 
mkswap: coding style unification

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkswap: fix to compiler warnings
Sami Kerola [Sat, 19 Feb 2011 23:00:40 +0000 (00:00 +0100)] 
mkswap: fix to compiler warnings

Signed-off-by: Sami Kerola <kerolasa@iki.fi>