]> err.no Git - util-linux/log
util-linux
14 years agorev: coding style, various fixes
Davidlohr Bueso [Sun, 8 Aug 2010 21:03:56 +0000 (17:03 -0400)]
rev: coding style, various fixes

 * Change indentation to 8 characters and coding style, for better reading the code.

 * Add some memory allocation error handling.

 * Fix memory leaks. In cases when Ctrl-C is used to exit the program,
  'p' cannot be freed, so made it a global var, to share between main()
   and sig_handler(). Signal handing is necessary to fix some leaks, so
   added a very basic, non invasive, mechanism.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoflock: properly report exec() errors
Karel Zak [Fri, 20 Aug 2010 09:45:00 +0000 (11:45 +0200)]
flock: properly report exec() errors

Reported-by: Barry Davis <barry_davis@stormagic.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofsck: improve whole-disk check, detect stacked devices
Karel Zak [Thu, 19 Aug 2010 13:33:45 +0000 (15:33 +0200)]
fsck: improve whole-disk check, detect stacked devices

The current heuristic for conversion from partition to whole-disk
is based on device names. It's pretty poor. This patch replaces this
code with blkid_devno_to_wholedisk(). This solution is based on
/sys FS and it works for arbitrary partitioned devices.

The another problem is the way how fsck determines stacked devices.
The current code checks device name for "md" prefix only. It does not
care about DM, dm-ccypt, and so on. This patch uses
/sys/block/.../slaves/, but it does not fully resolves dependencies
between all devices. The method is simple -- fsck does not check
stacked devices in parallel with any other device.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: add blkid test for partitioned RAID0
Karel Zak [Wed, 18 Aug 2010 07:33:11 +0000 (09:33 +0200)]
tests: add blkid test for partitioned RAID0

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoagetty: add -c to reuse cflags
Karel Zak [Wed, 18 Aug 2010 07:29:59 +0000 (09:29 +0200)]
agetty: add -c to reuse cflags

The agetty command resets terminal cflags setting. The -c option
disables this behavior and serial setting from kernel is used.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoaggety: don't wipe CLOCAL flag
Karel Zak [Mon, 12 Jul 2010 09:57:55 +0000 (11:57 +0200)]
aggety: don't wipe CLOCAL flag

gettey should not clear the flag. It seems that the flag is
automatically enabled for serial consoles tht don't use CD signal.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=598631
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoagetty: add -s to reuse existing baud rate
Karel Zak [Wed, 18 Aug 2010 07:02:03 +0000 (09:02 +0200)]
agetty: add -s to reuse existing baud rate

For example:

/sbin/agetty -s /dev/ttyS0 9600

will reuse the speed the kernel configured on the port. If the setting
from kernel is useless (tty returns BREAK character) then the baud
rate from command line (9600) is used.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=623685
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: wrong PT detection on RAID0
Karel Zak [Fri, 13 Aug 2010 07:59:31 +0000 (09:59 +0200)]
libblkid: wrong PT detection on RAID0

Reported-by: Yulia Kopkova <ykopkova@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: add -x and {On,Off}-line CPU(s) mask/list
Karel Zak [Wed, 11 Aug 2010 13:41:48 +0000 (15:41 +0200)]
lscpu: add -x and {On,Off}-line CPU(s) mask/list

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: support offline CPUs
Karel Zak [Wed, 11 Aug 2010 10:43:25 +0000 (12:43 +0200)]
lscpu: support offline CPUs

 # echo 0 >/sys/devices/system/cpu/cpu3/online
 # echo 0 >/sys/devices/system/cpu/cpu2/online

 # grep processor /proc/cpuinfo
 processor       : 0
 processor       : 1

 # lscpu
 lscpu: error: cannot open
 /sys/devices/system/cpu/cpu2/cache/index0/shared_cpu_map: No such file or directory

This patch also add a new "On-line CPU(s):" line to the lscpu(1)
output.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=623012
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: add note about sfdisk to TODO
Karel Zak [Tue, 10 Aug 2010 07:06:29 +0000 (09:06 +0200)]
docs: add note about sfdisk to TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: fix n+1 again
Karel Zak [Mon, 9 Aug 2010 11:33:17 +0000 (13:33 +0200)]
cfdisk: fix n+1 again

