]> git.ipfire.org Git - thirdparty/util-linux.git/log
thirdparty/util-linux.git
13 years agomount: fix compiler warning [-Wunused-parameter]
Karel Zak [Thu, 8 Sep 2011 17:54:22 +0000 (19:54 +0200)] 
mount: fix compiler warning [-Wunused-parameter]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: add --file option
Karel Zak [Thu, 8 Sep 2011 17:40:34 +0000 (19:40 +0200)] 
dmesg: add --file option

This new option is mostly for testing (to test raw logs from another
boxes/kernels).

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscript: libintl.h included in nls.h
Karel Zak [Wed, 7 Sep 2011 14:29:56 +0000 (16:29 +0200)] 
script: libintl.h included in nls.h

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: DRBD proxy data-log identification.
Philipp Marek [Wed, 31 Aug 2011 07:41:01 +0000 (09:41 +0200)] 
libblkid: DRBD proxy data-log identification.

Signed-off-by: Philipp Marek <philipp.marek@linbit.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolibblkid: new magic for 8.4 style (unclean) activity log.
Philipp Marek [Thu, 1 Sep 2011 12:16:21 +0000 (14:16 +0200)] 
libblkid: new magic for 8.4 style (unclean) activity log.

Signed-off-by: Philipp Marek <philipp.marek@linbit.com>
13 years agolibuuid: add limits.h include for OPEN_MAX
maximilian attems [Tue, 6 Sep 2011 22:41:25 +0000 (00:41 +0200)] 
libuuid: add limits.h include for OPEN_MAX

Needed as definition for usage in close_all_fds().
Noticed on klibc build.

Signed-off-by: maximilian attems <max@stro.at>
13 years agoagetty: double equals sign typo in opentty()
Karel Zak [Wed, 7 Sep 2011 05:37:03 +0000 (07:37 +0200)] 
agetty: double equals sign typo in opentty()

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscript: fix building with --disable-nls
Natanael Copa [Tue, 30 Aug 2011 11:50:28 +0000 (11:50 +0000)] 
script: fix building with --disable-nls

We should only include the libintl.h when NLS is requested.

This fixes issue when building util-linux with uClibc.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
13 years agowrite: fix path for freopen()
Karel Zak [Tue, 6 Sep 2011 01:18:46 +0000 (03:18 +0200)] 
write: fix path for freopen()

Reported-by: xinglp <xinglp@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: remove extra space only after time stamp
Karel Zak [Fri, 2 Sep 2011 12:42:04 +0000 (14:42 +0200)] 
dmesg: remove extra space only after time stamp

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: remove redundant __progname check
Karel Zak [Wed, 31 Aug 2011 15:10:31 +0000 (17:10 +0200)] 
build-sys: remove redundant __progname check

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: support loop devices
Davidlohr Bueso [Tue, 16 Aug 2011 13:20:07 +0000 (09:20 -0400)] 
partx: support loop devices

Add support for loop devices to add partitions. For now we make use of the
max_part parameter from the loop kernel module, otherwise the feature is
disabled.

Below an example output:

root@offbook:~/projects/util-linux/partx# ./partx -a -n 1:5 images-pt/dos+bsd.img
root@offbook:~/projects/util-linux/partx# ls /dev/loop0* -ltr
brw-rw---- 1 root disk 7, 0 2011-08-15 00:07 /dev/loop0
brw-rw---- 1 root disk 7, 5 2011-08-15 00:07 /dev/loop0p5
brw-rw---- 1 root disk 7, 2 2011-08-15 00:07 /dev/loop0p2
brw-rw---- 1 root disk 7, 1 2011-08-15 00:07 /dev/loop0p1

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodmesg: fix for non-CONFIG_PRINTK_TIME kernels
Karel Zak [Wed, 31 Aug 2011 10:28:39 +0000 (12:28 +0200)] 
dmesg: fix for non-CONFIG_PRINTK_TIME kernels

 * dmesg(1) incorrectly assumes that lines like "<6>\n"
   are broken.

 * it's more robust to assume the end of the record is "\n<"

 * print \n for empty lines

