]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agoeject: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:28 +0000 (21:15 +0200)] 
eject: fix shadow declaration

sys-utils/eject.c:529:11: warning: declaration of 'str' shadows a previous local [-Wshadow]
sys-utils/eject.c:506:9: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agowhereis: fix shadow declaration
Karel Zak [Wed, 25 Jul 2012 19:15:27 +0000 (21:15 +0200)] 
whereis: fix shadow declaration

misc-utils/whereis.c:191:7: warning: declaration of 'dirp' shadows a global declaration [-Wshadow]
misc-utils/whereis.c:134:42: warning: shadowed declaration is here [-Wshadow]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolslocks: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:26 +0000 (21:15 +0200)] 
lslocks: fix shadow declaration

misc-utils/lslocks.c:157:49: warning: declaration of 'pid' shadows a global declaration [-Wshadow]
misc-utils/lslocks.c:80:14: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: add not about unstable default output
Karel Zak [Thu, 26 Jul 2012 09:44:59 +0000 (11:44 +0200)] 
lsblk: add not about unstable default output

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:25 +0000 (21:15 +0200)] 
blkid: fix shadow declaration

misc-utils/blkid.c:402:15: warning: declaration of 'usage' shadows a global declaration [-Wshadow]
misc-utils/blkid.c:63:13: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosulogin: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:24 +0000 (21:15 +0200)] 
sulogin: fix shadow declaration

login-utils/sulogin.c:337:8: warning: declaration of 'sushell' shadows a global declaration [-Wshadow]
login-utils/sulogin.c:332:13: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibmount: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:23 +0000 (21:15 +0200)] 
libmount: fix shadow declaration

libmount/src/tab_update.c:203:8: warning: declaration of 'rc' shadows a previous local [-Wshadow]
libmount/src/tab_update.c:159:6: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomkswap: fix shadow declaration
Sami Kerola [Wed, 25 Jul 2012 19:15:22 +0000 (21:15 +0200)] 
mkswap: fix shadow declaration

disk-utils/mkswap.c:366:57: warning: declaration of 'is_blkdev' shadows a global declaration [-Wshadow]
./include/blkdev.h:92:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotests: look: add words file
Sami Kerola [Wed, 25 Jul 2012 19:15:20 +0000 (21:15 +0200)] 
tests: look: add words file

Archlinux words 2.0-4 package does not have 'apple-pie' in words file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotests: partx changed default output format
Sami Kerola [Wed, 25 Jul 2012 19:15:19 +0000 (21:15 +0200)] 
tests: partx changed default output format

Reference: commit 7cfd1b26437acd45f1e2e75c9648afabb8f5b2da
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolsblk: add read-ahead column.
Milan Broz [Tue, 24 Jul 2012 14:34:33 +0000 (16:34 +0200)] 
lsblk: add read-ahead column.

Signed-off-by: Milan Broz <mbroz@redhat.com>
13 years agofdisk: API: comment labels array
Davidlohr Bueso [Tue, 24 Jul 2012 12:40:30 +0000 (14:40 +0200)] 
fdisk: API: comment labels array

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: API: fix fdisk_add_partition comment style
Davidlohr Bueso [Tue, 24 Jul 2012 12:40:03 +0000 (14:40 +0200)] 
fdisk: API: fix fdisk_add_partition comment style

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agobuild-sys: add -Wall to warnings
Karel Zak [Thu, 26 Jul 2012 08:13:08 +0000 (10:13 +0200)] 
build-sys: add -Wall to warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoutmpdump: fix compiler warning [-Wunused-result]
Karel Zak [Thu, 26 Jul 2012 07:46:49 +0000 (09:46 +0200)] 
utmpdump: fix compiler warning [-Wunused-result]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix compiler warning [-Wsign-compare]
Karel Zak [Thu, 26 Jul 2012 07:44:37 +0000 (09:44 +0200)] 
libmount: fix compiler warning [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: fix compiler warning [-Wsign-compare]
Karel Zak [Thu, 26 Jul 2012 07:41:57 +0000 (09:41 +0200)] 
libblkid: fix compiler warning [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude/optutils: remove unnecessary exclusive_option()
Karel Zak [Thu, 26 Jul 2012 07:27:42 +0000 (09:27 +0200)] 
include/optutils: remove unnecessary exclusive_option()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowdctl: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:51 +0000 (09:26 +0200)] 
wdctl: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoprlimit: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:34 +0000 (09:26 +0200)] 
prlimit: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:21 +0000 (09:26 +0200)] 
mount: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:26:10 +0000 (09:26 +0200)] 
lscpu: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:59 +0000 (09:25 +0200)] 
losetup: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:48 +0000 (09:25 +0200)] 
hwclock: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:35 +0000 (09:25 +0200)] 
dmesg: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agochcpu: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:25:19 +0000 (09:25 +0200)] 
chcpu: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowipefs: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:50 +0000 (09:24 +0200)] 
wipefs: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:36 +0000 (09:24 +0200)] 
lsblk: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofindmnt: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:24:21 +0000 (09:24 +0200)] 
findmnt: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoblkid: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:23:58 +0000 (09:23 +0200)] 
blkid: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: use err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:23:40 +0000 (09:23 +0200)] 
partx: use err_exclusive_options()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude/optutils: add err_exclusive_options()
Karel Zak [Thu, 26 Jul 2012 07:04:55 +0000 (09:04 +0200)] 
include/optutils: add err_exclusive_options()

