]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Karel Zak [Wed, 20 Jul 2011 10:52:15 +0000 (12:52 +0200)]
dmesg: add --show-delta option
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jul 2011 19:37:34 +0000 (21:37 +0200)]
dmesg: print_buffer() refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Tue, 19 Jul 2011 18:00:54 +0000 (20:00 +0200)]
dmesg: variables refactoring
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jul 2011 22:30:42 +0000 (00:30 +0200)]
docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
Marc-Antoine Perennou [Mon, 18 Jul 2011 17:37:22 +0000 (19:37 +0200)]
dmesg: fix segfault
An element declared as size_t cannot be detected as negative (len < 0)
is always false.
This can lead to an infinite loop causing a segmentation fault.
Check if len is equal to -1 or -2 instead
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Karel Zak [Mon, 18 Jul 2011 15:15:00 +0000 (17:15 +0200)]
mkfs.bfs: cleanu p --version output
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jul 2011 15:08:45 +0000 (17:08 +0200)]
mkfs.bfs: use err() instead of errx()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jul 2011 15:00:52 +0000 (17:00 +0200)]
Merge remote-tracking branch 'sami/mkfs.bfs'
* sami/mkfs.bfs:
docs: add long options to mkfs.bfs.8
mkfs.bfs: coding style fix
mkfs.bfs: include-what-you-use header check
mkfs.bfs: validate numeric user inputs
mkfs.bfs: use xstrdup from xalloc.h
mkfs.bfs: add long options
mkfs.bfs: use libc error facilities
Karel Zak [Mon, 18 Jul 2011 14:57:55 +0000 (16:57 +0200)]
fdformat: cleanup error messages
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jul 2011 14:48:22 +0000 (16:48 +0200)]
Merge remote-tracking branch 'sami/fdformat'
* sami/fdformat:
docs: add long options to fdformat.8
fdformat: coding style
fdformat: include-what-you-use header check
fdformat: use xalloc.h
fdformat: integer comparisons & unused parameter
fdformat: use long options
fdformat: use libc error printing facilities
Karel Zak [Mon, 18 Jul 2011 14:43:51 +0000 (16:43 +0200)]
Merge remote-tracking branch 'sami/isosize'
* sami/isosize:
docs: isosize.8 add long options
isosize: fix coding style
isosize: include-what-you-use header check
isosize: check user input to be numeric
isosize: use long options
isosize: remove global variables
Karel Zak [Mon, 18 Jul 2011 09:48:41 +0000 (11:48 +0200)]
dmesg: add -t option to suppress timestamps
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 18 Jul 2011 09:28:15 +0000 (11:28 +0200)]
dmesg: add -u and -k options
-u : print kernel messages
-k : print userspace message
The options could be mixed together or with --facility option too.
Signed-off-by: Karel Zak <kzak@redhat.com>
Heiko Carstens [Wed, 13 Jul 2011 03:46:18 +0000 (09:16 +0530)]
lscpu: add support for books
This patch adds support for books in cpu topology output. Books are
currently only present on the s390 architecture, however it looks like
others will follow to use the extra scheduling domain of the kernel.
Books are logically between sockets and nodes. In order to not break
any existing tools that might parse the output of lscpu the output
is changed so that books will follow nodes:
CPU,Core,Socket,Node,Book
In addition the readable output is changed from
"CPU socket(s):" to "Socket(s) per book:" or simply "Socket(s):" in the
absence of books.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Milan Broz [Sat, 9 Jul 2011 13:24:04 +0000 (15:24 +0200)]
lsblk: add queue request size attribute
Add queue request size parameter.
Very useful for tuning multipath performance.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 15 Jul 2011 13:35:48 +0000 (15:35 +0200)]
include: [tt.c] always truncate if TT_FL_TRUNC
Signed-off-by: Karel Zak <kzak@redhat.com>
Milan Broz [Tue, 5 Jul 2011 21:29:30 +0000 (23:29 +0200)]
lsblk: add state attribute
Add device state column. For normal disk it could be running or offline,
for device-mapper devices running or suspended.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jul 2011 11:46:13 +0000 (13:46 +0200)]
dmesg: fix typo in usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jul 2011 11:32:31 +0000 (13:32 +0200)]
docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jul 2011 11:31:53 +0000 (13:31 +0200)]
dmesg: reorder options, add comments
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jul 2011 10:48:07 +0000 (12:48 +0200)]
dmesg: add --facility option
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 14 Jul 2011 10:19:00 +0000 (12:19 +0200)]
dmesg: add --decode to print readable facility and level
# dmesg --decode
...
kern :info : [53335.743185] PM: resume of devices complete after 2496.795 msecs
kern :debug : [53335.743593] PM: Finishing wakeup.
kern :warn : [53335.743595] Restarting tasks ... done.
kern :info : [53335.790452] video LNXVIDEO:00: Restoring backlight state
kern :debug : [53336.418576] e1000e 0000:00:19.0: irq 45 for MSI/MSI-X
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 13 Jul 2011 04:05:31 +0000 (00:05 -0400)]
minix: remove fs state
For v3 minix superblocks the state flag (s_state) has been removed, so drop it
from the structure in accordance with the kernel's representation.
Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Wed, 13 Jul 2011 13:50:47 +0000 (15:50 +0200)]
dmesg: add --level=<list>
For example
dmesg --level=err,warn
will print only error and warning messages.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 13 Jul 2011 13:06:53 +0000 (15:06 +0200)]
dmesg: consolidate level parsiig code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 13 Jul 2011 13:00:49 +0000 (15:00 +0200)]
dmesg: don't print non-printable chars, parse records
All non-printable chars, non-printable multibyte sequences or invalid
multibyte sequences will be replaced with \x<hex> strings.
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Mon, 11 Jul 2011 20:36:03 +0000 (22:36 +0200)]
docs: add long options to mkfs.bfs.8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 20:27:09 +0000 (22:27 +0200)]
mkfs.bfs: coding style fix
Sync with README.devel
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 19:25:08 +0000 (21:25 +0200)]
mkfs.bfs: include-what-you-use header check
The limits.h is added for CHAR_MAX
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 19:08:12 +0000 (21:08 +0200)]
mkfs.bfs: validate numeric user inputs
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 18:59:01 +0000 (20:59 +0200)]
mkfs.bfs: use xstrdup from xalloc.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 18:57:36 +0000 (20:57 +0200)]
mkfs.bfs: add long options
Includes new usage output.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 18:32:37 +0000 (20:32 +0200)]
mkfs.bfs: use libc error facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 16:57:39 +0000 (18:57 +0200)]
docs: add long options to fdformat.8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 16:34:45 +0000 (18:34 +0200)]
fdformat: coding style
Reindent the file to match with README.devel instructions.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 16:03:46 +0000 (18:03 +0200)]
fdformat: include-what-you-use header check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 16:01:24 +0000 (18:01 +0200)]
fdformat: use xalloc.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 15:52:55 +0000 (17:52 +0200)]
fdformat: integer comparisons & unused parameter
Fix compiler warnings about mismatching types and unused parameter.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 15:50:17 +0000 (17:50 +0200)]
fdformat: use long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Mon, 11 Jul 2011 15:35:55 +0000 (17:35 +0200)]
fdformat: use libc error printing facilities
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Marc-Antoine Perennou [Mon, 11 Jul 2011 12:46:27 +0000 (14:46 +0200)]
build-sys: fix spaces versus tabs conflict
For some reason, tabs were replaced by spaces in commit
73ae0d5be6e070afe83d1a2324ac79941629201e
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Kirill Elagin [Mon, 11 Jul 2011 10:53:43 +0000 (12:53 +0200)]
mount: fix double free in mount.c with SELinux enabled
append_context reallocates memory, invalidating extra_opts1. As a
result my_free(extra_opts1) crashes.
Signed-off-by: Kirill Elagin <kirelagin@gmail.com>
Signed-off-by: Nikita Ofitserov <himikof@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Francesco Cosoleto [Sun, 3 Jul 2011 10:01:21 +0000 (12:01 +0200)]
fdisk: use a single variable for the current disklabel
Using a variable for each supported partition table type doesn't seem necessary.
This fixes also a minor bug in switching from SGI label to SUN label: the expert
menu isn't available as sgi_label variable remains set to true.
Code a bit more clear as *_label names have similarity with names such as
"sgilabel", "struct sun_label".
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Petr Uzel [Fri, 1 Jul 2011 13:51:45 +0000 (15:51 +0200)]
mount: fix typos in mount.8
From: Nicolas Francois <nicolas.francois@centraliens.net>
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530681#15
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Fri, 1 Jul 2011 13:51:44 +0000 (15:51 +0200)]
mount: make the error message clear
Reported-by: Micah Anderson <micah@debian.org>
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558653
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Fri, 1 Jul 2011 13:51:43 +0000 (15:51 +0200)]
mount: fix typo in mount.8
Reported-by: Reuben Thomas <rrt@sc3d.org>
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603096
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Fri, 1 Jul 2011 13:51:42 +0000 (15:51 +0200)]
mount: fix typo in mount.8
Reported-by: Lars Wirzenius <liw@liw.fi>
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=605007
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Petr Uzel [Fri, 1 Jul 2011 13:51:41 +0000 (15:51 +0200)]
mount: remove accidental extra word in ext4 documentation in mount.8
Reported-by: Francis Russell <francis+dbts@unchartedbackwaters.co.uk>
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599550
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Mike Hommey [Fri, 1 Jul 2011 13:51:40 +0000 (15:51 +0200)]
mount: fix reference to sharedsubtree documentation in mount.8
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508572
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572403
Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508412
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Marc-Antoine Perennou [Thu, 30 Jun 2011 00:26:32 +0000 (02:26 +0200)]
build-sys: don't try to chgrp write or wall if they are not built
Fix regression from commit
4aa9d65bfa76afd0d886ca410ae83428a490d4ea
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Karel Zak [Mon, 11 Jul 2011 08:56:57 +0000 (10:56 +0200)]
Merge branch 'blockdev' of https://github.com/kerolasa/lelux-utiliteetit
* 'blockdev' of https://github.com/kerolasa/lelux-utiliteetit:
blockdev: coding style fix
blockdev: type mismatch fix
blockdev: broken compiler warning circumvention removed
blockdev: use pathnames.h to find partitions
blockdev: use libc error facilities
blockdev: add --help option
blockdev: remove progname
blockdev: set options read only
Davidlohr Bueso [Wed, 29 Jun 2011 17:01:10 +0000 (13:01 -0400)]
mkfs.minix: document -3 option
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Davidlohr Bueso [Wed, 29 Jun 2011 16:55:49 +0000 (12:55 -0400)]
mkfs.minix: add minix v3 support
We can now create minix v3 filesystems. Support for this fs was added a few
years ago in the Linux kernel. One of the most important benefits is the
ability to handle file names up to 60 characters long. With this change we
also introduce the -3 option which naturally indicates which version to create.
Version 1 is still left as the default one for backwards compatibility reasons.
[kzak@redhat.com: - fix gcc warnings:
mkfs.minix.c: In function ‘super_set_state_ptr’:
mkfs.minix.c:174:1: warning: no return statement in function returning non-void [-Wreturn-type]
mkfs.minix.c: In function ‘write_tables’:
mkfs.minix.c:182:7: warning: unused variable ‘state’ [-Wunused-variable]
mkfs.minix.c: At top level:
mkfs.minix.c:111:27: warning: ‘blksz’ defined but not used [-Wunused-variable]
]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Wed, 29 Jun 2011 16:55:18 +0000 (12:55 -0400)]
minix: add version 3 layout
Create a specific minix v3 superblock structure and adjust the attribute
wrapper functions to handle it.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Karel Zak [Mon, 11 Jul 2011 08:21:02 +0000 (10:21 +0200)]
Merge branch 'mkfs' of git://github.com/kerolasa/lelux-utiliteetit
* 'mkfs' of git://github.com/kerolasa/lelux-utiliteetit:
mkfs: coding style fixes
mkfs: include-what-you-use header check
docs: add long options to mkfs.8
mkfs: add long options
Karel Zak [Fri, 1 Jul 2011 14:33:34 +0000 (16:33 +0200)]
dmesg; support level names (e.g. --console-level=alert)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 13:30:16 +0000 (15:30 +0200)]
dmesg: add --console-on and --console-off
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 12:56:22 +0000 (14:56 +0200)]
dmesg: cleanup options and man page
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 12:33:27 +0000 (14:33 +0200)]
dmesg: add --clear (SYSLOG_ACTION_CLEAR)
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 12:26:19 +0000 (14:26 +0200)]
dmesg: refactoring - cleanup main() code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 12:15:07 +0000 (14:15 +0200)]
dmesg: refactoring - cleanup read buffer code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:57:36 +0000 (13:57 +0200)]
dmesg: refactoring - cleanup print buffer code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:49:25 +0000 (13:49 +0200)]
dmesg: refactoring - cleanup get bufsize code
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:41:56 +0000 (13:41 +0200)]
dmesg: use SYSLOG_ACTION_* macros rather than magic constatnts
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:24:04 +0000 (13:24 +0200)]
dmesg: add long options, --help and --version
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:13:46 +0000 (13:13 +0200)]
libblkid: add docs for new PART_ENTRY_* values
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 1 Jul 2011 11:13:13 +0000 (13:13 +0200)]
docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Thu, 30 Jun 2011 19:59:15 +0000 (21:59 +0200)]
docs: isosize.8 add long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Jun 2011 19:49:36 +0000 (21:49 +0200)]
isosize: fix coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Jun 2011 19:48:20 +0000 (21:48 +0200)]
isosize: include-what-you-use header check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Jun 2011 19:27:42 +0000 (21:27 +0200)]
isosize: check user input to be numeric
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Jun 2011 18:54:55 +0000 (20:54 +0200)]
isosize: use long options
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 30 Jun 2011 18:30:24 +0000 (20:30 +0200)]
isosize: remove global variables
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 22:32:09 +0000 (00:32 +0200)]
blockdev: coding style fix
Sync with README.devel
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 21:26:27 +0000 (23:26 +0200)]
blockdev: type mismatch fix
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 21:21:17 +0000 (23:21 +0200)]
blockdev: broken compiler warning circumvention removed
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 21:17:09 +0000 (23:17 +0200)]
blockdev: use pathnames.h to find partitions
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 20:54:30 +0000 (22:54 +0200)]
blockdev: use libc error facilities
Favour symbolic return values and use {err,warn}{,x} where ever
applies.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 20:44:35 +0000 (22:44 +0200)]
blockdev: add --help option
The option is also accepted in format `-h'. As a side effect
usage function is now able to return success, and since it had to
be touched the printing is cleaned up.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 20:33:47 +0000 (22:33 +0200)]
blockdev: remove progname
Use errx, warnx or program_invocation_short_name instead.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 29 Jun 2011 20:31:03 +0000 (22:31 +0200)]
blockdev: set options read only
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 22:24:27 +0000 (00:24 +0200)]
mkfs: coding style fixes
The patch includes two symbolic exit values and a main argv
notation change, none of which should cause any side effects.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 22:23:01 +0000 (00:23 +0200)]
mkfs: include-what-you-use header check
Two headers added
#include <limits.h> // for CHAR_MAX
#include <stdlib.h> // for exit, EXIT_SUCCESS, getenv, etc
Rest sorted, and nls.h recategorized to be local header.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 21:49:34 +0000 (23:49 +0200)]
docs: add long options to mkfs.8
Two switches -c and -l where removed from manual, they might be
supported by the real file system builder but not necessarily.
The -v option was also corrected to be -V.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 21:22:47 +0000 (23:22 +0200)]
mkfs: add long options
Includes new help output.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Wed, 29 Jun 2011 10:44:30 +0000 (12:44 +0200)]
sfdisk: fix coding style.
The style in the file is really horrible and unreadable. This patch
uses:
indent -linux -i4 -psl -brf sfdisk.c
to fix the style. The ideal solution is to call the indent with only
-linux option, but it's too invasive...
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 29 Jun 2011 10:12:48 +0000 (12:12 +0200)]
Merge branch 'sfdisk' of git://github.com/kerolasa/lelux-utiliteetit
* 'sfdisk' of git://github.com/kerolasa/lelux-utiliteetit:
Merge branch 'master', remote-tracking branch 'upstream/master'
sfdisk: fix for data type mismatches
sfdisk: fix implicit overflow
docs: sfdisk manual update
sfdisk: previously undocumented options to usage
sfdisk: help screen format
sfdisk: declare unused function attributes
Sami Kerola [Tue, 28 Jun 2011 10:43:26 +0000 (12:43 +0200)]
script: remove magic constants and a type mismatch fix
The type mismatch; doinput: int -> ssize_t
[kzak@redhat.com: - int -> pid_t,
- remove "register" keyword]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Tue, 28 Jun 2011 10:43:25 +0000 (12:43 +0200)]
script: include-what-you-use header check
The tool proposed;
script.c should add these lines:
script.c should remove these lines:
- #include <sys/file.h> // lines 53-53
- #include <sys/types.h> // lines 48-48
- #include "c.h" // lines 61-61
and the change nearly did what the tool told. We should keep on
using c.h, not err.h. The config.h is not needed, it's added
automaticly.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 10:43:24 +0000 (12:43 +0200)]
script: remove unnecessary void casting
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Tue, 28 Jun 2011 10:43:23 +0000 (12:43 +0200)]
script: option --force added
The --force will allow default output destination, e.g.
typescript file, to be hard or symbolic link.
[kzak@redhat.com: - remove "error:" prefix from errx()]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
Petr Uzel [Wed, 29 Jun 2011 08:24:09 +0000 (10:24 +0200)]
umount: do not hang with disconnected NFS mounts
Since util-linux commit
f4612577c942a3683b97632ad0b49671897c2070 ,
umount stat(2)s its argument to check whether it can be associated
with some loop device. This could hang with broken NFS mounts.
Fix by first checking mtab if umount's argument is mounted and only if
we fail, check if there is a loop device associated.
http://marc.info/?l=util-linux-ng&m=
130924963804836 &w=2
Reported-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Karel Zak [Wed, 29 Jun 2011 07:02:50 +0000 (09:02 +0200)]
mount: first look for mountpoint
# mount <device|dir>
The current code looks for a device and then for a mountpoint in
/etc/fstab. This is not user friendly solution. People usually use
# mount /dir
to mount any filesystem. It makes more sense to check for mountpoint
and if not found then for device.
This is also important for bind mounts, for example if you have in
your fstab:
/dev/sda1 /mnt/foo auto defaults
/mnt/foo /mnt/bar none bind
then
# mount /mnt/foo
should be interpreted as the first entry and /dev/sda1 should be
mounted.
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=716483
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jun 2011 15:21:57 +0000 (17:21 +0200)]
Merge branch 'wknd23' of git://github.com/kerolasa/lelux-utiliteetit
* 'wknd23' of git://github.com/kerolasa/lelux-utiliteetit: (41 commits)
getopt: fix coding style
getopt: options struct, usage and version outputs
build-sys: remove unnecessary files from getopt
getopt: make user getopt_long parsing to use function pointer
getopt: remove unnecessary free()
getopt: use xalloc.h
docs: look.1 manual rewrote
look: add long options
docs: mention long options in uuidd.8 manual page
uuidd: coding style fixes
uuidd: remove goto statement
uuidd: use symbolic exit and return values
uuidd: die() function removed
uuidd: long options & new usage
docs: uuidgen.1 mention long options
uuidgen: add long options
wipefs: add version printing & compiler warning
write: maintenance fixes
write: long options & new usage
build-sys: move write to term-utils directory
...
Heiko Carstens [Tue, 21 Jun 2011 11:24:33 +0000 (13:24 +0200)]
lscpu: fix bogomips detection for s390
s390 has a "bogomips per cpu" string instead of a "bogomips" string in
/proc/sysinfo. So add a second bogomips lookup which detects the s390
variant.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Davidlohr Bueso [Tue, 21 Jun 2011 03:10:13 +0000 (23:10 -0400)]
mkfs.minix: check for misalignment
Produce a warning if the device is misaligned.
[kzak@redhat.com: - use it for block devices only]
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jun 2011 14:09:56 +0000 (16:09 +0200)]
lib: [blkdev.c] remove kernel version check from blkdev_get_sector_size()
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jun 2011 13:57:14 +0000 (15:57 +0200)]
lib: [blkdev.c] more robust blkdev_is_misaligned()
Signed-off-by: Karel Zak <kzak@redhat.com>
Davidlohr Bueso [Tue, 21 Jun 2011 02:51:47 +0000 (22:51 -0400)]
lib: [blkdev.c] add blkdev_get_physector_size()
This function uses the BLKPBSZGET ioctl to get the physical block size
of the device.
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Mon, 27 Jun 2011 11:31:48 +0000 (13:31 +0200)]
libmount: minor fixes
Signed-off-by: Karel Zak <kzak@redhat.com>