]> err.no Git - util-linux/log
util-linux
13 years agoMerge remote branch 'origin/master' master
LaMont Jones [Tue, 1 Feb 2011 03:15:49 +0000 (20:15 -0700)]
Merge remote branch 'origin/master'

Conflicts:
mount/mount.8
mount/mount.c

13 years agolibblkid: conditionalise parts from blkid/topology for Linux
Fabian Groffen [Tue, 25 Jan 2011 21:48:15 +0000 (22:48 +0100)]
libblkid: conditionalise parts from blkid/topology for Linux

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: shell syntax fix in autogen.sh
Sami Kerola [Wed, 26 Jan 2011 19:01:33 +0000 (20:01 +0100)]
build-sys: shell syntax fix in autogen.sh

Use of == as synonym of single = sign backfires on systems where
/bin/sh is dash, like with Ubuntu.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agomount: fix parsing offset= followed by more options
Petr Uzel [Wed, 26 Jan 2011 11:17:00 +0000 (12:17 +0100)]
mount: fix parsing offset= followed by more options

mount does not parse parse offset= option if it is followed by other
options.  In umount, the parsing is done with the get_value() function.
This patch moves get_value to fstab.c (with new name get_option_value())
and fixes mount to use the function.

[kzak@redhat.com: - rename to get_option_value()
  - use fstab.c rather than sundries.c]

Novell bugzilla: #666150

Reported-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: provide missing strnlen from strutils
Fabian Groffen [Tue, 25 Jan 2011 21:45:51 +0000 (22:45 +0100)]
build-sys: provide missing strnlen from strutils

Solaris lacks strnlen, provide it from strutils.c.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agoswapon: make needlessly global variables static
Tobias Klauser [Fri, 21 Jan 2011 15:44:18 +0000 (16:44 +0100)]
swapon: make needlessly global variables static

Also constify the option array.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
13 years agoprovide a workaround if program_invocation_short_name is missing
Fabian Groffen [Tue, 25 Jan 2011 20:40:46 +0000 (21:40 +0100)]
provide a workaround if program_invocation_short_name is missing