This is improved implementation of exclusive_option(). The new
implementation:

  - uses regular struct option to compose error messages
  - relationships between options are described in one const static array
  - the current status is stored in one int array

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: fix dm_name usage
Karel Zak [Wed, 25 Jul 2012 16:04:10 +0000 (18:04 +0200)] 
lsblk: fix dm_name usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoagetty: remove unnecessary sleep(10)
Mantas Mikulėnas [Wed, 25 Jul 2012 14:07:16 +0000 (17:07 +0300)] 
agetty: remove unnecessary sleep(10)

I'm quite sure this is not supposed to be here (apparently added as part
of commit 783b08fc1c6e5c906e).

Signed-off-by: Mantas Mikulėnas <grawity@gmail.com>
13 years agoRevert "fdisk: de-duplicate disk label strings"
Karel Zak [Tue, 24 Jul 2012 12:15:08 +0000 (14:15 +0200)] 
Revert "fdisk: de-duplicate disk label strings"

 ... because it's not expected that fdisk_label will be exported by
API and accessible for applications (like fdisk.c). It's private
libfdisk stuff.

This reverts commit e7818642600d6cd573a8e1ed5363fce52def5821.

13 years agofdisk: de-duplicate disk label strings
Bernhard Voelker [Tue, 24 Jul 2012 11:18:16 +0000 (13:18 +0200)] 
fdisk: de-duplicate disk label strings

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agofdisk: return success from sgi_create_disklabel
Petr Uzel [Tue, 24 Jul 2012 11:52:32 +0000 (13:52 +0200)] 
fdisk: return success from sgi_create_disklabel

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agofdisk: fix compiler warning [-Werror=unused-variable]
Petr Uzel [Tue, 24 Jul 2012 11:52:31 +0000 (13:52 +0200)] 
fdisk: fix compiler warning [-Werror=unused-variable]

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agodmesg: add fileback for SEEK_DATA
Karel Zak [Tue, 24 Jul 2012 12:06:25 +0000 (14:06 +0200)] 
dmesg: add fileback for SEEK_DATA

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: don't ignore 1MiB granularity on 512-byte sector devices
Karel Zak [Mon, 23 Jul 2012 21:09:41 +0000 (23:09 +0200)] 
fdisk: don't ignore 1MiB granularity on 512-byte sector devices

Note that +10MB is 100000 (10^N) and relative values (+<size>
convention) should be be aligned to the default grain (= 1 MiB).

Old version:

  Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB
  Partition 1 of type Linux and of size 9.5 MiB is set
  ...
  /dev/loop0p1            2048       21578        9765+  83  Linux
  /dev/loop0p2           21579       43062       10742   83  Linux

New version:
  Last sector, +sectors or +size{K,M,G} (2048-2047999, default 2047999): +10MB
  Partition 1 of type Linux and of size 10 MiB is set
  ...
  /dev/loop0p1            2048       22527       10240   83  Linux
  /dev/loop0p2           22528       43007       10240   83  Linux

