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
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>
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.
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
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: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
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.
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>
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>
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.
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.
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