Reported-by: J B <jb.1234abcd@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: update MBR after ID change
Karel Zak [Mon, 9 Aug 2010 11:03:02 +0000 (13:03 +0200)]
fdisk: update MBR after ID change

Reported-by: Bernard Pidoux <bpidoux@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: fix n+1 bug in error message
Karel Zak [Mon, 9 Aug 2010 09:32:46 +0000 (11:32 +0200)]
cfdisk: fix n+1 bug in error message

 # cfdisk -Ps <devname>

correctly uses 1..N range for partition numbers, unfortunately some
error messages use 0..N. This is confusing.

Reported-by: J B <jb.1234abcd@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: mark line(1) as deprecated
Karel Zak [Wed, 4 Aug 2010 10:14:57 +0000 (12:14 +0200)]
docs: mark line(1) as deprecated

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolosetup: use stdout and return 0 for --help
Karel Zak [Wed, 4 Aug 2010 09:52:41 +0000 (11:52 +0200)]
losetup: use stdout and return 0 for --help

Reported-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodmesg: fix memory leak in dmesg(1).
Davidlohr Bueso [Fri, 30 Jul 2010 15:43:36 +0000 (11:43 -0400)]
dmesg: fix memory leak in dmesg(1).

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agomount: get most recently mounted fs from /etc/mtab.
Valerie Aurora [Wed, 4 Aug 2010 00:09:19 +0000 (20:09 -0400)]
mount: get most recently mounted fs from /etc/mtab.

I spent most of the day tracking down this subtle remount bug.  I
think this is the correct solution but I'd appreciate some
double-checking.  I suspect this bug will munge the mount options
whenever you remount a file system mounted on the same mountpoint as
another file system, using the mountpoint as the handle.

-VAL

commit c010b3a0783430e2b94f3b3dc0929ae299e383eb
Author: Valerie Aurora <vaurora@redhat.com>
Date:   Tue Aug 3 16:32:52 2010 -0700

    mount: get most recently mounted fs from /etc/mtab.

    In mount, when using /etc/mtab to lookup a mount entry, get the most
    recently mounted entry instead of the first mounted entry.  You want
    to manipulate the most recent mount, not a covered mount.  See comment
    to umount_one_bw().

    This bug has been util-linux-ng since the first git checkin.  It
    finally showed up on my system with the change to stop using
    SETLOOP_AUTOCLEAR if /etc/mtab is writable (commit af092544).  If you
    do a remount of a file system mounted on the same dir as another file
    system, it will take the options from the first mount and write them
    out to /etc/mtab as the options to the second mount - including, in
    the case of a loop device, loop=/dev/loop0.  Then when you umount the
    second mount, it grabs the line from /etc/mtab and tries to tear down
    the loop device, which complains because it is still in use by the
    first mount.

    Reproducible test case (on a system with writable /etc/mtab):

    mount -o loop,ro /tmp/ro /mnt
    mount -t tmpfs tmpfs /mnt
    mount -o remount,ro /mnt
    cat /etc/mtab | tail -2

Signed-off-by: Valerie Aurora <vaurora@redhat.com>
14 years agolibblkid: remove dead code section
Valerie Aurora [Thu, 29 Jul 2010 19:55:33 +0000 (15:55 -0400)]
libblkid: remove dead code section

commit 2d12ea54c70c9e6a2b77ca6f7b6a786309a22fa7
Author: Valerie Aurora <vaurora@redhat.com>
Date:   Thu Jul 29 12:47:35 2010 -0700

    libblkid: remove dead code section (duplication of ext* constants)

Signed-off-by: Valerie Aurora <vaurora@redhat.com>
14 years agolook: fix memory leak in look(1)
Davidlohr Bueso [Wed, 28 Jul 2010 21:17:56 +0000 (17:17 -0400)]
look: fix memory leak in look(1)

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agonamei: fix memory leak in namei(1)
Davidlohr Bueso [Wed, 28 Jul 2010 21:20:38 +0000 (17:20 -0400)]
namei: fix memory leak in namei(1)

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
14 years agobuild-sys: man aliases don't depend on original man page
Diego Elio 'Flameeyes' Pettenò [Wed, 28 Jul 2010 20:47:55 +0000 (22:47 +0200)]
build-sys: man aliases don't depend on original man page