Addresses: http://thread.gmane.org/gmane.linux.kernel.device-mapper.dm-crypt/5913/focus=5929
Reported-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: remove unused variables
Karel Zak [Tue, 24 Jul 2012 08:52:09 +0000 (10:52 +0200)] 
fdisk: remove unused variables

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: make label API more robust
Karel Zak [Tue, 24 Jul 2012 08:41:47 +0000 (10:41 +0200)] 
fdisk: make label API more robust

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: API: add fdisk_label_change
Davidlohr Bueso [Tue, 24 Jul 2012 08:31:32 +0000 (10:31 +0200)] 
fdisk: API: add fdisk_label_change

[kzak@redhat.com: - rename function
                  - remove fdisk_create_default_disklabel()]

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: API: add verify to label operations
Davidlohr Bueso [Tue, 24 Jul 2012 07:54:52 +0000 (09:54 +0200)] 
fdisk: API: add verify to label operations

[kzak@redhat.com: - rename some functions]

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: API: add new partition to label operations
Davidlohr Bueso [Tue, 24 Jul 2012 07:34:22 +0000 (09:34 +0200)] 
fdisk: API: add new partition to label operations

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: API: add write to label operations
Davidlohr Bueso [Mon, 23 Jul 2012 16:47:42 +0000 (18:47 +0200)] 
fdisk: API: add write to label operations

[kzak@redhat.com: - rename functions
                  - use errno]

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: API: add delete partition to label operations
Davidlohr Bueso [Mon, 23 Jul 2012 16:15:57 +0000 (18:15 +0200)] 
fdisk: API: add delete partition to label operations

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: set label pointer in fdisk_create_default_disklabel()
Karel Zak [Mon, 23 Jul 2012 15:58:53 +0000 (17:58 +0200)] 
fdisk: set label pointer in fdisk_create_default_disklabel()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: API: add to label operations to context
Davidlohr Bueso [Sun, 22 Jul 2012 17:05:01 +0000 (19:05 +0200)] 
fdisk: API: add to label operations to context

The context structure is the fdisk API's main data type as it keeps all data
together. Add the label structure to it, so that the pt-specific operations can
be called from the context.

[kzak@redhat.com: - merge with latest changes
                  - don't allocate the label, use const pointer]

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofdisk: rename cxt->mbr buffer to cxt->firstsector
Karel Zak [Mon, 23 Jul 2012 12:24:25 +0000 (14:24 +0200)] 
fdisk: rename cxt->mbr buffer to cxt->firstsector

MBR is regular name for DOS partition table, let use less confusing
name for the buffer.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: move label specific stuff to fdiskdoslabel.c
Karel Zak [Mon, 23 Jul 2012 12:07:35 +0000 (14:07 +0200)] 
fdisk: move label specific stuff to fdiskdoslabel.c

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: move DOS geometry code from generic part to label specific
Karel Zak [Mon, 23 Jul 2012 11:57:58 +0000 (13:57 +0200)] 
fdisk: move DOS geometry code from generic part to label specific

 get_partition_table_geometry() should be called from DOS code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update oddinput test
Karel Zak [Mon, 23 Jul 2012 09:46:27 +0000 (11:46 +0200)] 
tests: update oddinput test

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: fix error message for too small devices
Karel Zak [Mon, 23 Jul 2012 09:40:46 +0000 (11:40 +0200)] 
fdisk: fix error message for too small devices

 # touch ~/a
 # fdisk -l ~/a
 # fdisk: cannot open /root/a: Success

should be (at least):
 fdisk: cannot open /root/a: Invalid argument

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: (dos) cleanup function names
Karel Zak [Mon, 23 Jul 2012 09:17:35 +0000 (11:17 +0200)] 
fdisk: (dos) cleanup function names

 - use 'write' in name for functions that really touch devices
 - use 'set' in name for functions that modify in-memory stuff

... otherwise it's unreadable mess

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: get_boot() has to die (step II.)
Karel Zak [Mon, 23 Jul 2012 09:08:26 +0000 (11:08 +0200)] 
fdisk: get_boot() has to die (step II.)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: get_boot() has to die (step I.)
Karel Zak [Mon, 23 Jul 2012 08:56:06 +0000 (10:56 +0200)] 
fdisk: get_boot() has to die (step I.)

 - move generic stuff around "create disklabel" operation to API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: move user geometry setting from fdisk.c to API
Karel Zak [Mon, 23 Jul 2012 08:11:08 +0000 (10:11 +0200)] 
fdisk: move user geometry setting from fdisk.c to API

 - to avoid duplicate code
 - to remove fdisk_geom_set_cyls() from API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: fix usage()
Karel Zak [Fri, 20 Jul 2012 18:06:10 +0000 (20:06 +0200)] 
dmesg: fix usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: add --reltime to print human readable deltas
Karel Zak [Fri, 20 Jul 2012 17:45:36 +0000 (19:45 +0200)] 
dmesg: add --reltime to print human readable deltas

[Jul20 09:50] device vnet0 entered promiscuous mode
[  +0.002248] virbr0: topology change detected, propagating
[  +0.000017] virbr0: port 2(vnet0) entered forwarding state
[  +0.000036] virbr0: port 2(vnet0) entered forwarding state
[  +0.001663] ADDRCONF(NETDEV_CHANGE): virbr0: link becomes ready
[ +10.480914] vnet0: no IPv6 routers present
[Jul20 14:35] xhci_hcd 0000:0e:00.0: WARN Event TRB for slot 3 ep 5 with no TDs queued?
[Jul20 19:23] EXT4-fs (sda2): re-mounted. Opts: (null)
[  +6.052980] EXT4-fs (sda2): re-mounted. Opts: (null)

Suggested by Linus:
http://thread.gmane.org/gmane.linux.kernel/1290886/focus=1296138

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg; cleanup time printing stuff
Karel Zak [Fri, 20 Jul 2012 15:43:50 +0000 (17:43 +0200)] 
dmesg; cleanup time printing stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: implement backwardly compatible --raw for /dev/kmsg
Karel Zak [Fri, 20 Jul 2012 12:41:25 +0000 (14:41 +0200)] 
dmesg: implement backwardly compatible --raw for /dev/kmsg

.. and if you really want raw data from /dev/kmsg then use dd(1) ;-)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: cleanup exclusive_option() usage
Karel Zak [Fri, 20 Jul 2012 12:11:20 +0000 (14:11 +0200)] 
dmesg: cleanup exclusive_option() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: add --follow feature
Karel Zak [Fri, 20 Jul 2012 12:04:48 +0000 (14:04 +0200)] 
dmesg: add --follow feature

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: support --clear for kmsg
Karel Zak [Fri, 20 Jul 2012 11:24:42 +0000 (13:24 +0200)] 
dmesg: support --clear for kmsg

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: read /dev/kmsg (since kernel 3.5.0)
Karel Zak [Fri, 20 Jul 2012 10:09:09 +0000 (12:09 +0200)] 
dmesg: read /dev/kmsg (since kernel 3.5.0)

