]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
14 years agolib: [cpuset.c] fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 10:24:22 +0000 (12:24 +0200)] 
lib: [cpuset.c] fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [mangle.c] fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 10:18:22 +0000 (12:18 +0200)] 
lib: [mangle.c] fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [tt.c] clean up used types
Karel Zak [Mon, 1 Aug 2011 10:16:00 +0000 (12:16 +0200)] 
lib: [tt.c] clean up used types

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [strutils.c] fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 10:01:04 +0000 (12:01 +0200)] 
lib: [strutils.c] fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [sysfs.c] fix compiler warnings [-Wsign-compare]
Karel Zak [Mon, 1 Aug 2011 09:59:48 +0000 (11:59 +0200)] 
lib: [sysfs.c] fix compiler warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [at.c] fix compiler warnings [-Wunused-parameter]
Karel Zak [Mon, 1 Aug 2011 09:55:11 +0000 (11:55 +0200)] 
lib: [at.c] fix compiler warnings [-Wunused-parameter]

at.c: In function ‘fstat_at’:
at.c:14:35: warning: unused parameter ‘dirname’ [-Wunused-parameter]
at.c: In function ‘open_at’:
at.c:36:34: warning: unused parameter ‘dirname’ [-Wunused-parameter]
at.c: In function ‘readlink_at’:
at.c:66:42: warning: unused parameter ‘dirname’ [-Wunused-parameter]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: change MSGID_BUGS_ADDRESS
Karel Zak [Mon, 1 Aug 2011 09:30:29 +0000 (11:30 +0200)] 
po: change MSGID_BUGS_ADDRESS

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update ReleaseNotes v2.20-rc1
Karel Zak [Fri, 29 Jul 2011 20:48:58 +0000 (22:48 +0200)] 
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: fix configure.ac for uuidd
Karel Zak [Fri, 29 Jul 2011 20:44:47 +0000 (22:44 +0200)] 
build-sys: fix configure.ac for uuidd

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: fix git-version-gen for -rc tags
Karel Zak [Fri, 29 Jul 2011 14:12:05 +0000 (16:12 +0200)] 
build-sys: fix git-version-gen for -rc tags