Avoid rebuilding the man aliases over and over given that they do not
copy the content but only alias it.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
14 years agobuild-sys: use the silent-rules prefix when generating man pages.
Diego Elio 'Flameeyes' Pettenò [Wed, 28 Jul 2010 20:47:54 +0000 (22:47 +0200)]
build-sys: use the silent-rules prefix when generating man pages.

This is backward-compatible with automake 1.10 as the AM_V_GEN macro
is going to be null anyway.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
14 years agobuild-sys: drop shlibs/Makefile.am that only adds SUBDIRS
Diego Elio 'Flameeyes' Pettenò [Wed, 28 Jul 2010 20:40:04 +0000 (22:40 +0200)]
build-sys: drop shlibs/Makefile.am that only adds SUBDIRS

The same effect is gotten by changing SUBDIRS in the top-level
Makefile.am.

14 years agobuild-sys: drop the getsize test out of Makefile.am
Diego Elio 'Flameeyes' Pettenò [Wed, 28 Jul 2010 20:40:03 +0000 (22:40 +0200)]
build-sys: drop the getsize test out of Makefile.am

The #ifdef TEST_PROGRAM block was removed with commit
3069624180bac35f1cd468249ddb9dfc91d1b7b1 so there is no point in
keeping the tests declared, as it won't build.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
14 years agobuild-sys: require automake 1.10 as gtk-doc requires it anyway
Diego Elio 'Flameeyes' Pettenò [Wed, 28 Jul 2010 20:40:02 +0000 (22:40 +0200)]
build-sys: require automake 1.10 as gtk-doc requires it anyway

There's no point into requiring 1.9 if the gtk-doc makefiles only work
with 1.10.

Signed-off-by: Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com>
14 years agomkfs: add `mkfs.ext4` to section SEE ALSO of `mkfs.8`.
Paul Menzel [Wed, 28 Jul 2010 16:38:55 +0000 (18:38 +0200)]
mkfs: add `mkfs.ext4` to section SEE ALSO of `mkfs.8`.

Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
14 years agochsh: don't suggest ypchsh
Karel Zak [Thu, 29 Jul 2010 12:54:19 +0000 (14:54 +0200)]
chsh: don't suggest ypchsh

  $ chsh
  chsh: can only change local entries; use ypchsh instead.

The 'ypchsh' is an external util that does not have to be installed.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=497329
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: fix "mount -a" for auto-clear loopdevs and /proc/mounts
Karel Zak [Thu, 29 Jul 2010 12:18:46 +0000 (14:18 +0200)]
mount: fix "mount -a" for auto-clear loopdevs and /proc/mounts

The "mount -a" uses /etc/mtab to detect already mounted file systems
from /etc/fstab -- this check requires the same FS name (1st field)
in fstab and mtab.

On systems with enabled auto-clear loop devies or systems without
regular mtab  (symlink to /proc/mounts) there is /dev/loopN rather
than image filename in mtab. For example:

  fstab:
     /mnt/store/foo.ISO /mnt/image auto defaults 0 0

  mtab:
     /dev/loop0 /mnt/image iso9960 rw 0 0

We have to scan all available loop devices to check if some of the
devices is not associated with the image file from fstab.

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=618957
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoportability: fix mntent.h and pty.h usage
François Revol [Mon, 26 Jul 2010 09:43:51 +0000 (11:43 +0200)]
portability: fix mntent.h and pty.h usage

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoportability: use standard constants
François Revol [Mon, 26 Jul 2010 09:41:04 +0000 (11:41 +0200)]
portability: use standard constants

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: fix use of non portable type
François Revol [Mon, 26 Jul 2010 09:37:19 +0000 (11:37 +0200)]
fdisk: fix use of non portable type

Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: set tolerant flag for HFS
Alexandre Peixoto Ferreira [Mon, 19 Jul 2010 23:04:33 +0000 (18:04 -0500)]
libblkid: set tolerant flag for HFS

An CDROM can contain both HFS and ISO9660 views on the same filesystem.
This confuses mount/KDE/Gnome.

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: fix typo filesystem name nilfs to nilfs2
Jiro SEKIBA [Thu, 15 Jul 2010 04:40:27 +0000 (13:40 +0900)]
libblkid: fix typo filesystem name nilfs to nilfs2