kmsg advantages:
  - extendible format
  - tags for messages
  - one read() returns one complete record

See kernel Documentation/ABI/testing/dev-kmsg.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: add --syslog to force to old syslog(2) interface
Karel Zak [Thu, 19 Jul 2012 16:35:20 +0000 (18:35 +0200)] 
dmesg: add --syslog to force to old syslog(2) interface

... just for debugging or for people who somehow depends on syslog(2)
behavior.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: refactoring for kmsg support
Karel Zak [Thu, 19 Jul 2012 16:33:20 +0000 (18:33 +0200)] 
dmesg: refactoring for kmsg support

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: unify internal APIs
Karel Zak [Thu, 19 Jul 2012 15:12:54 +0000 (17:12 +0200)] 
dmesg: unify internal APIs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: cleanup, move more stuff to control struct
Karel Zak [Thu, 19 Jul 2012 15:01:05 +0000 (17:01 +0200)] 
dmesg: cleanup, move more stuff to control struct

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: move filename to control struct
Karel Zak [Thu, 19 Jul 2012 14:33:08 +0000 (16:33 +0200)] 
dmesg: move filename to control struct

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: check VFS mount options in mnt_diff_tables()
Karel Zak [Wed, 18 Jul 2012 20:09:24 +0000 (22:09 +0200)] 
libmount: check VFS mount options in mnt_diff_tables()

after "-o remount,ro" in unshared namespace is the original VFS entry
still read-write:

original:
42 21 8:2 / /boot rw,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered

unshared + ro remount:
78 51 8:2 / /boot ro,relatime - ext4 /dev/sda2 ro,user_xattr,acl,barrier=1,data=ordered

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update TODO
Karel Zak [Tue, 17 Jul 2012 20:08:27 +0000 (22:08 +0200)] 
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: (new) add --source and --target
Karel Zak [Tue, 17 Jul 2012 20:02:35 +0000 (22:02 +0200)] 
mount: (new) add --source and --target

In some cases (for example if only one mount argument is given) may be
mount request ambivalent:

