]>
git.ipfire.org Git - thirdparty/util-linux.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 .
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Fri, 20 Jul 2012 18:06:10 +0000 (20:06 +0200)]
dmesg: fix usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Karel Zak [Tue, 17 Jul 2012 20:08:27 +0000 (22:08 +0200)]
docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
Sami Kerola [Sat, 14 Jul 2012 21:47:07 +0000 (23:47 +0200)]
utmpdump: remove unused variable
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 14 Jul 2012 21:44:56 +0000 (23:44 +0200)]
swapon: remove unused variables
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 14 Jul 2012 21:35:41 +0000 (23:35 +0200)]
lib/loopdev: minor bug fix: add missing semicolon
Missing semicolon made test_loop_info() to return function
loopcxt_enable_debug() return value, which happen to be void. I
suspect the loopcxt_enable_debug() was usually not executed, while it
should be.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 14 Jul 2012 21:16:28 +0000 (23:16 +0200)]
lib/pager: minor compiler warning fixes
Add missing function prototype, and declare structure before use of it.
lib/pager.c:162:6: warning: no previous prototype for function 'setup_pager' [-Wmissing-prototypes]
lib/pager.c:20:29: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct child_process' [-Wtentative-definition-incomplete-type]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Sat, 14 Jul 2012 20:25:25 +0000 (22:25 +0200)]
libblkid: remove duplicate entries in symbols
The commit
a0487b1cb5beffb8f6783476664b01e8833e0ea8 added symbol
dublicates. The symbols should only be listed in BLKID_1.0 segment.
/usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all' which is also named in version 'BLKID_2.15' in script
/usr/bin/ld.gold: warning: using 'BLKID_1.0' as version for 'blkid_probe_all_new' which is also named in version 'BLKID_2.15' in script
copying selected object files to avoid basename conflicts...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Petr Uzel [Thu, 12 Jul 2012 09:47:19 +0000 (11:47 +0200)]
fdisk: rename label probing functions
Rename check_$foo_label() to $foo_probe_label():
1/ 'probe' is more appropriate verb than 'check' for these functions
2/ making label name first part of the funciton name is IMO more
friendly for tags completion (e.g. vim + cscope/ctags).
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 12 Jul 2012 09:47:18 +0000 (11:47 +0200)]
fdisk: don't call update_units() in label probes if not necessary
update_units() is called in _probe_labels before the label probes are
started, so we don't need to call it again in probers, unless it messes
around with geometry, which currently only check_sun_label() does (so
keep the call to update_units() in this one).
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 12 Jul 2012 09:18:46 +0000 (11:18 +0200)]
utmpdump: kill unused variable in follow_by_inotify()
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 12 Jul 2012 08:09:59 +0000 (10:09 +0200)]
libblkid: cast blkid_loff_t to unsigned long long
Get rid of gcc warning and fix build with -Werror
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Thu, 12 Jul 2012 08:09:58 +0000 (10:09 +0200)]
swapon: kill unused variables in show_table()
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Ville Skyttä [Wed, 11 Jul 2012 20:16:15 +0000 (23:16 +0300)]
docs: man page syntax fixes
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
Eryu Guan [Wed, 11 Jul 2012 12:49:54 +0000 (20:49 +0800)]
mount: ext4 option inode_readahead should be inode_readahead_blks in mount.8
Mount option inode_readahead should be inode_readahead_blks. Also the
value should be a power of 2.
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Davidlohr Bueso [Sun, 8 Jul 2012 21:40:27 +0000 (23:40 +0200)]
fdisk: API: add label probing functionality
This patch sets the initial layout for label specific operations. A
new fdisk_label structure is created that will hold all these ops,
like new, delete, write and probe, among others. For now only probing
is implemented. Once this design is established, a copy of the probed
label will be copied to the main context structure, where calling the
specific functions will save 'disklabel' checks. Debugging support is
added as well.
This patch passes regression tests and manually passes bsd, sun, dos
and sgi labels probes.
Reviewed-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Mon, 16 Jul 2012 15:42:09 +0000 (17:42 +0200)]
build-sys: add -Werror to UL_WARN_ADD test
... so revert previous patches with extra options for clang.
Sometimes is simple solution so obvious that it's invisible :-)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Jul 2012 15:16:15 +0000 (17:16 +0200)]
build-sys: exclude some CC warnings for clang
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 16 Jul 2012 15:14:04 +0000 (17:14 +0200)]
build-sys: add exclude list to UL_ADD_WARN
Signed-off-by: Karel Zak <kzak@redhat.com>