The correct filesystem name is nilfs2, not nilfs.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
14 years agomount: don't use auto-clear loopdev if mtab is available
Karel Zak [Tue, 20 Jul 2010 09:37:23 +0000 (11:37 +0200)]
mount: don't use auto-clear loopdev if mtab is available

 # mount /home/images/floppy.img /mnt/test2
 # mount | grep loop
 /dev/loop0 on /mnt/test2 type udf (rw)

mount(8) with auto-clear loopdev does not store information about the
original backing file (the image) to /etc/mtab. (Note that this is our
long-term goal, because we want to remove mtab from Linux.)

Unfortunately, losetup(8) is not able to provide full path for the
backing file, because LOOP_GET_STATUS ioctl uses 64 bytes for the
filename...

So, without the information about the backing file in mtab the
information about mapping between the file and the loopdev is
unaccessible from userspace.

From my point of view it would be nice to add all necessary
information about loopdevs to /sys rather than rely on broken
LOOP_GET_STATUS[64] ioctls.

with this patch:

  # mount /home/images/floppy.img /mnt/test2
  # mount | grep loop# mount | grep loop
  /home/images/floppy.img on /mnt/test2 type udf (ro,loop=/dev/loop0)

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=615389
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: get_string not calculating correct limits
Karel Zak [Mon, 19 Jul 2010 20:52:58 +0000 (22:52 +0200)]
cfdisk: get_string not calculating correct limits

Reported-by: James L. Hammons <jlhamm@acm.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: add nilfs2 test for libblkid
Jiro SEKIBA [Tue, 13 Jul 2010 07:14:08 +0000 (09:14 +0200)]
tests: add nilfs2 test for libblkid

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibblkid: add nilfs2 filesystem superblock probe
Jiro SEKIBA [Tue, 13 Jul 2010 07:12:56 +0000 (09:12 +0200)]
libblkid: add nilfs2 filesystem superblock probe

This patch implements nilfs2_idinfo to proble nilfs2 partition.
The patch probes uuid, label, version and verify crc check sum of
superblock.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: add COPYING.lib* files
Karel Zak [Mon, 12 Jul 2010 10:32:12 +0000 (12:32 +0200)]
docs: add COPYING.lib* files

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agoflock: fix file number in flock.1 man page
Patrice Dumas [Wed, 7 Jul 2010 08:09:40 +0000 (10:09 +0200)]
flock: fix file number in flock.1 man page

According to a search on the internet, the 200 file number is not a
posix shell feature, since posix shells are only mandated to have 1
through 9.  I haven't verified that this claim is right, but, at least
dash doesn't like the 200. So here is a patch for the flock man page
that replaces 200 with 9.

Signed-off-by: Patrice Dumas <pertusus@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolibmount: fix merge_optstr (do not truncate 3 trailing characters)
Petr Uzel [Sun, 4 Jul 2010 18:02:57 +0000 (20:02 +0200)]
libmount: fix merge_optstr (do not truncate 3 trailing characters)

I believe this is the correct fix.

Signed-off-by: Petr Uzel <petr.uzel@centrum.cz>
14 years agoswapon: Document btrfs limitation with swapfiles
Jeff Mahoney [Wed, 7 Jul 2010 08:01:17 +0000 (10:01 +0200)]
swapon: Document btrfs limitation with swapfiles

Btrfs, as of 2.6.35, is unable to allow swapfiles to be used on its
filesystems. This is due to the swapfile implementation wanting to
build an extent map of each block in the file and expecting it to be
static for the life of the swapfile.

Btrfs can't guarantee this and refuses to return the mapping. The
swapfile implementation just makes a comment about there being holes
in the file - but that's how btrfs denies the mapping.

This patch adds a section to the swapon manpage to document it.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: search for ncursesw/ncurses.h
Mike Frysinger [Thu, 1 Jul 2010 17:41:40 +0000 (13:41 -0400)]
cfdisk: search for ncursesw/ncurses.h

Some distros install the wide version of ncurses side by side with the
non-wide version and place the wide headers in an ncursesw/ subdir.  So
detect that behavior and include the right header with cfdisk.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
14 years agocfdisk: fix --with-slang
Karel Zak [Thu, 1 Jul 2010 08:56:41 +0000 (10:56 +0200)]
cfdisk: fix --with-slang

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: explicitly check for slang.h
Karel Zak [Thu, 1 Jul 2010 08:43:06 +0000 (10:43 +0200)]
build-sys: explicitly check for slang.h