# mount /foo

and fstab:

/dev/sda5 /foo rw 0 0
/foo /bar bind 0 0

the new options allows to be more explicit

        # mount --target /foo (mounts /dev/sda5)

# mount --source /foo (binds /foo to /bar)

It's possible to use the options together

# mount --source /dev/sda2 --target /home

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: allow to disable swap between source and target
Karel Zak [Tue, 17 Jul 2012 19:57:22 +0000 (21:57 +0200)] 
libmount: allow to disable swap between source and target

In some cases (for example if only one mount argument is given) may be
mount request ambivalent:

# mount /foo

and fstab:

/dev/sda5 /foo rw 0 0
/foo /bar bind 0 0

The libmount allows to swap between source and target (if
source is not LABEL or UUID) by default. The new function

mnt_context_disable_swapmatch()

allows to disable this feature.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update TODO file
Karel Zak [Tue, 17 Jul 2012 13:22:51 +0000 (15:22 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkfs.cramfs: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:57:30 +0000 (18:57 +0200)] 
mkfs.cramfs: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoeject: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:55:39 +0000 (18:55 +0200)] 
eject: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofsck.cramfs: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:55:01 +0000 (18:55 +0200)] 
fsck.cramfs: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoldattach: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:53:11 +0000 (18:53 +0200)] 
ldattach: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:52:30 +0000 (18:52 +0200)] 
lscpu: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosetarch: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:51:27 +0000 (18:51 +0200)] 
setarch: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocytune: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:50:39 +0000 (18:50 +0200)] 
cytune: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoipcmk: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:49:36 +0000 (18:49 +0200)] 
ipcmk: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscriptreplay: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:48:27 +0000 (18:48 +0200)] 
scriptreplay: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotailf: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:47:29 +0000 (18:47 +0200)] 
tailf: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocolrm: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:46:44 +0000 (18:46 +0200)] 
colrm: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoraw: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:45:52 +0000 (18:45 +0200)] 
raw: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agohwclock: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:43:53 +0000 (18:43 +0200)] 
hwclock: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotest_sysinfo: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:38:14 +0000 (18:38 +0200)] 
test_sysinfo: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agokill: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:36:27 +0000 (18:36 +0200)] 
kill: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosu: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:31:45 +0000 (18:31 +0200)] 
su: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib/match: fix compiler warning [-Wmissing-prototypes]
Karel Zak [Mon, 16 Jul 2012 16:29:22 +0000 (18:29 +0200)] 
lib/match: fix compiler warning [-Wmissing-prototypes]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoMerge branch '2012wk28'
Karel Zak [Mon, 16 Jul 2012 16:19:08 +0000 (18:19 +0200)] 
Merge branch '2012wk28'

* 2012wk28:
  translation: unify file open error messages
  translation: unify stat error messages
  utmpdump: use help and version output macros
  su: align with howto-usage-function
  fdisk: make if clause easier to read
  look: remove extra semicolon
  utmpdump: remove unused variable
  swapon: remove unused variables
  lib/loopdev: minor bug fix: add missing semicolon
  lib/pager: minor compiler warning fixes
  libblkid: remove duplicate entries in symbols

13 years agotranslation: unify file open error messages
Sami Kerola [Sun, 15 Jul 2012 08:39:57 +0000 (10:39 +0200)] 
translation: unify file open error messages

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agotranslation: unify stat error messages
Sami Kerola [Sun, 15 Jul 2012 08:17:53 +0000 (10:17 +0200)] 
translation: unify stat error messages

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoutmpdump: use help and version output macros
Sami Kerola [Sun, 15 Jul 2012 07:57:31 +0000 (09:57 +0200)] 
utmpdump: use help and version output macros

Done to reduce translation project work.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosu: align with howto-usage-function
Sami Kerola [Sun, 15 Jul 2012 07:46:45 +0000 (09:46 +0200)] 
su: align with howto-usage-function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agofdisk: make if clause easier to read
Sami Kerola [Sun, 15 Jul 2012 06:58:51 +0000 (08:58 +0200)] 
fdisk: make if clause easier to read

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolook: remove extra semicolon
Sami Kerola [Sat, 14 Jul 2012 21:50:15 +0000 (23:50 +0200)] 
look: remove extra semicolon

The both macro SKIP_PAST_NEWLINE and location where macro is used will
not need semicolon at the end of line.

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