]>
git.ipfire.org Git - thirdparty/util-linux.git/log
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>
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>
Karel Zak [Fri, 22 Jul 2011 23:27:39 +0000 (01:27 +0200)]
libmount: cleanup docs
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Fri, 22 Jul 2011 14:39:32 +0000 (16:39 +0200)]
libblkid: update docs
Signed-off-by: Karel Zak <kzak@redhat.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Sami Kerola [Sun, 17 Jul 2011 17:51:46 +0000 (19:51 +0200)]
chrt: data type compiler warning fixed
chrt.c:158:16: warning: comparison of integers of different
signs: 'int' and 'unsigned long' [-Wsign-compare]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Thu, 21 Jul 2011 11:00:40 +0000 (13:00 +0200)]
fsck.minix: fix "array subscript is above array bounds"
fsck.minix.c: In function ‘map_block2’:
fsck.minix.c:486:9: warning: array subscript is above array bounds [-Warray-bounds]
The 'blknr' has to be bigger than 7 + 256 + (256 * 256) for i_zone[9].
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jul 2011 10:41:25 +0000 (12:41 +0200)]
minix: remove unnecessary initializations
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jul 2011 10:22:46 +0000 (12:22 +0200)]
minix: add MINIX_ prefix to some global macros
... and remove some tailing whitespaces.
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jul 2011 10:13:33 +0000 (12:13 +0200)]
minix: cleanup global variables and macros
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Thu, 21 Jul 2011 09:26:42 +0000 (11:26 +0200)]
Merge branch 'minix' of https://github.com/kerolasa/lelux-utiliteetit
* 'minix' of https://github.com/kerolasa/lelux-utiliteetit:
libblkid: move MINIX_MAXPARTITIONS to minix.h
minix: move globals and inline functions to minix_programs.h
libblkid: use MINIX_BLOCK_SIZE from minix.h
libblkid: use superblock structure from minix.h
include: move minix.h to include directory
include: remove kernel headers from minix.h
include: minix.h: use data types from stdint.h
Conflicts:
disk-utils/Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jul 2011 19:24:20 +0000 (21:24 +0200)]
libmount: fix mtab update for "none" source
tab_parse.c:mnt_parse_mountinfo_line parses "none" in src as NULL,
tab_update.c:fprintf_mtab_fs sets m1 to NULL instead of "none" and
returns -ENOMEM
tab_update.c:update_table says "write entry failed: Success", as errno
hasn't been set, and gotos to leave, leaving mtab not updated.
Addresses-debian-bug: 634871
Reported-by: Tomas Janousek <tomi@nomi.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jul 2011 19:15:43 +0000 (21:15 +0200)]
libmount: cleanup code for "none" source and fstype, fix mem leak
Signed-off-by: Karel Zak <kzak@redhat.com>
Sami Kerola [Wed, 20 Jul 2011 18:39:01 +0000 (20:39 +0200)]
libblkid: move MINIX_MAXPARTITIONS to minix.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 18:28:55 +0000 (20:28 +0200)]
minix: move globals and inline functions to minix_programs.h
Global variables and inline functions are moved from minix.h to
minix_programs.h which is included in mkfs.minix and fsck.minix.
The minix.h will have only struct definitions etc generic
contents which is reasonable to share with utilities and
libraries.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 18:13:08 +0000 (20:13 +0200)]
libblkid: use MINIX_BLOCK_SIZE from minix.h
In the minix.h two definitions where renamed, so that the single
definition is reusable in fsck.minix, mkfs.minix and libblkid.
BLOCK_SIZE_BITS -> MINIX_BLOCK_SIZE_BITS
BLOCK_SIZE -> MINIX_BLOCK_SIZE
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 14 Jul 2011 15:27:33 +0000 (17:27 +0200)]
libblkid: use superblock structure from minix.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 14 Jul 2011 15:26:16 +0000 (17:26 +0200)]
include: move minix.h to include directory
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 14 Jul 2011 15:25:07 +0000 (17:25 +0200)]
include: remove kernel headers from minix.h
This clean up is purely cosmetic. Perprocessor could never use
the includes as KERNEL_INCLUDES_ARE_CLEAN variable does not get
set anywhere.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Thu, 14 Jul 2011 15:24:10 +0000 (17:24 +0200)]
include: minix.h: use data types from stdint.h
The kernel types (e.g. u32, s64) are unexpected in util-linux.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Karel Zak [Wed, 20 Jul 2011 15:03:24 +0000 (17:03 +0200)]
dmesg: allow to print time delta without timestamp
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jul 2011 13:50:34 +0000 (15:50 +0200)]
dmesg: mark some options mutually exclusive
Reported-by: "Voelker, Bernhard" <bernhard.voelker@siemens-enterprise.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Karel Zak [Wed, 20 Jul 2011 12:26:45 +0000 (14:26 +0200)]
dmesg: add --ctime to print human readable timestamps
Based on patch from "corentin.labbe" <corentin.labbe@geomatys.fr>.
Signed-off-by: Karel Zak <kzak@redhat.com>
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>