The slang/slcurses.h contains

  #includes <slang.h>

but we don't use -I/usr/include/slang (and this is also missing in
slang.pc), it means that we have manually include the slang.h file
in our configure script.

Note this is Fedora-12, maybe some others distros have more usable
slang headers...

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: truncate BeFS and tuxonice images
Karel Zak [Thu, 1 Jul 2010 07:44:08 +0000 (09:44 +0200)]
tests: truncate BeFS and tuxonice images

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.18)
Karel Zak [Wed, 30 Jun 2010 13:08:21 +0000 (15:08 +0200)]
build-sys: release++ (v2.18)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update v2.18 ReleaseNotes
Karel Zak [Wed, 30 Jun 2010 12:51:06 +0000 (14:51 +0200)]
docs: update v2.18 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: merge changes
Karel Zak [Wed, 30 Jun 2010 12:46:19 +0000 (14:46 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Wed, 30 Jun 2010 12:29:05 +0000 (14:29 +0200)]
po: update pl.po (from translationproject.org)

14 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Wed, 30 Jun 2010 12:29:05 +0000 (14:29 +0200)]
po: update nl.po (from translationproject.org)

14 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Wed, 30 Jun 2010 12:29:05 +0000 (14:29 +0200)]
po: update cs.po (from translationproject.org)

14 years agodocs: update TODO
Karel Zak [Wed, 30 Jun 2010 09:29:09 +0000 (11:29 +0200)]
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotextual: slightly improve two README files
Benno Schulenberg [Sun, 20 Jun 2010 12:51:44 +0000 (14:51 +0200)]
textual: slightly improve two README files

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agomkswap: tweak the man page
Benno Schulenberg [Sun, 20 Jun 2010 12:39:59 +0000 (14:39 +0200)]
mkswap: tweak the man page

Note that option -v0 is obsolete, and remove the now unneeded comment
about new-style swap areas.  Further doublespace sentences, add some
commas and articles, and alphabetize the options.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agofdisk: improve the description of -c and -u options on man page
Benno Schulenberg [Sun, 20 Jun 2010 10:19:46 +0000 (12:19 +0200)]
fdisk: improve the description of -c and -u options on man page

Also doublespace sentences, hyphenate compound adjectives, alphabetize
the options (except for -CHS), and further tweak some descriptions.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agolscpu: replace LC_MESSAGES with LC_ALL in setlocate()
Francesco Cosoleto [Sun, 27 Jun 2010 12:24:35 +0000 (14:24 +0200)]
lscpu: replace LC_MESSAGES with LC_ALL in setlocate()

LC_CTYPE is necessary to print correctly some non English characters,
set LC_ALL for the sake of brevity.

Example:
    $ LANG=fr_FR lscpu -p | head -n 1
\# La suite est en format analysable, transmissible ? d'autres

instead of:
\# La suite est en format analysable, transmissible à d'autres

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agoipcrm: remove redundant message in case of invalid option
Francesco Cosoleto [Sun, 27 Jun 2010 12:24:34 +0000 (14:24 +0200)]
ipcrm: remove redundant message in case of invalid option

This leaves getopt() only to print a similar error message on invalid
options.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agoipcs: advise translators a different output format
Francesco Cosoleto [Sun, 27 Jun 2010 12:24:33 +0000 (14:24 +0200)]
ipcs: advise translators a different output format