Reported-by: "Gabor Z. Papp" <gzp@papp.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowhereis: fix gcc warnings [-Wsign-compare]
Karel Zak [Wed, 31 Aug 2011 09:58:01 +0000 (11:58 +0200)] 
whereis: fix gcc warnings [-Wsign-compare]

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoMerge branch 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util...
Karel Zak [Wed, 31 Aug 2011 09:49:27 +0000 (11:49 +0200)] 
Merge branch 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux

* 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux:
  chcpu: new tool
  cpuset: add option to allow cpulist_parse() to fail

13 years agodocs: use .LGPL extension for file with GNU Lesser License
Karel Zak [Wed, 31 Aug 2011 09:12:17 +0000 (11:12 +0200)] 
docs: use .LGPL extension for file with GNU Lesser License

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoMerge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit
Karel Zak [Wed, 31 Aug 2011 09:04:15 +0000 (11:04 +0200)] 
Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit

* 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit:
  docs: remove duplicated text
  docs: require kernel support before accepting use of it
  docs: note about independent super block structs
  docs: add libmount & libblkid debug instructions
  Documentation: add debugging doc
  arch: start using arch as a usage() example
  docs: new file Documentation/release-schedule.txt
  docs: move setuid information from reame to hwclock.8
  docs: clean up old readme files
  docs: copy contributors from legacy files to AUTHORS
  docs: new file Documentation/howto-man-page.txt
  docs: new file Documentation/source-code-management.txt
  docs: new file Documentation/howto-contribute.txt
  docs: new file Documentation/howto-compilation.txt
  docs: tell what the Documentation/ is about
  docs: add usage() howto for contributors
  docs: Documentation directory added
  docs: remove README.clear

13 years agodocs: remove duplicated text
Sami Kerola [Tue, 30 Aug 2011 17:39:42 +0000 (19:39 +0200)] 
docs: remove duplicated text

