]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
14 years agogetopt: use xalloc.h
Sami Kerola [Sun, 12 Jun 2011 21:31:59 +0000 (23:31 +0200)] 
getopt: use xalloc.h

The xalloc fix requires exit codes to symbolical refrences to
overwrite default value on error.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: look.1 manual rewrote
Sami Kerola [Sun, 12 Jun 2011 18:33:08 +0000 (20:33 +0200)] 
docs: look.1 manual rewrote

Mention long options in manual page. The nroff syntax is also
re-wrote to be more similar to other manual pages.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agolook: add long options
Sami Kerola [Sun, 12 Jun 2011 17:41:31 +0000 (19:41 +0200)] 
look: add long options

Including new help screen. Additionally unused includes are
removed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: mention long options in uuidd.8 manual page
Sami Kerola [Sun, 12 Jun 2011 15:42:39 +0000 (17:42 +0200)] 
docs: mention long options in uuidd.8 manual page

Options in manual page are ordered to match help output. I also
added example section now when the synopsis section is less
verbose.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidd: coding style fixes
Sami Kerola [Sat, 25 Jun 2011 13:13:24 +0000 (15:13 +0200)] 
uuidd: coding style fixes

Few unnecessary void casts removed, rest is about spacing.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidd: remove goto statement
Sami Kerola [Sat, 25 Jun 2011 12:58:35 +0000 (14:58 +0200)] 
uuidd: remove goto statement

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidd: use symbolic exit and return values
Sami Kerola [Sat, 25 Jun 2011 12:53:50 +0000 (14:53 +0200)] 
uuidd: use symbolic exit and return values

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidd: die() function removed
Sami Kerola [Sat, 25 Jun 2011 12:44:35 +0000 (14:44 +0200)] 
uuidd: die() function removed

The function is replaced with err().

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidd: long options & new usage
Sami Kerola [Sat, 25 Jun 2011 12:36:34 +0000 (14:36 +0200)] 
uuidd: long options & new usage

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: uuidgen.1 mention long options
Sami Kerola [Sun, 12 Jun 2011 13:22:18 +0000 (15:22 +0200)] 
docs: uuidgen.1 mention long options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agouuidgen: add long options
Sami Kerola [Sun, 12 Jun 2011 13:17:07 +0000 (15:17 +0200)] 
uuidgen: add long options

Affects to help output as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowipefs: add version printing & compiler warning
Sami Kerola [Sun, 12 Jun 2011 12:58:44 +0000 (14:58 +0200)] 
wipefs: add version printing & compiler warning

The --version option is added, and a storage type is fixed to
correct a compiler warnings.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowrite: maintenance fixes
Sami Kerola [Sat, 25 Jun 2011 12:25:40 +0000 (14:25 +0200)] 
write: maintenance fixes

Use libc error printing facilities, remove void casting, clean up
unused headers and alignt coding style with README.devel.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowrite: long options & new usage
Sami Kerola [Sat, 25 Jun 2011 12:22:33 +0000 (14:22 +0200)] 
write: long options & new usage

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agobuild-sys: move write to term-utils directory
Sami Kerola [Sat, 11 Jun 2011 22:19:45 +0000 (00:19 +0200)] 
build-sys: move write to term-utils directory

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomisc-utils: remove misleading README files
Sami Kerola [Sat, 11 Jun 2011 22:00:55 +0000 (00:00 +0200)] 
misc-utils: remove misleading README files

Clean up of files which primarily caused confusion.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: rename.1 verbose, long options and warning
Sami Kerola [Sat, 11 Jun 2011 21:42:45 +0000 (23:42 +0200)] 
docs: rename.1 verbose, long options and warning

Add new verbose and long options to manual page. I also added
warning section which hopefully gets read by people who run the
command first time.

It might be good idea to make the rename such that it would not
overwrite by default, and have a --force option if an use wants
that. In current state the rename is somewhat dangerous.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agorename: verbose option & maintenance fixes
Sami Kerola [Sat, 11 Jun 2011 21:21:31 +0000 (23:21 +0200)] 
rename: verbose option & maintenance fixes

The rename has new verbose option which will print which files
where renamed. Maintenance fixes includes long options, coding
style and freeing memory after usage.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: inform about cal long options
Sami Kerola [Sat, 11 Jun 2011 20:27:18 +0000 (22:27 +0200)] 
docs: inform about cal long options

