]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
14 years agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Sat, 25 Jun 2011 15:35:59 +0000 (17:35 +0200)] 
Merge branch 'master', remote-tracking branch 'upstream/master'

14 years agolibmount: allow to convert /dev/loopN to backing filename
Karel Zak [Thu, 23 Jun 2011 14:06:27 +0000 (16:06 +0200)] 
libmount: allow to convert /dev/loopN to backing filename

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: cleanup return codes in mount sample
Karel Zak [Thu, 23 Jun 2011 13:19:37 +0000 (15:19 +0200)] 
libmount: cleanup return codes in mount sample

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add support for mount -a
Karel Zak [Thu, 23 Jun 2011 13:07:55 +0000 (15:07 +0200)] 
libmount: add support for mount -a

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: fix fstype caching
Karel Zak [Thu, 23 Jun 2011 10:29:00 +0000 (12:29 +0200)] 
libmount: fix fstype caching

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: rename in cache.c
Karel Zak [Thu, 23 Jun 2011 10:24:02 +0000 (12:24 +0200)] 
libmount: rename in cache.c

 * don't use mnt_ prefix for static functions

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: clean up cache.c
Karel Zak [Thu, 23 Jun 2011 10:19:30 +0000 (12:19 +0200)] 
libmount: clean up cache.c

 * rename fields in the cache entry to be more readable...

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add generic function to read table for context
Karel Zak [Wed, 22 Jun 2011 11:34:47 +0000 (13:34 +0200)] 
libmount: add generic function to read table for context

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: allow to set parser callback to context
Karel Zak [Tue, 21 Jun 2011 12:58:37 +0000 (14:58 +0200)] 
libmount: allow to set parser callback to context

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomountpoint: add new command
Karel Zak [Tue, 21 Jun 2011 09:46:36 +0000 (11:46 +0200)] 
mountpoint: add new command

This is libmount based re-implementation of the mountpoint(1) command.
The original implementation is maintained in sysvinit suite.

