]>
git.ipfire.org Git - thirdparty/util-linux.git/log
Sami Kerola [Wed, 20 Jul 2011 20:21:09 +0000 (22:21 +0200)]
mkfs.cramfs: error printing fixes
The patch will fix few starange looking errors such as:
$ mkfs.cramfs -N foo
invalid endianness given. Must be 'big', 'little', or 'host': Success
to be more sensible:
mkfs.cramfs: invalid endianness given. Must be 'big', 'little', or 'host'
And there are couple new return value checks to stop command if
out file cannot be opened, or an IO error occurs.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:19:49 +0000 (22:19 +0200)]
mkfs.cramfs: convert spaces to tabs
The conversion is applied only to the line beginnings.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:17:02 +0000 (22:17 +0200)]
mkfs.cramfs: validate numeric user inputs
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:16:08 +0000 (22:16 +0200)]
mkfs.cramfs: few symbolic exit codes where missing
This makes commit
89f56db1842e78bea0c6bc75028c3754489a9ad3 complete.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:13:32 +0000 (22:13 +0200)]
md5: use symbolical digest length
Magic hash lenght number 16 is turned to a definition MD5LENGTH,
and put into use everywhere where md5 checksum is in use.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:12:40 +0000 (22:12 +0200)]
mkfs.cramfs: use program_invocation_short_name
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:11:28 +0000 (22:11 +0200)]
mkfs.cramfs: use xalloc.h
Before this commit two strdup calls, in line 366 and 374, where
able to fail silently and cause a rare bug.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:10:44 +0000 (22:10 +0200)]
fsck.cramfs: add missed strings to translation
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:08:48 +0000 (22:08 +0200)]
fsck.cramfs: coding style
Lots of braces got to be removed, which can cause something to
break even everything is double checked.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:03:47 +0000 (22:03 +0200)]
fsck.cramfs: use xalloc.h
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:03:08 +0000 (22:03 +0200)]
fsck.cramfs: retire die function
Replaced with err{,x} from libc.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:01:02 +0000 (22:01 +0200)]
cramfs.h: coding style
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 20:00:02 +0000 (22:00 +0200)]
cramfs: use stdint.h instead of u{8,16,32}
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Sami Kerola [Wed, 20 Jul 2011 19:57:11 +0000 (21:57 +0200)]
cramfs_common: coding style
Fix line lengths and white spaces.
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>
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>