The parameters section is now split per a parameter, which I
found more readable than the previous layout. In addition the
nroff syntax is changed to be closer what help2man is suggesting
it should be.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocal: clean up few coding style issues
Sami Kerola [Sat, 25 Jun 2011 11:44:12 +0000 (13:44 +0200)] 
cal: clean up few coding style issues

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocal: fix compiler warnings
Sami Kerola [Sat, 25 Jun 2011 11:43:14 +0000 (13:43 +0200)] 
cal: fix compiler warnings

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agocal: argument checking, long options and argument checking
Sami Kerola [Sat, 25 Jun 2011 11:38:47 +0000 (13:38 +0200)] 
cal: argument checking, long options and argument checking

Check numeric user inputs with strtol_on_err. Add long options
with nice looking usage.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowhereis: coding style
Sami Kerola [Sat, 25 Jun 2011 11:29:59 +0000 (13:29 +0200)] 
whereis: coding style

Changes only placement of braces, spacing, tabs etc.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowhereis: warnings, exit values, braces and returns
Sami Kerola [Sat, 25 Jun 2011 11:05:12 +0000 (13:05 +0200)] 
whereis: warnings, exit values, braces and returns

Compiler type mismatch warning fixed, symbolic exit value taken
in use where missing, unnecessary single statement 'block' braces
removed and return is not a function bracing fixed.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowhereis: remove goto statements
Sami Kerola [Sat, 25 Jun 2011 10:57:05 +0000 (12:57 +0200)] 
whereis: remove goto statements

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agowhereis: new usage output & version printing
Sami Kerola [Sat, 25 Jun 2011 10:48:26 +0000 (12:48 +0200)] 
whereis: new usage output & version printing

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomcookie: change coding style
Sami Kerola [Sat, 11 Jun 2011 17:14:59 +0000 (19:14 +0200)] 
mcookie: change coding style

Now in align with README.devel.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: inform about mcookie long options
Sami Kerola [Sat, 11 Jun 2011 15:44:12 +0000 (17:44 +0200)] 
docs: inform about mcookie long options

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agomcookie: use warnx, long options and help screen
Sami Kerola [Sat, 11 Jun 2011 15:08:34 +0000 (17:08 +0200)] 
mcookie: use warnx, long options and help screen

Help and version options added. Additionally one compiler warning
got to be fixed.

mcookie.c:115:18: warning: comparison of integers of different signs: 'int' and 'unsigned long'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agonamei: fix to argument handling
Sami Kerola [Sat, 11 Jun 2011 14:45:53 +0000 (16:45 +0200)] 
namei: fix to argument handling

Missing pathname argument can only be checked after options are
parsed. Earlier for example 'namei -l' print nothing and was
successful.

The option parsing is changed to be less POSIXLY_CORRECT and
continue if nonoption argument is found, which allows users to
define options and arguments in the order they prefer.

Unknown short options, which earlier matched case '?' that was
help option alias, are now made to indicate failure in return
value.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agonamei: use xalloc.h
Sami Kerola [Sat, 11 Jun 2011 13:20:56 +0000 (15:20 +0200)] 
namei: use xalloc.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agonamei: add --version option
Sami Kerola [Sat, 11 Jun 2011 13:07:10 +0000 (15:07 +0200)] 
namei: add --version option

Add to namei.1 man also the --help option along with the new
--version.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agologin-utils: include fix
Sami Kerola [Sat, 25 Jun 2011 10:36:38 +0000 (12:36 +0200)] 
login-utils: include fix

Add missing and remove unneeded includes as reported by:
http://code.google.com/p/include-what-you-use/

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agochecktty: fix unused parameters
Sami Kerola [Sat, 25 Jun 2011 10:27:43 +0000 (12:27 +0200)] 
checktty: fix unused parameters

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agodocs: tell mount/* is in maintenance mode
Sami Kerola [Sat, 25 Jun 2011 10:11:50 +0000 (12:11 +0200)] 
docs: tell mount/* is in maintenance mode

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
14 years agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Thu, 23 Jun 2011 20:04:24 +0000 (22:04 +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 agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Mon, 20 Jun 2011 17:54:39 +0000 (19:54 +0200)] 
Merge branch 'master', remote-tracking branch 'upstream/master'

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 agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Thu, 16 Jun 2011 19:44:49 +0000 (21:44 +0200)] 
Merge branch 'master', remote-tracking branch 'upstream/master'

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 agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Tue, 14 Jun 2011 18:26:37 +0000 (20:26 +0200)] 
Merge branch 'master', remote-tracking branch 'upstream/master'

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 agoMerge branch 'master', remote-tracking branch 'upstream/master'
Sami Kerola [Sat, 11 Jun 2011 08:10:01 +0000 (10:10 +0200)] 
Merge branch 'master', remote-tracking branch 'upstream/master'

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>