The current version have a problem to support "v2.20-rc1" format of
the tags.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.20-rc1)
Karel Zak [Fri, 29 Jul 2011 13:14:52 +0000 (15:14 +0200)] 
build-sys: release++ (v2.20-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: add 2.20 ReleaseNotes
Karel Zak [Fri, 29 Jul 2011 11:45:20 +0000 (13:45 +0200)] 
docs: add 2.20 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomisc: use unsigned int for bit-fileds
Karel Zak [Fri, 29 Jul 2011 08:51:06 +0000 (10:51 +0200)] 
misc: use unsigned int for bit-fileds

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update AUTHORS file
Karel Zak [Thu, 28 Jul 2011 12:15:38 +0000 (14:15 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: merge changes
Karel Zak [Thu, 28 Jul 2011 12:03:48 +0000 (14:03 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: update fr.po (from translationproject.org)
David Prévot [Thu, 28 Jul 2011 11:51:11 +0000 (13:51 +0200)] 
po: update fr.po (from translationproject.org)

14 years agopo: update da.po (from translationproject.org)
Joe Hansen [Thu, 28 Jul 2011 11:51:11 +0000 (13:51 +0200)] 
po: update da.po (from translationproject.org)

14 years agopo: update cs.po (from translationproject.org)
Petr Písař [Thu, 28 Jul 2011 11:51:11 +0000 (13:51 +0200)] 
po: update cs.po (from translationproject.org)

14 years agobuild-sys: remove and ignore generated files
Karel Zak [Thu, 28 Jul 2011 11:47:56 +0000 (13:47 +0200)] 
build-sys: remove and ignore generated files

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: fix compilation with slang
Karel Zak [Thu, 28 Jul 2011 11:46:22 +0000 (13:46 +0200)] 
cfdisk: fix compilation with slang

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: tiny change in comment
Karel Zak [Thu, 28 Jul 2011 11:24:26 +0000 (13:24 +0200)] 
hwclock: tiny change in comment

... to keep 'make checkconfig' happy.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: fix 'make checkincludes' warnings
Karel Zak [Thu, 28 Jul 2011 11:21:00 +0000 (13:21 +0200)] 
build-sys: fix 'make checkincludes' warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Thu, 28 Jul 2011 11:16:31 +0000 (13:16 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update lscpu tests
Karel Zak [Wed, 27 Jul 2011 21:41:10 +0000 (23:41 +0200)] 
tests: update lscpu tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: extend --parse functionality
Karel Zak [Wed, 27 Jul 2011 21:10:01 +0000 (23:10 +0200)] 
lscpu: extend --parse functionality

... to allow define output columns, for example:

$ lscpu --parse=CPU,CORE,NODE,CACHE
# CPU,Core,Node,L1d:L1i:L2
0,0,0,0:0:0
1,1,0,1:1:0

Note that CPU caches are separated by ":" in the new format. The
output for --parse (without the list of the columns) is backwardly
compatible, it means:

$ lscpu --parse
# CPU,Core,Socket,Node,,L1d,L1i,L2
0,0,0,0,,0,0,0
1,1,0,0,,1,1,0

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: [strutils.c] add list parsers
Karel Zak [Wed, 27 Jul 2011 14:41:21 +0000 (16:41 +0200)] 
include: [strutils.c] add list parsers

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude; [tt.c] check for array size in columns parser
Karel Zak [Wed, 27 Jul 2011 14:21:11 +0000 (16:21 +0200)] 
include; [tt.c] check for array size in columns parser

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: fix gtk-doc distclean
Karel Zak [Wed, 27 Jul 2011 12:22:36 +0000 (14:22 +0200)] 
build-sys: fix gtk-doc distclean

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: enable mountpoint, add dependence on libmout
Karel Zak [Wed, 27 Jul 2011 10:02:36 +0000 (12:02 +0200)] 
build-sys: enable mountpoint, add dependence on libmout

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: fix gcc warning (uninitialized variable)
Karel Zak [Wed, 27 Jul 2011 09:14:28 +0000 (11:14 +0200)] 
hwclock: fix gcc warning (uninitialized variable)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoMerge branch 'hwclock' of https://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Wed, 27 Jul 2011 07:56:39 +0000 (09:56 +0200)] 
Merge branch 'hwclock' of https://github.com/kerolasa/lelux-utiliteetit

14 years agohwclock: validate numeric option arguments
Sami Kerola [Mon, 25 Jul 2011 22:04:34 +0000 (00:04 +0200)] 
hwclock: validate numeric option arguments

Instead atoi() use strtoul_or_err().

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: move long options away from global scope
Sami Kerola [Mon, 25 Jul 2011 21:46:50 +0000 (23:46 +0200)] 
hwclock: move long options away from global scope

In addition `long only' options are made unreachable by using
8-bit characters.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: add variable initialization
Sami Kerola [Mon, 25 Jul 2011 20:20:03 +0000 (22:20 +0200)] 
hwclock: add variable initialization

The only variable found causing `conditional jump or move depends
on uninitialized value' is fixed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: remove goto statement
Sami Kerola [Mon, 25 Jul 2011 20:08:40 +0000 (22:08 +0200)] 
hwclock: remove goto statement

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: fix compiler warnings
Sami Kerola [Mon, 25 Jul 2011 19:33:39 +0000 (21:33 +0200)] 
hwclock: fix compiler warnings

hwclock.c: In function 'manipulate_epoch':
hwclock.c:1299:29: warning: unused parameter 'getepoch' [-Wunused-parameter]
hwclock.c:1299:50: warning: unused parameter 'setepoch' [-Wunused-parameter]
hwclock.c:1300:14: warning: unused parameter 'epoch_opt' [-Wunused-parameter]
hwclock.c:1300:36: warning: unused parameter 'testing' [-Wunused-parameter]
hwclock.c: In function 'usage':
hwclock.c:1373:1: warning: embedding a directive within macro arguments is not portable [enabled by default]
hwclock.c:1377:1: warning: embedding a directive within macro arguments is not portable [enabled by default]
hwclock.c:1383:1: warning: embedding a directive within macro arguments is not portable [enabled by default]
hwclock.c:1385:1: warning: embedding a directive within macro arguments is not portable [enabled by default]

cmos.c: In function 'outb':
cmos.c:84:15: warning: unused parameter 'a' [-Wunused-parameter]
cmos.c:84:22: warning: unused parameter 'b' [-Wunused-parameter]
cmos.c: In function 'inb':
cmos.c:88:13: warning: unused parameter 'c' [-Wunused-parameter]
cmos.c: In function 'atomic':
cmos.c:265:20: warning: unused parameter 'name' [-Wunused-parameter]
cmos.c: In function 'i386_iopl':
cmos.c:544:32: warning: unused parameter 'level' [-Wunused-parameter]
cmos.c: In function 'get_permissions_cmos':
cmos.c:565:8: warning: unused variable 'errsv' [-Wunused-variable]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: move path definitions to pathnames.h
Sami Kerola [Sun, 24 Jul 2011 21:18:22 +0000 (23:18 +0200)] 
hwclock: move path definitions to pathnames.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: use libc error printing functions
Sami Kerola [Sun, 24 Jul 2011 18:30:29 +0000 (20:30 +0200)] 
hwclock: use libc error printing functions

In addition numeric exit values are converted to defined strings.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: include-what-you-use header check
Sami Kerola [Sun, 24 Jul 2011 17:58:17 +0000 (19:58 +0200)] 
hwclock: include-what-you-use header check

One deletion, few adds and sort to include lists.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: coding style clean up
Sami Kerola [Sun, 24 Jul 2011 15:35:43 +0000 (17:35 +0200)] 
hwclock: coding style clean up

Despide amount of the change this change should be harmless.
Everything is about indendation, comment restructuring etc not
code changes.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolibblkid: minor change in man page
Karel Zak [Tue, 26 Jul 2011 14:46:00 +0000 (16:46 +0200)] 
libblkid: minor change in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: remove generated file
Karel Zak [Tue, 26 Jul 2011 13:53:56 +0000 (15:53 +0200)] 
tests: remove generated file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: fix gtk-doc build
Karel Zak [Tue, 26 Jul 2011 13:52:08 +0000 (15:52 +0200)] 
build-sys: fix gtk-doc build

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoMerge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Tue, 26 Jul 2011 12:41:28 +0000 (14:41 +0200)] 
Merge branch 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit

* 'cramfs' of https://github.com/kerolasa/lelux-utiliteetit:
  include: move fsck return values to exitcodes.h
  include: move disk-utils/mkfs.h -> include/exitcodes.h
  mkfs.cramfs: coding style
  mkfs.cramfs: include-what-you-use header check
  mkfs.cramfs: error printing fixes
  mkfs.cramfs: convert spaces to tabs
  mkfs.cramfs: validate numeric user inputs
  mkfs.cramfs: few symbolic exit codes where missing
  md5: use symbolical digest length
  mkfs.cramfs: use program_invocation_short_name
  mkfs.cramfs: use xalloc.h
  fsck.cramfs: add missed strings to translation
  fsck.cramfs: coding style
  fsck.cramfs: use xalloc.h
  fsck.cramfs: retire die function
  cramfs.h: coding style
  cramfs: use stdint.h instead of u{8,16,32}
  cramfs_common: coding style

Conflicts:
disk-utils/Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: vfat big endian fix
Jindrich Makovicka [Sun, 24 Jul 2011 12:13:07 +0000 (14:13 +0200)] 
libblkid: vfat big endian fix

when getting the next cluster id, clear the 4 most significant bits
after converting to machine endian

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
14 years agolibblkid: use 64bit offset in search_fat_label to avoid truncation
Jindrich Makovicka [Sun, 24 Jul 2011 12:12:06 +0000 (14:12 +0200)] 
libblkid: use 64bit offset in search_fat_label to avoid truncation

[kzak@redhat.com: - use %jd for the offset in debug message]

Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoscriptreplay: fix buffer overflow
Sami Kerola [Tue, 26 Jul 2011 09:49:30 +0000 (11:49 +0200)] 
scriptreplay: fix buffer overflow

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agowhereis: update coding style
Davidlohr Bueso [Sun, 24 Jul 2011 15:11:19 +0000 (11:11 -0400)] 
whereis: update coding style

Like most 20th century Berkeley code, it's horrible:
- declare global variables in only one place
- add static attribute where it belongs
- move funcion declarations so that it doesn't require defining them

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agowhereis: remove find()
Davidlohr Bueso [Sun, 24 Jul 2011 14:59:25 +0000 (10:59 -0400)] 
whereis: remove find()

Because findv() can do the same job find() does, we can simply remove it and
call findv() with the size of each array.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agolscpu: use xalloc
Davidlohr Bueso [Sun, 24 Jul 2011 18:39:15 +0000 (14:39 -0400)] 
lscpu: use xalloc

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agopartx: use sysfs_deinit
Davidlohr Bueso [Sun, 24 Jul 2011 15:29:23 +0000 (11:29 -0400)] 
partx: use sysfs_deinit

Commit a88268b8cc124b6f721ba17ab01a3f6d5800c749 (get partition number with
sysfs lib) recently added the sysfs library to partx without freeing resources
once finished.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agosysfs: free used resources
Davidlohr Bueso [Sun, 24 Jul 2011 15:22:52 +0000 (11:22 -0400)] 
sysfs: free used resources

In the sysfs lib example, we should be using sysfs_deinit() to free used
resources and for correct usage.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agotests: add -o remount to libmount tests
Karel Zak [Mon, 25 Jul 2011 13:54:28 +0000 (15:54 +0200)] 
tests: add -o remount to libmount tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: remove 'seclabel' on remount, improve for 2.6.39
Karel Zak [Mon, 25 Jul 2011 13:44:16 +0000 (15:44 +0200)] 
libmount: remove 'seclabel' on remount, improve for 2.6.39

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: improve apply_fstab debugging
Karel Zak [Mon, 25 Jul 2011 13:36:44 +0000 (15:36 +0200)] 
libmount: improve apply_fstab debugging

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use silent rules got gtkdoc, fix dependencies
Karel Zak [Mon, 25 Jul 2011 12:16:26 +0000 (14:16 +0200)] 
build-sys: use silent rules got gtkdoc, fix dependencies

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: remove 'seclabel' mount option on remount
Karel Zak [Mon, 25 Jul 2011 10:37:56 +0000 (12:37 +0200)] 
mount: remove 'seclabel' mount option on remount

Reported-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add MOUNT_2.20 version to the API
Karel Zak [Mon, 25 Jul 2011 10:16:15 +0000 (12:16 +0200)] 
libmount: add MOUNT_2.20 version to the API

The API is officially stable since 2.20.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: remove unnecessary includes, mask API as stable
Karel Zak [Mon, 25 Jul 2011 09:57:28 +0000 (11:57 +0200)] 
libmount: remove unnecessary includes, mask API as stable

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: clean up docs
Karel Zak [Mon, 25 Jul 2011 08:42:08 +0000 (10:42 +0200)] 
libmount: clean up docs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: remove misleading information
Sami Kerola [Sun, 24 Jul 2011 15:28:21 +0000 (17:28 +0200)] 
hwclock: remove misleading information

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agohwclock: remove clock-ppc.c
Sami Kerola [Sun, 24 Jul 2011 15:27:12 +0000 (17:27 +0200)] 
hwclock: remove clock-ppc.c

There is no need to keep this file hanging around anymore.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolibmount: cleanup docs
Karel Zak [Fri, 22 Jul 2011 23:27:39 +0000 (01:27 +0200)] 
libmount: cleanup docs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: update docs
Karel Zak [Fri, 22 Jul 2011 14:39:32 +0000 (16:39 +0200)] 
libblkid: update docs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use gtkdoc without tmpl dir
Karel Zak [Fri, 22 Jul 2011 14:39:32 +0000 (16:39 +0200)] 
build-sys: use gtkdoc without tmpl dir

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: make -t more tolerant
Karel Zak [Fri, 22 Jul 2011 10:37:57 +0000 (12:37 +0200)] 
ionice: make -t more tolerant

* replace errx() with warnx() for unknown -c class

  The right place to check I/O scheduler features is in kernel. We should
  not try to be more smart than kernel.

* make the code ready (robust) for unknown sched.classes

* fix -t behavior

old version:
  $ ionice -c 4 -t bash
  ionice: bad prio class 4

new version:
  $ ionice -c 4 -t bash

Reported-by: Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: allow to use names for -c <class>
Karel Zak [Fri, 22 Jul 2011 09:39:06 +0000 (11:39 +0200)] 
ionice: allow to use names for -c <class>

 for example:

   $ ionice -c best-effort bash

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: improve command line interpretation
Karel Zak [Fri, 22 Jul 2011 09:15:28 +0000 (11:15 +0200)] 
ionice: improve command line interpretation

 ionice                       : print the current I/O prio.
 ionice COMMAND               : exec command with default (best-effort) class
 ionice -p PID [...]          : return info about the PID(s)
 ionice -c CLASS COMMAND      : exec command with the class
 ionice -c CLASS -p PID [...] : modify PID(s) class

This should be backwardly compatible and also compatible with nice(1)
from coreutils.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoinclude: move fsck return values to exitcodes.h
Sami Kerola [Thu, 21 Jul 2011 22:34:12 +0000 (00:34 +0200)] 
include: move fsck return values to exitcodes.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoinclude: move disk-utils/mkfs.h -> include/exitcodes.h
Sami Kerola [Thu, 21 Jul 2011 22:22:14 +0000 (00:22 +0200)] 
include: move disk-utils/mkfs.h -> include/exitcodes.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: coding style
Sami Kerola [Thu, 21 Jul 2011 22:07:40 +0000 (00:07 +0200)] 
mkfs.cramfs: coding style

Clean up to two if clauses and fix to a version print out format.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: include-what-you-use header check
Sami Kerola [Wed, 20 Jul 2011 20:23:33 +0000 (22:23 +0200)] 
mkfs.cramfs: include-what-you-use header check

add these lines:
 #include <stddef.h> // for size_t
 #include <zconf.h> // for Bytef, uLongf

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: error printing fixes
Sami Kerola [Wed, 20 Jul 2011 20:21:09 +0000 (22:21 +0200)] 
mkfs.cramfs: error printing fixes

The patch will fix few starange looking errors such as:

$ mkfs.cramfs -N foo
invalid endianness given. Must be 'big', 'little', or 'host': Success

to be more sensible:
mkfs.cramfs: invalid endianness given. Must be 'big', 'little', or 'host'

And there are couple new return value checks to stop command if
out file cannot be opened, or an IO error occurs.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: convert spaces to tabs
Sami Kerola [Wed, 20 Jul 2011 20:19:49 +0000 (22:19 +0200)] 
mkfs.cramfs: convert spaces to tabs

The conversion is applied only to the line beginnings.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: validate numeric user inputs
Sami Kerola [Wed, 20 Jul 2011 20:17:02 +0000 (22:17 +0200)] 
mkfs.cramfs: validate numeric user inputs

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: few symbolic exit codes where missing
Sami Kerola [Wed, 20 Jul 2011 20:16:08 +0000 (22:16 +0200)] 
mkfs.cramfs: few symbolic exit codes where missing

This makes commit 89f56db1842e78bea0c6bc75028c3754489a9ad3 complete.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomd5: use symbolical digest length
Sami Kerola [Wed, 20 Jul 2011 20:13:32 +0000 (22:13 +0200)] 
md5: use symbolical digest length

Magic hash lenght number 16 is turned to a definition MD5LENGTH,
and put into use everywhere where md5 checksum is in use.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: use program_invocation_short_name
Sami Kerola [Wed, 20 Jul 2011 20:12:40 +0000 (22:12 +0200)] 
mkfs.cramfs: use program_invocation_short_name

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomkfs.cramfs: use xalloc.h
Sami Kerola [Wed, 20 Jul 2011 20:11:28 +0000 (22:11 +0200)] 
mkfs.cramfs: use xalloc.h

Before this commit two strdup calls, in line 366 and 374, where
able to fail silently and cause a rare bug.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agofsck.cramfs: add missed strings to translation
Sami Kerola [Wed, 20 Jul 2011 20:10:44 +0000 (22:10 +0200)] 
fsck.cramfs: add missed strings to translation

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agofsck.cramfs: coding style
Sami Kerola [Wed, 20 Jul 2011 20:08:48 +0000 (22:08 +0200)] 
fsck.cramfs: coding style

Lots of braces got to be removed, which can cause something to
break even everything is double checked.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agofsck.cramfs: use xalloc.h
Sami Kerola [Wed, 20 Jul 2011 20:03:47 +0000 (22:03 +0200)] 
fsck.cramfs: use xalloc.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agofsck.cramfs: retire die function
Sami Kerola [Wed, 20 Jul 2011 20:03:08 +0000 (22:03 +0200)] 
fsck.cramfs: retire die function

Replaced with err{,x} from libc.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocramfs.h: coding style
Sami Kerola [Wed, 20 Jul 2011 20:01:02 +0000 (22:01 +0200)] 
cramfs.h: coding style

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolsblk: ignore device if disappear while processing
Milan Broz [Thu, 21 Jul 2011 20:56:20 +0000 (22:56 +0200)] 
lsblk: ignore device if disappear while processing

If lsblk runing on system where many devices appears and disappears
during lsblk run, lsblk should not fail or crash but just ignore
disappeared device.

Let's detect context initialization failures and skip device
instead of failing.

Also fix possible dereferencing of NULL parent pointer and
properly handle some error paths.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: add 'none' source to libmount update tests
Karel Zak [Thu, 21 Jul 2011 20:29:26 +0000 (22:29 +0200)] 
tests: add 'none' source to libmount update tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoswapon: use xalloc lib
Davidlohr Bueso [Mon, 18 Jul 2011 04:33:20 +0000 (00:33 -0400)] 
swapon: use xalloc lib

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agopartx: get partition number with sysfs lib
Davidlohr Bueso [Sun, 17 Jul 2011 16:47:30 +0000 (12:47 -0400)] 
partx: get partition number with sysfs lib

Now that we have this feature, there's no need to manually parse sysfs in partx.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agodocs: update TODO file
Karel Zak [Thu, 21 Jul 2011 15:45:04 +0000 (17:45 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Sami Kerola [Sun, 17 Jul 2011 18:22:15 +0000 (20:22 +0200)] 
docs: update TODO file

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agochrt: add strings to use NLS
Sami Kerola [Sun, 17 Jul 2011 18:21:40 +0000 (20:21 +0200)] 
chrt: add strings to use NLS

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotaskset: coding style fixes
Sami Kerola [Sun, 17 Jul 2011 18:00:19 +0000 (20:00 +0200)] 
taskset: coding style fixes

Reindentation and deletion of few empty lines etc. There is no
actual code changes in this patch.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agotaskset: include-what-you-use header check
Sami Kerola [Sun, 17 Jul 2011 17:59:16 +0000 (19:59 +0200)] 
taskset: include-what-you-use header check

taskset.c should add these lines:
 #include <sched.h>   for sched_getaffinity, etc
 #include <stddef.h>  for size_t
 #include <string.h>  for memset

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: mention long options in ionice.1
Sami Kerola [Thu, 21 Jul 2011 15:28:32 +0000 (17:28 +0200)] 
docs: mention long options in ionice.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: coding style fixes
Sami Kerola [Thu, 21 Jul 2011 15:09:28 +0000 (17:09 +0200)] 
ionice: coding style fixes

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: fix -V output
Sami Kerola [Sun, 17 Jul 2011 17:55:45 +0000 (19:55 +0200)] 
ionice: fix -V output

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoionice: fix -p
Karel Zak [Thu, 21 Jul 2011 14:44:55 +0000 (16:44 +0200)] 
ionice: fix -p

 $ ionice 123
 none: prio 4
 none: prio 4

It calls ioprio_get(0x1, 0) and ioprio_get(0x1, 123), because the
code does not check it the "-p" options was specified.

The proper command line syntax is:

  $ ionice -p 123

and the ioprio_get() should be called only once.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: IOPRIO_PRIO_* macros
Karel Zak [Thu, 21 Jul 2011 14:33:20 +0000 (16:33 +0200)] 
ionice: IOPRIO_PRIO_* macros

 * make the code more robust
 * follow kernel conventions for variable names
   (data = classdata, ioprio = classdata | class)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoionice: add long options
Sami Kerola [Sun, 17 Jul 2011 17:54:08 +0000 (19:54 +0200)] 
ionice: add long options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochrt: coding style fix
Sami Kerola [Sun, 17 Jul 2011 17:52:37 +0000 (19:52 +0200)] 
chrt: coding style fix

Make horizontal list vertical and few other enhancements to
readability.

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