Shared memory status output format need changes but there are backward
compatibility problems. This is a invite to apply in translations the
same style used for the rest of the summaries as well as for the limits
reported by -l option.

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agofsck: fix typo in fsck.8
Francesco Cosoleto [Sun, 27 Jun 2010 12:20:38 +0000 (14:20 +0200)]
fsck: fix typo in fsck.8

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agolscpu: fix typo in lscpu.1
Francesco Cosoleto [Sun, 27 Jun 2010 12:19:54 +0000 (14:19 +0200)]
lscpu: fix typo in lscpu.1

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agolscpu: gettextize "CPU(s)"
Francesco Cosoleto [Sun, 27 Jun 2010 13:02:51 +0000 (15:02 +0200)]
lscpu: gettextize "CPU(s)"

Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
14 years agomount: fix memory leak
Petr Uzel [Fri, 18 Jun 2010 15:14:53 +0000 (17:14 +0200)]
mount: fix memory leak

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agomount: fix typos in mount.8
Petr Uzel [Fri, 18 Jun 2010 15:14:09 +0000 (17:14 +0200)]
mount: fix typos in mount.8

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
14 years agodocs: update TODO
Karel Zak [Wed, 30 Jun 2010 08:35:42 +0000 (10:35 +0200)]
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocfdisk: fix warning: implicit declaration of function ‘wcwidth’
Karel Zak [Mon, 21 Jun 2010 08:01:26 +0000 (10:01 +0200)]
cfdisk: fix warning: implicit declaration of function ‘wcwidth’

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.18-rc2)
Karel Zak [Fri, 18 Jun 2010 10:25:55 +0000 (12:25 +0200)]
build-sys: release++ (v2.18-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: update v2.18 ReleaseNotes
Karel Zak [Fri, 18 Jun 2010 10:15:36 +0000 (12:15 +0200)]
docs: update v2.18 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: merge changes
Karel Zak [Fri, 18 Jun 2010 10:08:43 +0000 (12:08 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agopo: update pl.po (from translationproject.org)
Jakub Bogusz [Fri, 18 Jun 2010 09:27:16 +0000 (11:27 +0200)]
po: update pl.po (from translationproject.org)

14 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Fri, 18 Jun 2010 09:27:16 +0000 (11:27 +0200)]
po: update nl.po (from translationproject.org)

14 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Fri, 18 Jun 2010 09:27:15 +0000 (11:27 +0200)]
po: update cs.po (from translationproject.org)

14 years agomkswap: add a note that -p is uncecessary
Karel Zak [Thu, 17 Jun 2010 09:15:40 +0000 (11:15 +0200)]
mkswap: add a note that -p is uncecessary

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkswap: don't use too small user-specified page size
Karel Zak [Thu, 17 Jun 2010 08:57:47 +0000 (10:57 +0200)]
mkswap: don't use too small user-specified page size

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=601552
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomkswap: use calloc(), remove obsolete v1 header usage
Karel Zak [Thu, 17 Jun 2010 08:29:33 +0000 (10:29 +0200)]
mkswap: use calloc(), remove obsolete v1 header usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agowipefs: fix memory leaks
Karel Zak [Wed, 16 Jun 2010 21:41:33 +0000 (23:41 +0200)]
wipefs: fix memory leaks

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agowipefs: fix mem usage
Karel Zak [Wed, 16 Jun 2010 21:40:46 +0000 (23:40 +0200)]
wipefs: fix mem usage

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: fix CPU_EQUAL_S macro
Karel Zak [Wed, 16 Jun 2010 20:50:42 +0000 (22:50 +0200)]
lscpu: fix CPU_EQUAL_S macro

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotests: update fdisk tests
Karel Zak [Wed, 16 Jun 2010 09:04:39 +0000 (11:04 +0200)]
tests: update fdisk tests

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: extend -c and -u options to support old DOS stuff
Karel Zak [Wed, 16 Jun 2010 08:52:20 +0000 (10:52 +0200)]
fdisk: extend -c and -u options to support old DOS stuff

The DOS mode and cylinders as display units are disabled by default
now. For users who need old DOS behavior is it necessary to extend
-c (compatibility) and -u (units) command line options. The change is
backwardly compatible (so people who already uses -u and -c are not
affected with this change). New form:

 -c[=<mode>]   where <mode> is 'dos' or 'nondos' (default)
 -u[=<units>]  where <units> is 'cylinders' or 'sectors' (default)

For example old deprecated DOS behavior could be enabled by:

  fdisk -u=cylinders -c=dos /dev/sda

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agocal: remove unnecessary info from man page
Karel Zak [Wed, 16 Jun 2010 07:16:00 +0000 (09:16 +0200)]
cal: remove unnecessary info from man page

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=604238
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofdisk: disable DOS mode and cylinders by default
Karel Zak [Tue, 15 Jun 2010 11:13:05 +0000 (13:13 +0200)]
fdisk: disable DOS mode and cylinders by default

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: fix typo, "faild" to "failed"
Benno Schulenberg [Mon, 14 Jun 2010 18:12:56 +0000 (20:12 +0200)]
lscpu: fix typo, "faild" to "failed"

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agofdisk: remove erroneous <size> argument from -u option in help text
Benno Schulenberg [Mon, 14 Jun 2010 18:11:27 +0000 (20:11 +0200)]
fdisk: remove erroneous <size> argument from -u option in help text

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agofdisk: untangle the reporting of deprecated mode and unit
Benno Schulenberg [Mon, 14 Jun 2010 18:08:50 +0000 (20:08 +0200)]
fdisk: untangle the reporting of deprecated mode and unit

Translatable messages should not be split into parts that are
conditionally concatenated.  Preferably they should each form
a complete message.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochrt: add --verbose to man page, correct -V for --version, alphabetize
Benno Schulenberg [Mon, 14 Jun 2010 18:07:37 +0000 (20:07 +0200)]
chrt: add --verbose to man page, correct -V for --version, alphabetize

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agochrt: slice help text into manageable chunks for translators
Benno Schulenberg [Mon, 14 Jun 2010 18:03:21 +0000 (20:03 +0200)]
chrt: slice help text into manageable chunks for translators

[kzak@redhat.com: - clean up usage() function]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agochrt: change two messages into four translatable sentences
Benno Schulenberg [Mon, 14 Jun 2010 17:47:08 +0000 (19:47 +0200)]
chrt: change two messages into four translatable sentences

In several languages the translations for "current" and "new" will
have to be slightly different depending on whether they apply to
"policy" or "priority".  (As a general rule, translatable messages
should be full sentences, and not partial ones with optional words
filled in via %s.)

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: use %u for uid_t and gid_t
Karel Zak [Mon, 14 Jun 2010 16:42:58 +0000 (18:42 +0200)]
mount: use %u for uid_t and gid_t

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agotextual: fix typos
Karel Zak [Mon, 14 Jun 2010 16:15:29 +0000 (18:15 +0200)]
textual: fix typos

Reported-by: Petr Pisar <petr.pisar@atlas.cz>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agomount: add notes about -o remount,ro,bind to mount.8
Karel Zak [Mon, 14 Jun 2010 10:47:17 +0000 (12:47 +0200)]
mount: add notes about -o remount,ro,bind to mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agolscpu: add CPU_EQUAL_S definition for old/obscure libc
Karel Zak [Mon, 14 Jun 2010 09:25:31 +0000 (11:25 +0200)]
lscpu: add CPU_EQUAL_S definition for old/obscure libc

Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agofindmnt: ungettextize the directions and fix spelling
Benno Schulenberg [Thu, 10 Jun 2010 13:05:52 +0000 (15:05 +0200)]
findmnt: ungettextize the directions and fix spelling

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agomessages: gettextize a few skipped or forgotten ones
Benno Schulenberg [Thu, 10 Jun 2010 12:29:27 +0000 (14:29 +0200)]
messages: gettextize a few skipped or forgotten ones

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agotextual: fix typos, and rephrase some things for clarity
Benno Schulenberg [Thu, 10 Jun 2010 12:27:34 +0000 (14:27 +0200)]
textual: fix typos, and rephrase some things for clarity

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agouuidd: spell the plural of "UUID" consistently as "UUIDs"
Benno Schulenberg [Thu, 10 Jun 2010 12:04:26 +0000 (14:04 +0200)]
uuidd: spell the plural of "UUID" consistently as "UUIDs"

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
14 years agobuild-sys: minor changes for GNU/Hurd
Samuel Thibault [Thu, 10 Jun 2010 00:20:47 +0000 (02:20 +0200)]
build-sys: minor changes for GNU/Hurd

Here is a patch to fix the build on GNU/Hurd.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
14 years agomount: don't create loopdev for MS_BIND
Karel Zak [Mon, 14 Jun 2010 07:35:28 +0000 (09:35 +0200)]
mount: don't create loopdev for MS_BIND

Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=602573
Reported-by: Adam Tkac <atkac@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agodocs: fix umount --fake note in ReleaseNotes
Karel Zak [Tue, 8 Jun 2010 12:13:46 +0000 (14:13 +0200)]
docs: fix umount --fake note in ReleaseNotes

Reported-By: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Karel Zak <kzak@redhat.com>
14 years agobuild-sys: release++ (v2.18-rc1)
Karel Zak [Tue, 8 Jun 2010 09:52:42 +0000 (11:52 +0200)]
build-sys: release++ (v2.18-rc1)

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