The mountpoint(1) in util-linux is not enabled by default (for now) --
use --enable-mountpoint to enable the util.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Tue, 21 Jun 2011 07:56:22 +0000 (09:56 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: list all known filesystems/RAIDs (add -k option)
Karel Zak [Mon, 20 Jun 2011 14:42:03 +0000 (16:42 +0200)] 
blkid: list all known filesystems/RAIDs (add -k option)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add debug message
Karel Zak [Mon, 20 Jun 2011 14:11:04 +0000 (16:11 +0200)] 
libblkid: add debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Mon, 20 Jun 2011 14:10:36 +0000 (16:10 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [procutils.c] improve robustness
Karel Zak [Mon, 20 Jun 2011 11:58:41 +0000 (13:58 +0200)] 
lib: [procutils.c] improve robustness

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: move BUILD_SCHEDUTILS to top-level Makefile
Karel Zak [Mon, 20 Jun 2011 11:51:26 +0000 (13:51 +0200)] 
build-sys: move BUILD_SCHEDUTILS to top-level Makefile

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [linux_version.c] simplify version parsing
Karel Zak [Mon, 20 Jun 2011 11:48:40 +0000 (13:48 +0200)] 
lib: [linux_version.c] simplify version parsing

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: detect VMware hypervisor
Stephen Hemminger [Thu, 16 Jun 2011 20:54:07 +0000 (16:54 -0400)] 
lscpu: detect VMware hypervisor

Add detection of VMware.
Tested on VMware Workstation 7.1.4

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
14 years agomisc: hurd build fixes
Samuel Thibault [Mon, 20 Jun 2011 10:48:35 +0000 (12:48 +0200)] 
misc: hurd build fixes

* Make blkdev_is_misaligned return 0 when BLKALIGNOFF is not available.
* Make procutils.c include c.h to get a PATH_MAX replacement.
* Provide agetty.c USE_SYSLOG, DEFAULT_VCTERM and DEFAULT_STERM
  defaults for Hurd.
* Make agetty.c only deal with OFDEL, XCASE and VSWTCH if they are
  available.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: add ufstype=ufs2 to mount.8
Karel Zak [Tue, 14 Jun 2011 21:30:29 +0000 (23:30 +0200)] 
mount: add ufstype=ufs2 to mount.8

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=691338
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologin: fix typos in man page
Karel Zak [Tue, 14 Jun 2011 21:20:12 +0000 (23:20 +0200)] 
login: fix typos in man page

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=675181
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofsck.minix: remove unused variables
Karel Zak [Tue, 14 Jun 2011 15:10:53 +0000 (17:10 +0200)] 
fsck.minix: remove unused variables

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: don't ignore swap UUID if only first byte is zero
Richard W.M. Jones [Mon, 13 Jun 2011 16:43:11 +0000 (17:43 +0100)] 
libblkid: don't ignore swap UUID if only first byte is zero

[kzak@redhat.com: - remove memcmp(zero_uuid, ...), library already
                    checks for empty UUIDs]

Signed-off-by: "Richard W.M. Jones" <rjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkfs.minix: add fs version options
Davidlohr Bueso [Thu, 9 Jun 2011 16:41:12 +0000 (12:41 -0400)] 
mkfs.minix: add fs version options

Like the original minix mkfs, add the -1 and -2 argument options to specify the
version of the filesystem to create.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agomkfs.minix: standardize superblock attribute settings
Davidlohr Bueso [Thu, 9 Jun 2011 16:01:09 +0000 (12:01 -0400)] 
mkfs.minix: standardize superblock attribute settings

Because of the dependence of fs_version, some superblock attributes will vary,
so simplify the logic of assigning values to maxsize and the amount of zones
related to each filesystem, thus making setup_tables() more readable.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agotest_sysinfo: fix printf format
Karel Zak [Tue, 14 Jun 2011 12:22:58 +0000 (14:22 +0200)] 
test_sysinfo: fix printf format

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: Don't use asm/io.h if sys/io.h can't be found
Josiah Worcester [Wed, 8 Jun 2011 22:52:48 +0000 (16:52 -0600)] 
hwclock: Don't use asm/io.h if sys/io.h can't be found

[kzak@redhat.com: - check for obsolete asm/io.h in configure.ac]

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotest_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.
Josiah Worcester [Wed, 8 Jun 2011 22:52:47 +0000 (16:52 -0600)] 
test_sysinfo: Use CHAR_BIT*sizeof(void*) instead of __WORDSIZE.

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
14 years agolib: [tt.c] Fix mbs_width macro for systems without WIDECHAR
Josiah Worcester [Wed, 8 Jun 2011 22:52:46 +0000 (16:52 -0600)] 
lib: [tt.c] Fix mbs_width macro for systems without WIDECHAR

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
14 years agochecktty: Use NGROUPS_MAX instead of NGROUPS
Josiah Worcester [Wed, 8 Jun 2011 22:52:45 +0000 (16:52 -0600)] 
checktty: Use NGROUPS_MAX instead of NGROUPS

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
14 years agofsck, checktty, flock: Use more portable includes.
Josiah Worcester [Wed, 8 Jun 2011 22:52:44 +0000 (16:52 -0600)] 
fsck, checktty, flock: Use more portable includes.

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
14 years agofdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, u_long...
Josiah Worcester [Wed, 8 Jun 2011 22:52:43 +0000 (16:52 -0600)] 
fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, u_long, etc.

Signed-off-by: Josiah Worcester <josiahw@gmail.com>
14 years agolibmount: add mount support for loopdevs
Karel Zak [Fri, 10 Jun 2011 13:39:56 +0000 (15:39 +0200)] 
libmount: add mount support for loopdevs

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [loopdev.c] cleanup flags usage
Karel Zak [Fri, 10 Jun 2011 13:38:13 +0000 (15:38 +0200)] 
lib: [loopdev.c] cleanup flags usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: minor changes in sample program
Karel Zak [Thu, 9 Jun 2011 20:43:51 +0000 (22:43 +0200)] 
libmount: minor changes in sample program

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update blkid MD test
Karel Zak [Thu, 9 Jun 2011 20:21:51 +0000 (22:21 +0200)] 
tests: update blkid MD test

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use top-level directory for libblkid rather than shlibs/blkid
Karel Zak [Thu, 9 Jun 2011 20:04:24 +0000 (22:04 +0200)] 
build-sys: use top-level directory for libblkid rather than shlibs/blkid

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use top-level directory for libmount rather than shlibs/mount
Karel Zak [Thu, 9 Jun 2011 19:59:52 +0000 (21:59 +0200)] 
build-sys: use top-level directory for libmount rather than shlibs/mount

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use top-level directory for libuuid rather than shlibs/uuid
Karel Zak [Thu, 9 Jun 2011 19:54:05 +0000 (21:54 +0200)] 
build-sys: use top-level directory for libuuid rather than shlibs/uuid

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Wed, 8 Jun 2011 12:05:05 +0000 (14:05 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkfs.minix: use inode wrappers
Davidlohr Bueso [Thu, 2 Jun 2011 23:08:46 +0000 (19:08 -0400)] 
mkfs.minix: use inode wrappers

Use a common function for creating the root and bad inode, without worring
about the fs version.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agodocs: update DEPRECATED file
Karel Zak [Wed, 8 Jun 2011 11:22:13 +0000 (13:22 +0200)] 
docs: update DEPRECATED file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agosimpleinit: remove this deprecated set of utils
Karel Zak [Wed, 8 Jun 2011 11:20:37 +0000 (13:20 +0200)] 
simpleinit: remove this deprecated set of utils

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount.8: remove reprecated bh/nobh options from the manual page
Lukas Czerner [Tue, 7 Jun 2011 13:13:44 +0000 (15:13 +0200)] 
mount.8: remove reprecated bh/nobh options from the manual page

Bh and nobh mount option has been deprecated in ext4
(206f7ab4f49a2021fcb8687f25395be77711ddee) and in ext3
(4c4d3901225518ed1a4c938ba15ba09842a00770)
so remove those options from documentation.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
14 years agominix: fix warning
Davidlohr Bueso [Mon, 6 Jun 2011 13:52:30 +0000 (09:52 -0400)] 
minix: fix warning

This patch fixes an unused variable warning.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agofstrim, setarch: replace error() with err()
Francesco Cosoleto [Thu, 2 Jun 2011 19:17:57 +0000 (21:17 +0200)] 
fstrim, setarch: replace error() with err()

This should improve a bit the portability as error() is a GNU extension and
util-linux provides fallbacks for err.h functions.

Fix compilation with icc, broken due to a reference to `__builtin_va_arg_pack'
in error.h using the -gcc default option.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agotests: add lscpu dumps from three Dell's & a Xen
Sami Kerola [Tue, 31 May 2011 18:31:25 +0000 (20:31 +0200)] 
tests: add lscpu dumps from three Dell's & a Xen

x86_64-dell_poweredgeR610
Ubuntu 11.04 kernel 2.6.38-8

x86_64-dell_poweredge1950
Red Hat EL 4.5 kernel 2.6.9-55.ELsmp

x86_64-dell_e4310
Red Hat EL 5.3 kernel 2.6.18-194.17.4.el5

x86_64-el5xen
Red Hat EL 5.6 kernel 2.6.18-238.el5xen

Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
14 years agocfdisk: fix gcc warning (unused variable)
Karel Zak [Wed, 8 Jun 2011 10:50:27 +0000 (12:50 +0200)] 
cfdisk: fix gcc warning (unused variable)

cfdisk.c: In function ‘fp_printf’:
cfdisk.c:1760:12: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofstrim: cast from __u64 to standard C types
Karel Zak [Wed, 8 Jun 2011 10:44:14 +0000 (12:44 +0200)] 
fstrim: cast from __u64 to standard C types

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agohwclock: remove unused variables
Karel Zak [Wed, 8 Jun 2011 10:27:03 +0000 (12:27 +0200)] 
hwclock: remove unused variables

hwclock.c: In function ‘set_hardware_clock’:
hwclock.c:467:7: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
hwclock.c: In function ‘main’:
hwclock.c:1461:7: warning: variable ‘ARCconsole’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocytune: remove unused variable
Karel Zak [Wed, 8 Jun 2011 10:22:21 +0000 (12:22 +0200)] 
cytune: remove unused variable

cytune.c: In function ‘summary’:
cytune.c:105:9: warning: variable ‘j’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agonamei: remove unused variable
Karel Zak [Wed, 8 Jun 2011 10:18:49 +0000 (12:18 +0200)] 
namei: remove unused variable

namei.c: In function ‘print_namei’:
namei.c:368:16: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoblkid: don't free() uninitialized variable
Karel Zak [Wed, 8 Jun 2011 10:16:08 +0000 (12:16 +0200)] 
blkid: don't free() uninitialized variable

blkid.c: In function ‘main’:
blkid.c:656:6: warning: ‘res’ may be used uninitialized in this function [-Wuninitialized]
blkid.c:623:9: note: ‘res’ was declared here

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agologin: cleanup unused variables
Karel Zak [Wed, 8 Jun 2011 09:32:53 +0000 (11:32 +0200)] 
login: cleanup unused variables

login.c: In function ‘main’:
login.c:389:40: warning: variable ‘errsv’ set but not used [-Wunused-but-set-variable]
login.c:389:9: warning: variable ‘ask’ set but not used [-Wunused-but-set-variable]

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: fix uninitialized variable in sample
Karel Zak [Wed, 8 Jun 2011 09:22:25 +0000 (11:22 +0200)] 
libmount: fix uninitialized variable in sample

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocolrm: manual update
Sami Kerola [Mon, 23 May 2011 20:50:07 +0000 (22:50 +0200)] 
colrm: manual update

Inform about long, help & version and options.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolrm: gotos, long options and argument checking
Sami Kerola [Mon, 23 May 2011 20:42:15 +0000 (22:42 +0200)] 
colrm: gotos, long options and argument checking

Unnecessary goto jumps where replaced by a simple function, and
two loops. Long options support help and version, and the two
arguments this command has are now validated with strtoul_or_err.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocol: check with strtol_or_err option argument
Sami Kerola [Mon, 23 May 2011 19:14:16 +0000 (21:14 +0200)] 
col: check with strtol_or_err option argument

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolib: [linux_version.c] accommodate two-component linux version (e.g. 3.0)
Karel Zak [Mon, 6 Jun 2011 10:35:26 +0000 (12:35 +0200)] 
lib: [linux_version.c] accommodate two-component linux version (e.g. 3.0)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: canonicalize fstab mnt_dir
Karel Zak [Thu, 2 Jun 2011 12:53:42 +0000 (14:53 +0200)] 
mount: canonicalize fstab mnt_dir

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=709681
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopartx: remove unused headers
Davidlohr Bueso [Wed, 1 Jun 2011 23:27:14 +0000 (19:27 -0400)] 
partx: remove unused headers

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agofsck.minix: use common functionalitly
Davidlohr Bueso [Wed, 1 Jun 2011 22:33:07 +0000 (18:33 -0400)] 
fsck.minix: use common functionalitly

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agomkfs.minix: use common functionality
Davidlohr Bueso [Wed, 1 Jun 2011 22:33:02 +0000 (18:33 -0400)] 
mkfs.minix: use common functionality

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agominix: add common functionality
Davidlohr Bueso [Wed, 1 Jun 2011 22:32:56 +0000 (18:32 -0400)] 
minix: add common functionality

Unite common features and code present in mkfs.minix and fsck.minix into a
single minix.h header. This eases the reading and modification of both
programs.

Futhermore:
    - Replace version2 variable with fs_version (handy when v3 support
      comes along)
    - For superblock attributes and inode information, use small inline
      functions instead of ugly macros.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agolibmount: use mnt_table_get_fs_root() in utab code
Karel Zak [Thu, 2 Jun 2011 11:25:19 +0000 (13:25 +0200)] 
libmount: use mnt_table_get_fs_root() in utab code

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: colcrt manual update
Sami Kerola [Tue, 24 May 2011 20:56:44 +0000 (22:56 +0200)] 
docs: colcrt manual update

Inform about long, help & version and options.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolctr: use long options and clean coding style
Sami Kerola [Tue, 24 May 2011 20:56:43 +0000 (22:56 +0200)] 
colctr: use long options and clean coding style

This commit introduces help & version options.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agotests: add colrm basic test
Sami Kerola [Tue, 24 May 2011 20:56:42 +0000 (22:56 +0200)] 
tests: add colrm basic test

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolib: add strtoul_or_err() function
Sami Kerola [Tue, 24 May 2011 20:56:38 +0000 (22:56 +0200)] 
lib: add strtoul_or_err() function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocol: coding style changes
Sami Kerola [Tue, 24 May 2011 20:56:37 +0000 (22:56 +0200)] 
col: coding style changes

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: col manual update
Sami Kerola [Tue, 24 May 2011 20:56:36 +0000 (22:56 +0200)] 
docs: col manual update

Long options, with help & version, added. The commint also has
previously undocumented switch `-h convert spaces to tabs' as a
part of col.1 man page.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocol: use long options
Sami Kerola [Tue, 24 May 2011 20:56:35 +0000 (22:56 +0200)] 
col: use long options

This commit introduces help & version options.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agopg: return value warning fix
Sami Kerola [Tue, 24 May 2011 20:56:34 +0000 (22:56 +0200)] 
pg: return value warning fix

void function 'makeprint' should not return void expression

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agorev: mark signo unused in sig_handler
Sami Kerola [Tue, 24 May 2011 20:56:33 +0000 (22:56 +0200)] 
rev: mark signo unused in sig_handler

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agopg: use size_t for wcstombs() return code
Sami Kerola [Tue, 24 May 2011 20:56:32 +0000 (22:56 +0200)] 
pg: use size_t for wcstombs() return code

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomount: use libmount to detect already mounted bind mounts
Karel Zak [Tue, 31 May 2011 16:02:29 +0000 (18:02 +0200)] 
mount: use libmount to detect already mounted bind mounts

It's pretty tricky to detect that a bind mount from fstab is already
mounted on system without /etc/mtab. Let's use functionality from
libmount.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=701176
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: add mnt_table_is_mounted()
Karel Zak [Tue, 31 May 2011 16:01:36 +0000 (18:01 +0200)] 
libmount: add mnt_table_is_mounted()

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: use sysfs_init() more carefully
Karel Zak [Mon, 30 May 2011 20:59:35 +0000 (22:59 +0200)] 
libblkid: use sysfs_init() more carefully

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update TODO file
Karel Zak [Mon, 30 May 2011 15:22:07 +0000 (17:22 +0200)] 
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add some debug messages
Karel Zak [Mon, 30 May 2011 15:20:27 +0000 (17:20 +0200)] 
libblkid: add some debug messages

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [loopdev.c] add module for work loop devices
Karel Zak [Mon, 30 May 2011 14:37:31 +0000 (16:37 +0200)] 
lib: [loopdev.c] add module for work loop devices

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolib: [sysfs.c] fix double free
Karel Zak [Fri, 27 May 2011 12:47:40 +0000 (14:47 +0200)] 
lib: [sysfs.c] fix double free

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoThis adds a second parameter to size_to_human_string() to return a
Francesco Cosoleto [Thu, 26 May 2011 13:17:25 +0000 (15:17 +0200)] 
This adds a second parameter to size_to_human_string() to return a
string with a different format based on the following flags:

        SIZE_SUFFIX_1LETTER  = "1K"
        SIZE_SUFFIX_3LETTER  = "1KiB",
        SIZE_SUFFIX_SPACE    = "1 KiB" or "1 K"

[kzak@redhat.com: - rename flags to SIZE_SUFFIX_* format,
                  - fix suffix[] buffer size
                  - add 3 letter version to the test]

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: use AUTOMAKE_OPTIONS = gnu
Sami Kerola [Sat, 21 May 2011 13:02:10 +0000 (15:02 +0200)] 
build-sys: use AUTOMAKE_OPTIONS = gnu

The change will cause make dist to have INSTALL file from
automake release, which hopefully is more up to date than
manually maintained version.

The gnu option will also require ChangeLog to be present, and
without doubts no-one wants to maintain that manually. I added
file to reference link to internet git repository view.

At the time of make dist current tag is added to the ChangeLog
reference which will make release to point exactly to the point
where changes ended. Minor drawback is that untagged make dist
releases will contain a broken link in ChangeLog.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: stop building line(1) by default
Sami Kerola [Sat, 21 May 2011 13:02:09 +0000 (15:02 +0200)] 
build-sys: stop building line(1) by default

Align build system behaviour with DEPRECATED file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: add required files to dist
Sami Kerola [Sat, 21 May 2011 10:25:54 +0000 (12:25 +0200)] 
build-sys: add required files to dist

Files mkfs.h procutils.h sysfs.h where missing from dist file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agotests: test column(1) with multiple input files
Karel Zak [Thu, 26 May 2011 08:30:23 +0000 (10:30 +0200)] 
tests: test column(1) with multiple input files

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocolumn: fix problems with uninitialized variables
Karel Zak [Thu, 26 May 2011 08:23:50 +0000 (10:23 +0200)] 
column: fix problems with uninitialized variables

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoMerge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into column
Karel Zak [Thu, 26 May 2011 07:54:13 +0000 (09:54 +0200)] 
Merge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into column

* 'column' of git://github.com/kerolasa/lelux-utiliteetit:
  tests: add column tests
  column.c: global variables removed
  column.c: validate numeric user inputs
  column.c: free memory before exit
  column.c: make table function clarification
  column.c: coding style fixes
  column.c: add version printing
  column.c: replace emalloc with xcalloc

14 years agobuild-sys: cleanup lib/ tests
Karel Zak [Wed, 25 May 2011 14:50:44 +0000 (16:50 +0200)] 
build-sys: cleanup lib/ tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: improve blkid__scan_dir
Karel Zak [Tue, 24 May 2011 11:30:48 +0000 (13:30 +0200)] 
libblkid: improve blkid__scan_dir

14 years agodocs: TODO update
Karel Zak [Mon, 23 May 2011 23:15:55 +0000 (01:15 +0200)] 
docs: TODO update

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add ID_PART_ENTRY_{OFFSET,SIZE,DISK}
Karel Zak [Mon, 23 May 2011 11:06:45 +0000 (13:06 +0200)] 
libblkid: add ID_PART_ENTRY_{OFFSET,SIZE,DISK}

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: use partno for partitions mapped by DM
Karel Zak [Mon, 23 May 2011 10:53:18 +0000 (12:53 +0200)] 
libblkid: use partno for partitions mapped by DM

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: found whole-disk for partitions mapped by kpartx
Karel Zak [Mon, 23 May 2011 10:09:08 +0000 (12:09 +0200)] 
libblkid: found whole-disk for partitions mapped by kpartx

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: add column tests
Sami Kerola [Thu, 19 May 2011 20:35:05 +0000 (22:35 +0200)] 
tests: add column tests

Very basic regression tests for the column(1) command.

http://permalink.gmane.org/gmane.linux.utilities.util-linux-ng/4066

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolumn.c: global variables removed
Sami Kerola [Sun, 1 May 2011 17:26:49 +0000 (19:26 +0200)] 
column.c: global variables removed

Variables from global scope are moved to main, and passed as
function arguments where ever they are needed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolumn.c: validate numeric user inputs
Sami Kerola [Sun, 1 May 2011 17:24:47 +0000 (19:24 +0200)] 
column.c: validate numeric user inputs

Use strtol_or_err from strutils.h to check numeric user input is
sane.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolumn.c: free memory before exit
Sami Kerola [Sun, 1 May 2011 17:20:25 +0000 (19:20 +0200)] 
column.c: free memory before exit

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocolumn.c: make table function clarification
Sami Kerola [Sun, 1 May 2011 17:16:29 +0000 (19:16 +0200)] 
column.c: make table function clarification

Readability enchancement, and few variable type changes to be
more proper.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>