Duplicate text is dealt by referring to license files. The `pg'
command does not need separated license file because the source
file has same text at top of it.

http://www.spinics.net/lists/util-linux-ng/msg05069.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoMerge branch 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util...
Karel Zak [Tue, 30 Aug 2011 10:05:05 +0000 (12:05 +0200)] 
Merge branch 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux

* 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux:
  lscpu: add physical cpu address to parseable output
  lscpu: add cpu polarization to parseable output
  lscpu: show dispatching mode
  lscpu: use hypervisor generated topology information
  lscpu: detect IBM hypervisor
  lscpu: fix fallback nthreads calculation
  lscpu: fix cpu map array sizes
  lscpu: fix s390 bogomips detection coding style

13 years agosfdisk.8: fix formatting
Petr Uzel [Tue, 30 Aug 2011 08:17:24 +0000 (10:17 +0200)] 
sfdisk.8: fix formatting

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
13 years agoraw: fix shadowing of minor function
maximilian attems [Mon, 29 Aug 2011 16:59:35 +0000 (18:59 +0200)] 
raw: fix shadowing of minor function

Noticed while compiling against klibc:
raw.c: In function ‘query’:
raw.c:219:16: error: called object ‘minor’ is not a function

Rename variable from minor to minor_raw.
While at it mark the functions as static and small whitespace fixes
as asked by checkpatch.

[kzak@redhat.com: - rename variable at line 241 too]

Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowhereis: search in path for binaries only
Karel Zak [Tue, 30 Aug 2011 09:44:15 +0000 (11:44 +0200)] 
whereis: search in path for binaries only

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowhereis: search in path
Davidlohr Bueso [Fri, 12 Aug 2011 17:55:42 +0000 (13:55 -0400)] 
whereis: search in path

Currently this tool only uses the hardcoded paths for looking up strings for
binaries, man pages and source code.  Adding directories found in $PATH makes a
nice little enhancement to support a wider range of lookups.

This feature was also discussed previously here
(http://www.spinics.net/lists/util-linux-ng/msg03429.html)

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agotests: update fdisk and blkid MD tests
Francesco Cosoleto [Tue, 16 Aug 2011 22:19:06 +0000 (00:19 +0200)] 
tests: update fdisk and blkid MD tests

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agotests: add ts_fdisk_clean function to make fdisk output comparable
Francesco Cosoleto [Tue, 16 Aug 2011 22:19:05 +0000 (00:19 +0200)] 
tests: add ts_fdisk_clean function to make fdisk output comparable

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: print welcome message
Francesco Cosoleto [Tue, 16 Aug 2011 22:19:04 +0000 (00:19 +0200)] 
fdisk: print welcome message

This adds a welcome message with util-linux version number, information
about fdisk behaviour that doesn't write to disk after a command (unlike
gparted) and a warning about possible data loss.

The message appears just before the first command prompt.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: print partition deleted message
Francesco Cosoleto [Tue, 16 Aug 2011 22:19:03 +0000 (00:19 +0200)] 
fdisk: print partition deleted message

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agofdisk: print a message with size and type of created partition
Francesco Cosoleto [Wed, 17 Aug 2011 11:21:12 +0000 (13:21 +0200)] 
fdisk: print a message with size and type of created partition

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
13 years agobuild-sys: don't install ru/ddate.1 if ddate disabled
Karel Zak [Tue, 30 Aug 2011 07:46:10 +0000 (09:46 +0200)] 
build-sys: don't install ru/ddate.1 if ddate disabled

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ v2.20 v2.20
Karel Zak [Mon, 29 Aug 2011 11:03:13 +0000 (13:03 +0200)] 
build-sys: release++ v2.20

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.20 ReleaseNotes
Karel Zak [Mon, 29 Aug 2011 10:43:05 +0000 (12:43 +0200)] 
docs: update v2.20 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update AUTHORS file
Karel Zak [Mon, 29 Aug 2011 10:29:46 +0000 (12:29 +0200)] 
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Mon, 29 Aug 2011 10:23:30 +0000 (12:23 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update pl.po (from translationproject.org)

13 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update nl.po (from translationproject.org)

13 years agopo: update ja.po (from translationproject.org)
Takeshi Hamasaki [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update ja.po (from translationproject.org)

13 years agopo: update de.po (from translationproject.org)
Philipp Thomas [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update de.po (from translationproject.org)

13 years agopo: update cs.po (from translationproject.org)
Petr Písař [Mon, 29 Aug 2011 10:13:10 +0000 (12:13 +0200)] 
po: update cs.po (from translationproject.org)

13 years agolsblk: add note to the man page
Karel Zak [Mon, 29 Aug 2011 09:33:27 +0000 (11:33 +0200)] 
lsblk: add note to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: tweak the formatting and wording of several disk-utils man pages
Benno Schulenberg [Sun, 28 Aug 2011 09:14:42 +0000 (11:14 +0200)] 
docs: tweak the formatting and wording of several disk-utils man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoionice: adjust synopsis and wording and formatting on the man page
Benno Schulenberg [Fri, 26 Aug 2011 14:40:36 +0000 (16:40 +0200)] 
ionice: adjust synopsis and wording and formatting on the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agolook: adjust the formatting and some wording of the man page
Benno Schulenberg [Fri, 26 Aug 2011 13:48:44 +0000 (15:48 +0200)] 
look: adjust the formatting and some wording of the man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agovipw: (man page) uniformize header and footer, tweak the formatting
Benno Schulenberg [Fri, 26 Aug 2011 08:54:03 +0000 (10:54 +0200)] 
vipw: (man page) uniformize header and footer, tweak the formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agodocs: tweak the formatting and wording of some text-utils man pages
Benno Schulenberg [Thu, 25 Aug 2011 20:26:13 +0000 (22:26 +0200)] 
docs: tweak the formatting and wording of some text-utils man pages

Highlight the program name, use proper lowercase, remove
unneeded commas and articles, and add helpful hyphenation.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agodocs: also uniformize headers and footers of troff-formatted man pages
Benno Schulenberg [Tue, 23 Aug 2011 20:10:49 +0000 (22:10 +0200)] 
docs: also uniformize headers and footers of troff-formatted man pages

Add two spaces as the required third argument of the date line to make
the specified date get used instead of today's date.  Incorporate the
section number into the page title, then use an empty section number,
so that specifying an explicit section/volume name will work.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosetarch: add --uname-2.6 option for personality flag UNAME26
Ben Hutchings [Tue, 23 Aug 2011 06:00:01 +0000 (07:00 +0100)] 
setarch: add --uname-2.6 option for personality flag UNAME26

[kzak@redhat.com: - minor change in usage()]

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoflock: fix example in man page
Karel Zak [Mon, 29 Aug 2011 09:05:41 +0000 (11:05 +0200)] 
flock: fix example in man page

Reported-by: Pierre Gaston <pierre.gaston@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: require kernel support before accepting use of it
Sami Kerola [Sat, 27 Aug 2011 19:46:36 +0000 (21:46 +0200)] 
docs: require kernel support before accepting use of it

http://www.spinics.net/lists/kernel/msg1228993.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: note about independent super block structs
Sami Kerola [Thu, 25 Aug 2011 19:01:01 +0000 (21:01 +0200)] 
docs: note about independent super block structs

It's normal that we use our own (on kernel independent) copy of
FS superbloks. -- K. Zak

http://www.spinics.net/lists/util-linux-ng/msg04812.html

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: add libmount & libblkid debug instructions
Sami Kerola [Thu, 25 Aug 2011 18:54:34 +0000 (20:54 +0200)] 
docs: add libmount & libblkid debug instructions

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoDocumentation: add debugging doc
Davidlohr Bueso [Sun, 7 Aug 2011 00:59:32 +0000 (20:59 -0400)] 
Documentation: add debugging doc

Layout the base for tips on debugging util-linux programs/wrappers.

[kerolasa@iki.fi:
- rename file README.debug -> howto-debug.txt
- wrap over 80 chars wide lines
- change example commands to be relative to util-linux root
- indent command examples
]

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agoarch: start using arch as a usage() example
Sami Kerola [Sat, 20 Aug 2011 17:25:46 +0000 (19:25 +0200)] 
arch: start using arch as a usage() example

The arch command is hijacked to be example of howto write usage
as defined in Documentation/howto-usage-function.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agolibmount: fix debug message
Karel Zak [Fri, 26 Aug 2011 08:49:38 +0000 (10:49 +0200)] 
libmount: fix debug message

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: new file Documentation/release-schedule.txt
Sami Kerola [Mon, 15 Aug 2011 19:37:54 +0000 (21:37 +0200)] 
docs: new file Documentation/release-schedule.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: move setuid information from reame to hwclock.8
Sami Kerola [Fri, 12 Aug 2011 20:43:16 +0000 (22:43 +0200)] 
docs: move setuid information from reame to hwclock.8

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: clean up old readme files
Sami Kerola [Fri, 12 Aug 2011 20:00:13 +0000 (22:00 +0200)] 
docs: clean up old readme files

Removal of information which is simply wrong.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: copy contributors from legacy files to AUTHORS
Sami Kerola [Fri, 12 Aug 2011 19:36:40 +0000 (21:36 +0200)] 
docs: copy contributors from legacy files to AUTHORS

See bellow who where found to contribute to former packages that
has been merged to util-linux. The list is very likely to be
incomplete.

cfdisk
Kevin E. Martin <martin@cs.unc.edu>

getopt
Volker Kuhlmann <v.kuhlmann@elec.canterbury.ac.nz>
Bob Proulx <rwp@hprwp.fc.hp.com>

agetty
Peter Orbaek <poe@daimi.aau.dk>

mount/umount
Doug Quale <quale@saavik.cs.wisc.edu>
H.J. Lu <hlu@eecs.wsu.edu>
Rick Sladkey <jrs@world.std.com>
Stephen Tweedie <sct@dcs.ed.ac.uk>

pg
Gunnar Ritter <g-r@bigfoot.de>

init/getty/login
Erik Troan
Sander van Malssen <svm@kozmix.ow.nl>
Jesse Thilo <jesse.thilo@pobox.com>
David Holland <dholland@hcs.harvard.edu>
Marek Michalkiewicz <marekm@i17linuxb.ists.pwr.wroc.pl>
Randolph Bentson <bentson@grieg.seaslug.org>
Gerhard Schneider <gs@ilfb.tuwien.ac.at>
Gabriel M. Schuyler <schuyler@easiest.com>
Christoph Lameter <clameter@miriam.fuller.edu>
Steve Philp
Eric Rasmussen <ear@usfirst.org>
Alan Wendt <alan@ezlink.com>
Ron Sommeling <sommel@sci.kun.nl>
Juha Laiho <jlaiho@ichaos.nullnet.fi>
Rickard Faith <faith@cs.unc.edu>
Alvaro M. Echevarria
Daniel Quinlan <quinlan@yggdrasil.com>
Ross Biro <biro@yggdrasil.com>
Peter Tobias <tobias@server.et-inf.fho-emden.de>
Scott Telford <st@epcc.ed.ac.uk>
Jeremy Fitzhardinge <jeremy@suite.sw.oz.au>
Nicolai Langfeldt <janl@math.uio.no>
Jaakko Hyvätti <HYVATTI@cc.helsinki.fi>
Bill Reynolds <bill@goshawk.lanl.gov>
Christian von Roques <roques@juliet.ka.sub.org>
Mitchum DSouza
Daniel Thumim <dthumim@mit.edu>
Lars Wirzenius
John Paul Morrison <jmorriso@rflab.ee.ubc.ca>
Jun Hamano <junio@shadow.twinsun.com>
Werner Almesberger <almesber@bernina.ethz.ch>
Rick Sladkey <jrs@world.std.com>
Anthony Rumble <arumble@extro.ucc.su.OZ.AU>
Linus Torvalds
Steven S. Dick <ssd@nevets.oau.org>
Ed Carp
Miquel van Smoorenburg <miquels@maestro.htsa.aha.nl>
Humberto Zuazaga
Pietro Castelli
Douglas E. Quale
Stephen Gallimore
Tommy Thorn
Michael Glad <glad@daimi.aau.dk>
W.Z. Venema
Peter Orbaek <poe@daimi.aau.dk>

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: new file Documentation/howto-man-page.txt
Sami Kerola [Fri, 12 Aug 2011 19:23:58 +0000 (21:23 +0200)] 
docs: new file Documentation/howto-man-page.txt

The howto-man-page.txt is an example of good groff syntax and
document about man page at the same time.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: new file Documentation/source-code-management.txt
Sami Kerola [Fri, 12 Aug 2011 18:48:31 +0000 (20:48 +0200)] 
docs: new file Documentation/source-code-management.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: new file Documentation/howto-contribute.txt
Sami Kerola [Fri, 12 Aug 2011 18:47:42 +0000 (20:47 +0200)] 
docs: new file Documentation/howto-contribute.txt

The file contens are mostly from former README.devel.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: new file Documentation/howto-compilation.txt
Sami Kerola [Fri, 12 Aug 2011 18:45:51 +0000 (20:45 +0200)] 
docs: new file Documentation/howto-compilation.txt

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: tell what the Documentation/ is about
Sami Kerola [Fri, 12 Aug 2011 18:37:55 +0000 (20:37 +0200)] 
docs: tell what the Documentation/ is about

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agodocs: add usage() howto for contributors
Sami Kerola [Fri, 12 Aug 2011 18:35:27 +0000 (20:35 +0200)] 
docs: add usage() howto for contributors

Style instructions to usage() writers. Discussion about this;
http://www.spinics.net/lists/util-linux-ng/index.html#04983

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
13 years agosfdisk: make some tests conditional to !Linux
Giulio Orsero [Tue, 23 Aug 2011 10:19:38 +0000 (12:19 +0200)] 
sfdisk: make some tests conditional to !Linux

This patch makes the following tests/actions conditional to "!Linux":

- Force cylinders as format instead of MB, even if user asked for MB.
  This solves a bug where if you use "-L -uM", set 1 as starting MB
  and the disk is larger than a certain size (about 1GB) the partition
  would start at sector 1 instead of 1MB due to cyl rounding.

- Warn about partitions not starting/ending on cyl boundaries.

- Check if CHS is ok.

I used the "!Linux" notation since it was already used elsewhere in
the code.

Signed-off-by: Giulio Orsero <giulioo@pobox.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolib: [loopdev.c] correct qsort compare function
Karel Zak [Tue, 23 Aug 2011 10:01:12 +0000 (12:01 +0200)] 
lib: [loopdev.c] correct qsort compare function

Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: correct qsort compare function
Andreas Schwab [Mon, 22 Aug 2011 21:15:03 +0000 (23:15 +0200)] 
losetup: correct qsort compare function

Return the correct value from comparing the operands.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
13 years agochcpu: new tool
Heiko Carstens [Mon, 15 Aug 2011 05:52:49 +0000 (07:52 +0200)] 
chcpu: new tool

chcpu can modify the logical state of CPUs. It can enable and disable CPUs,
scan for new CPUs, change the CPU dispatching mode of the underlying
hypervisor and request (configure) or give logical CPUs back (deconfigure)
to the the underlying hypervisor.

This is quite useful if you work a lot with virtual servers, since doing all
the configuration stuff directly via sysfs becomes a pain.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
13 years agodocs: drop the pluralization item with ngettext() in TODO file
Benno Schulenberg [Sat, 20 Aug 2011 09:33:38 +0000 (11:33 +0200)] 
docs: drop the pluralization item with ngettext() in TODO file

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoscriptreplay: improve synopsis and formatting and wording in man page
Benno Schulenberg [Sat, 20 Aug 2011 09:29:50 +0000 (11:29 +0200)] 
scriptreplay: improve synopsis and formatting and wording in man page

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agopg: normalize formatting of the man page, and tweak some of its wording
Benno Schulenberg [Fri, 19 Aug 2011 20:38:46 +0000 (22:38 +0200)] 
pg: normalize formatting of the man page, and tweak some of its wording

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agouuidd: (man page) alphabetize the options
Benno Schulenberg [Fri, 19 Aug 2011 20:24:02 +0000 (22:24 +0200)] 
uuidd: (man page) alphabetize the options

13 years agouuidd: (man page) repair the snipped up description of option -T
Benno Schulenberg [Fri, 19 Aug 2011 20:14:37 +0000 (22:14 +0200)] 
uuidd: (man page) repair the snipped up description of option -T

Also use lower case and no equals sign for option arguments,
return to using normal formatting macros, and indent the example.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agodocs: uniformize the header and footer lines in man pages
Benno Schulenberg [Thu, 18 Aug 2011 20:18:34 +0000 (22:18 +0200)] 
docs: uniformize the header and footer lines in man pages

Use dates without the day, use the full month name, put "util-linux" in
the lower left corner, and "User Commands" or "System Administration"
at the top center.

Also improve here and there the one-line program description.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agodocs: update ReleaseNotes: fix typo in v2.20-ReleaseNotes
Bernhard Voelker [Thu, 18 Aug 2011 15:28:54 +0000 (17:28 +0200)] 
docs: update ReleaseNotes: fix typo in v2.20-ReleaseNotes

Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
13 years agodocs: update ReleaseNotes
Karel Zak [Thu, 18 Aug 2011 09:56:21 +0000 (11:56 +0200)] 
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: add --enable-ddate
Karel Zak [Thu, 18 Aug 2011 09:50:27 +0000 (11:50 +0200)] 
build-sys: add --enable-ddate

Don't build this crazy thing by default.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: rename --enable-partx to --disable-partx
Karel Zak [Thu, 18 Aug 2011 09:38:19 +0000 (11:38 +0200)] 
build-sys: rename --enable-partx to --disable-partx

Note the partx command is (and always was) enabled by default on Linux.

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoddate: fix St. Tib's Day in other languages
Karel Zak [Thu, 18 Aug 2011 09:15:22 +0000 (11:15 +0200)] 
ddate: fix St. Tib's Day in other languages

old version:
 $ LANG=de_DE.UTF8 ddate 29 2 2008
 St. Tib’s D, 3174 YOLD

new version:
 $ LANG=de_DE.UTF8 ddate 29 2 2008
 St. Tib’s Day, 3174 YOLD

Reported-by: Nick Erdmann <erdmann@date.upb.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agotests: grammar fixes
Davidlohr Bueso [Wed, 17 Aug 2011 15:51:19 +0000 (11:51 -0400)] 
tests: grammar fixes

Trivial change, "Cannot found" to "Cannot find".

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
13 years agolosetup: allow to use --verbose with --all
Karel Zak [Wed, 17 Aug 2011 14:40:05 +0000 (16:40 +0200)] 
losetup: allow to use --verbose with --all

Reported-by: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agobuild-sys: release++ (v2.20-rc2) v2.20-rc2
Karel Zak [Tue, 16 Aug 2011 22:55:52 +0000 (00:55 +0200)] 
build-sys: release++ (v2.20-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agodocs: update v2.20 ReleaseNotes
Karel Zak [Tue, 16 Aug 2011 22:52:32 +0000 (00:52 +0200)] 
docs: update v2.20 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopo: merge changes
Karel Zak [Tue, 16 Aug 2011 22:41:33 +0000 (00:41 +0200)] 
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopg: fix write_all() usage
Karel Zak [Tue, 16 Aug 2011 22:30:13 +0000 (00:30 +0200)] 
pg: fix write_all() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomkfs.minix: fix write_all() usage
Karel Zak [Tue, 16 Aug 2011 22:29:39 +0000 (00:29 +0200)] 
mkfs.minix: fix write_all() usage

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosfdisk: fix typo in man page
Karel Zak [Tue, 16 Aug 2011 21:56:26 +0000 (23:56 +0200)] 
sfdisk: fix typo in man page

Reported-by: markus reichelt <ml@mareichelt.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
sk/sfdisk.8

13 years agosfdisk: slice help text into small chunks and improve its wording
Benno Schulenberg [Tue, 16 Aug 2011 18:53:21 +0000 (20:53 +0200)] 
sfdisk: slice help text into small chunks and improve its wording

[kzak@redhat.com: - use fputs(),
                  - use <var> convention]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agosfdisk: (man page) use comma between short and long option instead of "or"
Benno Schulenberg [Tue, 16 Aug 2011 18:20:19 +0000 (20:20 +0200)] 
sfdisk: (man page) use comma between short and long option instead of "or"

Also fix some erratic formatting, indent the third example too, drop
the trailing % prompt in examples, add a blank line before and after,
and improve the wording here and there.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
13 years agoblkid: fix typo
Karel Zak [Tue, 16 Aug 2011 15:05:12 +0000 (17:05 +0200)] 
blkid: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoswapon: rewrite usage()
Karel Zak [Tue, 16 Aug 2011 12:25:05 +0000 (14:25 +0200)] 
swapon: rewrite usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agolosetup: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 12:00:06 +0000 (14:00 +0200)] 
losetup: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowrite: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:56:17 +0000 (13:56 +0200)] 
write: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agowall: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:53:36 +0000 (13:53 +0200)] 
wall: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agosetterm: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:50:29 +0000 (13:50 +0200)] 
setterm: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: use lowercase in usage()
Karel Zak [Tue, 16 Aug 2011 11:44:31 +0000 (13:44 +0200)] 
partx: use lowercase in usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscriptreplay: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:43:34 +0000 (13:43 +0200)] 
scriptreplay: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoscript: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:41:06 +0000 (13:41 +0200)] 
script: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agomesg: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:39:03 +0000 (13:39 +0200)] 
mesg: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agopartx: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:37:05 +0000 (13:37 +0200)] 
partx: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>
13 years agoipcmk: cleanup usage()
Karel Zak [Tue, 16 Aug 2011 11:34:22 +0000 (13:34 +0200)] 
ipcmk: cleanup usage()

Signed-off-by: Karel Zak <kzak@redhat.com>