Try some replacements, such as getexecname() on Solaris and __progname
on BSDs and Darwin.  When not found, base program_invocation_short_name
on the source filename it is used in, as not to require argv[0] to be
passed along.  This latter approach is not dynamic, but doesn't require
code changes for all places where program_invocation_short_name is used
now.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: enable lsblk and libmount for Linux only
Karel Zak [Mon, 31 Jan 2011 13:18:46 +0000 (14:18 +0100)]
build-sys: enable lsblk and libmount for Linux only

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: fix atime description in mount.8 man page
Karel Zak [Thu, 27 Jan 2011 13:04:18 +0000 (14:04 +0100)]
mount: fix atime description in mount.8 man page

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=665376
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.19-rc3)
Karel Zak [Tue, 25 Jan 2011 16:21:53 +0000 (17:21 +0100)]
build-sys: release++ (v2.19-rc3)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Tue, 25 Jan 2011 16:13:16 +0000 (17:13 +0100)]
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: skip non-compiled libmount tests
Karel Zak [Tue, 25 Jan 2011 15:36:28 +0000 (16:36 +0100)]
tests: skip non-compiled libmount tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: don't compile tests by default
Karel Zak [Tue, 25 Jan 2011 15:27:16 +0000 (16:27 +0100)]
libmount: don't compile tests by default

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: fix debug message
Karel Zak [Tue, 25 Jan 2011 14:51:08 +0000 (15:51 +0100)]
libmount: fix debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.19-rc2)
Karel Zak [Tue, 25 Jan 2011 12:10:23 +0000 (13:10 +0100)]
build-sys: release++ (v2.19-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Tue, 25 Jan 2011 11:59:47 +0000 (12:59 +0100)]
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Tue, 25 Jan 2011 11:46:05 +0000 (12:46 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Tue, 25 Jan 2011 11:44:43 +0000 (12:44 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: update lscpu tests on x86_64
Karel Zak [Tue, 25 Jan 2011 10:36:25 +0000 (11:36 +0100)]
tests: update lscpu tests on x86_64

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: compile tests
Karel Zak [Tue, 25 Jan 2011 10:19:00 +0000 (11:19 +0100)]
libmount: compile tests

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agocolumn: data type mismatch compiler warning fixes
Sami Kerola [Sun, 23 Jan 2011 14:40:19 +0000 (15:40 +0100)]
column: data type mismatch compiler warning fixes

Following warnings will longer appear when one will compile with
gcc flags -Wall -Wextra -pedantic

column.c:364:2: warning: comparison of unsigned expression < 0 is always false
column.c:369:2: warning: comparison of unsigned expression < 0 is always false

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agocfdisk: data type mismatch, and other, compiler warning fixes
Sami Kerola [Sun, 23 Jan 2011 14:40:18 +0000 (15:40 +0100)]
cfdisk: data type mismatch, and other, compiler warning fixes

Following warnings will longer appear when one will compile with
gcc flags -Wall -Wextra -pedantic

cfdisk.c:475:3: warning: comparison of unsigned expression < 0 is always false
cfdisk.c:487:16: warning: comparison between signed and unsigned integer expressions
cfdisk.c:492:14: warning: comparison between signed and unsigned integer expressions
cfdisk.c:565:19: warning: comparison between signed and unsigned integer expressions
cfdisk.c:569:19: warning: comparison between signed and unsigned integer expressions
cfdisk.c:1070:14: warning: comparison between signed and unsigned integer expressions
cfdisk.c:1568:5: warning: missing initializer
cfdisk.c:1568:5: warning: (near initialization for 'tmp_ext.volume_label')

mbsalign.c:131:2: warning: comparison of unsigned expression >= 0 is always true

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibmount: fix user= usage
Karel Zak [Tue, 25 Jan 2011 00:11:37 +0000 (01:11 +0100)]
libmount: fix user= usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve status check, minor cleanups
Karel Zak [Mon, 24 Jan 2011 23:26:47 +0000 (00:26 +0100)]
libmount: improve status check, minor cleanups

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude: [tt] enlarge output buffer
Karel Zak [Mon, 24 Jan 2011 23:24:17 +0000 (00:24 +0100)]
include: [tt] enlarge output buffer

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rename mount.sym -> libmount.sym
Karel Zak [Mon, 24 Jan 2011 13:18:31 +0000 (14:18 +0100)]
libmount: rename mount.sym -> libmount.sym

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add mnt_context_get_{source,target,fstype}
Karel Zak [Mon, 24 Jan 2011 12:59:17 +0000 (13:59 +0100)]
libmount: add mnt_context_get_{source,target,fstype}

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: ignore device name used in some fdisk and blkid tests
Francesco Cosoleto [Mon, 24 Jan 2011 05:41:58 +0000 (06:41 +0100)]
tests: ignore device name used in some fdisk and blkid tests

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: more meaningful error messages (use err.h)
Francesco Cosoleto [Sun, 23 Jan 2011 21:58:14 +0000 (22:58 +0100)]
fdisk: more meaningful error messages (use err.h)

[kzak@redhat.com: - minor changes in error messages]

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: use xalloc lib
Francesco Cosoleto [Sun, 23 Jan 2011 21:51:21 +0000 (22:51 +0100)]
fdisk: use xalloc lib

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: replace fatal(usage) with a separate usage() function
Francesco Cosoleto [Sun, 23 Jan 2011 21:51:20 +0000 (22:51 +0100)]
fdisk: replace fatal(usage) with a separate usage() function

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: add exFAT to MBR partition type 0x7
Jon Grant [Mon, 17 Jan 2011 22:47:07 +0000 (22:47 +0000)]
fdisk: add exFAT to MBR partition type 0x7

Signed-off-by: Jon Grant<jg@jguk.org>
13 years agolibmount: _SC_GETPW_R_SIZE_MAX portability issue
Karel Zak [Sun, 23 Jan 2011 21:37:22 +0000 (22:37 +0100)]
libmount: _SC_GETPW_R_SIZE_MAX portability issue

Addresses: https://bugs.gentoo.org/show_bug.cgi?id=350340
Reported-by: Alan Hourihane <alanh@fairlite.co.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoremaining util-linux-ng to util-linux
Sami Kerola [Wed, 19 Jan 2011 08:58:03 +0000 (09:58 +0100)]
remaining util-linux-ng to util-linux

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agowall: document -n option
Davidlohr Bueso [Tue, 18 Jan 2011 14:04:32 +0000 (11:04 -0300)]
wall: document -n option

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agoinclude: emulate dirfd when necessary
Fabian Groffen [Fri, 21 Jan 2011 16:48:14 +0000 (17:48 +0100)]
include: emulate dirfd when necessary

dirfd is not available on Solaris 10, it is available on latest
OpenSolaris releases though.  Do some autoconf trickery to determine if
providing an alternative dirfd function is necessary and possible.

shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will
lose it's dd_fd member again.  Rearrange defines and includes to make
sense per comments, and not conflict on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agolib: [xalloc] don't use hardcoded return code
Karel Zak [Sun, 23 Jan 2011 20:28:19 +0000 (21:28 +0100)]
lib: [xalloc] don't use hardcoded return code

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup API, remove typedef
Karel Zak [Fri, 21 Jan 2011 23:09:34 +0000 (00:09 +0100)]
libmount: cleanup API, remove typedef

 - replace mnt_ with libmnt_ prefix for types (the old prefix was too generic)
 - remove typedef, use struct everywhere
 - use shorter functions names (s/userspace/user/; s/mountflags/mflags/)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: add functions for mount.<type> helpers
Karel Zak [Thu, 20 Jan 2011 14:32:40 +0000 (15:32 +0100)]
libmount: add functions for mount.<type> helpers

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: rename mount.h to libmount.h
Karel Zak [Wed, 19 Jan 2011 22:51:12 +0000 (23:51 +0100)]
libmount: rename mount.h to libmount.h

The mount.h file name is too generic.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: split mnt_context_do_mount()
Karel Zak [Wed, 19 Jan 2011 21:11:55 +0000 (22:11 +0100)]
libmount: split mnt_context_do_mount()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: update ext{3,4} options in mount.8
Karel Zak [Fri, 21 Jan 2011 11:12:38 +0000 (12:12 +0100)]
mount: update ext{3,4} options in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodon't declare usage() without parametr
Karel Zak [Fri, 21 Jan 2011 00:00:18 +0000 (01:00 +0100)]
don't declare usage() without parametr

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agouse uint32_t instead of u_int32_t
Fabian Groffen [Tue, 18 Jan 2011 16:52:07 +0000 (17:52 +0100)]
use uint32_t instead of u_int32_t

Solaris doesn't have u_int32_t, use standards uint32_t instead

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agobuild-sys: check for paths.h
Fabian Groffen [Mon, 17 Jan 2011 21:15:31 +0000 (22:15 +0100)]
build-sys: check for paths.h

paths.h doesn't exist on Solaris

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agolibblkid: add blkdev.h to blkidP.h
Karel Zak [Thu, 20 Jan 2011 22:37:16 +0000 (23:37 +0100)]
libblkid: add blkdev.h to blkidP.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomake _IO macros available on Solaris
Fabian Groffen [Mon, 17 Jan 2011 21:00:35 +0000 (22:00 +0100)]
make _IO macros available on Solaris

The _IO macro is defined in sys/ioccom.h on various platforms.  However,
on Solaris it isn't included by ioctl.h, so include it explicitly if
available.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agomake major and minor available on Solaris
Karel Zak [Thu, 20 Jan 2011 22:16:41 +0000 (23:16 +0100)]
make major and minor available on Solaris

Reported-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: link with socketlibs when necessary
Fabian Groffen [Mon, 17 Jan 2011 20:14:54 +0000 (21:14 +0100)]
build-sys: link with socketlibs when necessary

To link an object which references socket functions, you need to link
with -lsocket -lnsl on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agobuild-sys: check for loff_t, it may not exist
Fabian Groffen [Mon, 17 Jan 2011 20:04:04 +0000 (21:04 +0100)]
build-sys: check for loff_t, it may not exist

On some systems, loff_t does not exist.  Define it as int64_t in that
case.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agolibmount: add mnt_context_is_* functions
Karel Zak [Wed, 19 Jan 2011 16:22:28 +0000 (17:22 +0100)]
libmount: add mnt_context_is_* functions

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add rpmatch.h to Makefile.am
Karel Zak [Wed, 19 Jan 2011 08:42:28 +0000 (09:42 +0100)]
build-sys: add rpmatch.h to Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolscpu: fix 64bit CPU detection
Karel Zak [Wed, 19 Jan 2011 08:34:14 +0000 (09:34 +0100)]
lscpu: fix 64bit CPU detection

Note that the code is still not able to detect 64bit on sparcs and
ppc.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: cleanup internal API
Karel Zak [Tue, 18 Jan 2011 11:26:17 +0000 (12:26 +0100)]
libmount: cleanup internal API

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkfs.cramfs: use symbolic exit codes
Sami Kerola [Mon, 3 Jan 2011 20:42:03 +0000 (21:42 +0100)]
mkfs.cramfs: use symbolic exit codes

For some reason original author had defined symbolic exit codes,
but had not use them. One could argue the symbolic exit codes for
mkfs should go to local exit header which would be included to
all commands that exit with non zero or one return code.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agofdisk: add description for partition type 0x27
Karel Zak [Mon, 17 Jan 2011 16:03:25 +0000 (17:03 +0100)]
fdisk: add description for partition type 0x27

Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkfs: general cleanups
Davidlohr Bueso [Mon, 6 Dec 2010 14:10:59 +0000 (11:10 -0300)]
mkfs: general cleanups

Use xalloc, remove unused headers, use EXIT_* constants.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agouuidd: mention -q in uuidd.8
Petr Uzel [Fri, 14 Jan 2011 13:36:12 +0000 (14:36 +0100)]
uuidd: mention -q in uuidd.8

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agobuild-sys: improve check for crypt
Fabian Groffen [Wed, 12 Jan 2011 20:01:07 +0000 (21:01 +0100)]
build-sys: improve check for crypt

Check for crypt.h existence, and use it if available over using unistd.h
for which a certain feature level has to be set to export a definition
for crypt.  On Solaris this set causes a standards conflict in the
headers, because at the time of this check C99 mode is already enabled,
which implies certain standards non-compatible with _XOPEN_SOURCE.

 92  #define _XOPEN_SOURCE
 93  #include <unistd.h>

configure:16259: gcc -std=gnu99 -c -g -O2  conftest.c >&5
In file included from /usr/include/unistd.h:18,
                 from conftest.c:93:
/prefix/gentoo/usr/lib/gcc/i386-pc-solaris2.10/4.4.5/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"

configure.ac: improve crypt check
login-utils/my_crypt.h: replace old GNU_LIBRARY check with autoconf
define for crypt.h

[kzak@redhat.com: - remove my_crypt.h]

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: use WORDS_BIGENDIAN to determine platform byte-order
Fabian Groffen [Sat, 8 Jan 2011 18:49:38 +0000 (19:49 +0100)]
build-sys: use WORDS_BIGENDIAN to determine platform byte-order

Autoconf contains the right magic to determine the endianness on many
platforms next to Linux.  This reverses previous commits to move away
from WORDS_BIGENDIAN:
"use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN"

This is necessary to compile on non Linux platforms like Darwin and
Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
13 years agowall: add usage function
Davidlohr Bueso [Thu, 6 Jan 2011 12:08:43 +0000 (09:08 -0300)]
wall: add usage function

Instead of using an ugly goto statement, we can add a proper usage function.
This also adds the undocumented '-n' option to the output string.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agopartx: fix typo in partx.8
Davidlohr Bueso [Wed, 5 Jan 2011 20:08:11 +0000 (17:08 -0300)]
partx: fix typo in partx.8

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agodisk-utils: fix manpage typos
Davidlohr Bueso [Wed, 5 Jan 2011 19:54:19 +0000 (16:54 -0300)]
disk-utils: fix manpage typos

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agocolumn: fix column.1 typo
Davidlohr Bueso [Wed, 5 Jan 2011 19:54:16 +0000 (16:54 -0300)]
column: fix column.1 typo

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agofindmnt: fix manpage typos
Davidlohr Bueso [Wed, 5 Jan 2011 19:54:11 +0000 (16:54 -0300)]
findmnt: fix manpage typos

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agosys-utils: fix manpage typos
Davidlohr Bueso [Wed, 5 Jan 2011 19:54:05 +0000 (16:54 -0300)]
sys-utils: fix manpage typos

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agoschedutils: fix typos
Davidlohr Bueso [Wed, 5 Jan 2011 19:54:01 +0000 (16:54 -0300)]
schedutils: fix typos

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agoumount: call is_loop_autoclear() for all loopdevs
Karel Zak [Mon, 17 Jan 2011 13:00:53 +0000 (14:00 +0100)]
umount: call is_loop_autoclear() for all loopdevs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude: fix list.h ifdefs
Karel Zak [Fri, 14 Jan 2011 14:49:07 +0000 (15:49 +0100)]
include: fix list.h ifdefs

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update TODO
Karel Zak [Fri, 14 Jan 2011 13:53:45 +0000 (14:53 +0100)]
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update TODO file
Karel Zak [Thu, 13 Jan 2011 12:34:31 +0000 (13:34 +0100)]
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: improve fstab/mtab options usage
Karel Zak [Thu, 13 Jan 2011 09:43:33 +0000 (10:43 +0100)]
libmount: improve fstab/mtab options usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: fix reference to cifs-utils in mount.8
Karel Zak [Tue, 11 Jan 2011 15:25:35 +0000 (16:25 +0100)]
mount: fix reference to cifs-utils in mount.8

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=651035
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoTODO: use rpmatch() for sfdisk
Karel Zak [Tue, 11 Jan 2011 11:49:47 +0000 (12:49 +0100)]
TODO: use rpmatch() for sfdisk

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: fix gcc warning
Karel Zak [Mon, 10 Jan 2011 13:41:42 +0000 (14:41 +0100)]
mount: fix gcc warning

13 years agolibmount: add mount(8) sample
Karel Zak [Mon, 10 Jan 2011 13:31:23 +0000 (14:31 +0100)]
libmount: add mount(8) sample

This code is going to be used as mount(8) replacement in the next
major release (2.20). For now this mount(8) implementation does not
support loopdevs initialization.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibmount: properly canonicalize source and target
Karel Zak [Mon, 10 Jan 2011 13:29:51 +0000 (14:29 +0100)]
libmount: properly canonicalize source and target

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomount: canonicalize paths in HAVE_LIBMOUNT_MOUNT code
Karel Zak [Mon, 10 Jan 2011 11:43:32 +0000 (12:43 +0100)]
mount: canonicalize paths in HAVE_LIBMOUNT_MOUNT code

Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolsblk: use "RM" for removable
Karel Zak [Mon, 10 Jan 2011 10:18:51 +0000 (11:18 +0100)]
lsblk: use "RM" for removable

Suggested by Przemoc <noreply-comment@blogger.com> at my blog.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agounshare: fix SIGSEGV on invalid command line option
Alexey Gladkov [Wed, 5 Jan 2011 18:22:51 +0000 (21:22 +0300)]
unshare: fix SIGSEGV on invalid command line option

$ unshare --hel
Segmentation fault

The last element of longopts has to be filled with zeros.

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
13 years agofdisk: re-print prompt after maybe_exit()
Karel Zak [Wed, 5 Jan 2011 15:50:47 +0000 (16:50 +0100)]
fdisk: re-print prompt after maybe_exit()

after
Do you really want to quit? n

the read_chars() has to re-print the original prompt and ask again
for new input. For example:

Partition number (1-4, default 3):               <-- CTRL-D
Do you really want to quit? n
Partition number (1-4, default 3): 3             <-- ask again
First sector (411648-1023999, default 411648):

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoinclude: add fallback for rpmatch()
Francesco Cosoleto [Sun, 2 Jan 2011 21:58:13 +0000 (22:58 +0100)]
include: add fallback for rpmatch()

Simple replacement code with hardcoded y/n responses to allow
compilation on systems without rpmatch() such as Cygwin.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agofdisk: quit with a single CTRL-D, confirm if necessary
Francesco Cosoleto [Sun, 2 Jan 2011 21:58:12 +0000 (22:58 +0100)]
fdisk: quit with a single CTRL-D, confirm if necessary

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agobuild-sys: release++ (v2.19-rc1)
Karel Zak [Wed, 5 Jan 2011 12:41:44 +0000 (13:41 +0100)]
build-sys: release++ (v2.19-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: ignore generated ltmain.sh
Karel Zak [Wed, 5 Jan 2011 12:39:35 +0000 (13:39 +0100)]
build-sys: ignore generated ltmain.sh

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.19 ReleaseNotes
Karel Zak [Wed, 5 Jan 2011 12:26:38 +0000 (13:26 +0100)]
docs: update v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: use generated libtool-2 stuff
Karel Zak [Wed, 5 Jan 2011 12:17:12 +0000 (13:17 +0100)]
build-sys: use generated libtool-2 stuff

The commit 60a4edd66200be829560dce0d41a02fc70cef4f5 temporary disabled
libtool-2 in autogen.sh. It seems that libtool-2 in available in
many distributions now, so we don't have to manage the generated .m4
libtool files in git anymore.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: refresh gl and zh_TW
Karel Zak [Wed, 5 Jan 2011 12:05:18 +0000 (13:05 +0100)]
po: refresh gl and zh_TW

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: cleanup autogen.sh
Karel Zak [Wed, 5 Jan 2011 11:49:05 +0000 (12:49 +0100)]
build-sys: cleanup autogen.sh

Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: correct spelling mistakes in DEPRECATED file
Jon Grant [Sat, 1 Jan 2011 17:21:46 +0000 (17:21 +0000)]
docs: correct spelling mistakes in DEPRECATED file

Signed-off-by: Jon Grant <jg@jguk.org>
13 years agodocs: add v2.19 ReleaseNotes
Karel Zak [Tue, 4 Jan 2011 23:41:00 +0000 (00:41 +0100)]
docs: add v2.19 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Tue, 4 Jan 2011 22:07:28 +0000 (23:07 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Tue, 4 Jan 2011 21:57:58 +0000 (22:57 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: add zh_TW.po (from translationproject.org)
Wei-Lun Chao [Tue, 4 Jan 2011 21:48:06 +0000 (22:48 +0100)]
po: add zh_TW.po (from translationproject.org)

13 years agopo: add gl.po (from translationproject.org)
Fran Diéguez [Tue, 4 Jan 2011 21:48:06 +0000 (22:48 +0100)]
po: add gl.po (from translationproject.org)

13 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Tue, 4 Jan 2011 21:48:05 +0000 (22:48 +0100)]
po: update vi.po (from translationproject.org)

13 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Tue, 4 Jan 2011 21:48:05 +0000 (22:48 +0100)]
po: update pl.po (from translationproject.org)

13 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Tue, 4 Jan 2011 21:48:05 +0000 (22:48 +0100)]
po: update nl.po (from translationproject.org)

13 years agopo: update ja.po (from translationproject.org)
Makoto Kato [Tue, 4 Jan 2011 21:48:05 +0000 (22:48 +0100)]
po: update ja.po (from translationproject.org)

13 years agopo: update hu.po (from translationproject.org)
Gabor Kelemen [Tue, 4 Jan 2011 21:48:05 +0000 (22:48 +0100)]
po: update hu.po (from translationproject.org)