]> err.no Git - util-linux/log
util-linux
16 years agoMerge commit 'origin/master'
LaMont Jones [Sat, 29 Mar 2008 21:28:53 +0000 (15:28 -0600)]
Merge commit 'origin/master'

16 years agodocs: update AUTHORS file
Karel Zak [Tue, 25 Mar 2008 22:47:02 +0000 (23:47 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: add v2.14 ReleaseNotes
Karel Zak [Tue, 25 Mar 2008 22:36:28 +0000 (23:36 +0100)]
docs: add v2.14 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge changes
Karel Zak [Tue, 25 Mar 2008 22:04:48 +0000 (23:04 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoldattach: add NLS support
Karel Zak [Tue, 25 Mar 2008 21:59:47 +0000 (22:59 +0100)]
ldattach: add NLS support

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: add pl.po (from translationproject.org)
Andrzej Krzysztofowicz [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: add pl.po (from translationproject.org)

16 years agopo: add eu.po (from translationproject.org)
Mikel Olasagasti [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: add eu.po (from translationproject.org)

16 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: update vi.po (from translationproject.org)

16 years agopo: update uk.po (from translationproject.org)
Maxim V. Dziumanenko [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: update uk.po (from translationproject.org)

16 years agopo: update tr.po (from translationproject.org)
Nilgün Belma Bugüner [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: update tr.po (from translationproject.org)

16 years agopo: update sv.po (from translationproject.org)
Daniel Nylander [Tue, 25 Mar 2008 21:42:31 +0000 (22:42 +0100)]
po: update sv.po (from translationproject.org)

16 years agopo: update sl.po (from translationproject.org)
Simon Mihevc [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update sl.po (from translationproject.org)

16 years agopo: update ru.po (from translationproject.org)
Pavel Maryanov [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update ru.po (from translationproject.org)

16 years agopo: update pt_BR.po (from translationproject.org)
Rodrigo Stulzer Lopes [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update pt_BR.po (from translationproject.org)

16 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update nl.po (from translationproject.org)

16 years agopo: update ja.po (from translationproject.org)
Daisuke Yamashita [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update ja.po (from translationproject.org)

16 years agopo: update it.po (from translationproject.org)
Marco Colombo [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update it.po (from translationproject.org)

16 years agopo: update id.po (from translationproject.org)
Arif E. Nugroho [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update id.po (from translationproject.org)

16 years agopo: update hu.po (from translationproject.org)
Gabor Kelemen [Tue, 25 Mar 2008 21:42:30 +0000 (22:42 +0100)]
po: update hu.po (from translationproject.org)

16 years agopo: update fr.po (from translationproject.org)
Michel Robitaille [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update fr.po (from translationproject.org)

16 years agopo: update et.po (from translationproject.org)
Meelis Roos [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update et.po (from translationproject.org)

16 years agopo: update es.po (from translationproject.org)
Santiago Vila Doncel [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update es.po (from translationproject.org)

16 years agopo: update de.po (from translationproject.org)
Michael Piefel [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update de.po (from translationproject.org)

16 years agopo: update da.po (from translationproject.org)
Claus Hindsgaul [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update da.po (from translationproject.org)

16 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update cs.po (from translationproject.org)

16 years agopo: update ca.po (from translationproject.org)
Josep Puigdemont [Tue, 25 Mar 2008 21:42:29 +0000 (22:42 +0100)]
po: update ca.po (from translationproject.org)

16 years agobuild-sys: release++
Karel Zak [Tue, 25 Mar 2008 21:42:06 +0000 (22:42 +0100)]
build-sys: release++

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Sat, 22 Mar 2008 19:22:24 +0000 (13:22 -0600)]
Merge branch 'stable/v2.13'

16 years agoMerge commit 'origin/master'
LaMont Jones [Sat, 22 Mar 2008 19:21:31 +0000 (13:21 -0600)]
Merge commit 'origin/master'

16 years agochangelog: release
LaMont Jones [Fri, 21 Mar 2008 16:18:31 +0000 (10:18 -0600)]
changelog: release

16 years agoswapon: Reinitialize software suspend areas to avoid future corruption.
Kees Cook [Thu, 20 Mar 2008 08:24:03 +0000 (01:24 -0700)]
swapon: Reinitialize software suspend areas to avoid future corruption.

This is based on the earlier swsuspend re-init patch carried by
RedHat, SuSE, and Ubuntu.  It has been updated to include passing
the known UUID to mkswap, and fixing the fstype name.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Kees Cook <kees.cook@canonical.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopartx: fix compiler warnings
Karel Zak [Thu, 20 Mar 2008 14:23:16 +0000 (15:23 +0100)]
partx: fix compiler warnings

dos.c:44: warning: pointer targets in assignment differ in signedness
dos.c:93: warning: pointer targets in assignment differ in signedness

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agochfn: fix compiler warnings in selinux stuff
Karel Zak [Thu, 20 Mar 2008 14:06:29 +0000 (15:06 +0100)]
chfn: fix compiler warnings in selinux stuff

selinux_utils.c:16: warning: assignment discards qualifiers from pointer target type

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkfs.minix: clean up gcc warnings
Karel Zak [Thu, 20 Mar 2008 13:57:40 +0000 (14:57 +0100)]
mkfs.minix: clean up gcc warnings

mkfs.minix.c:199: warning: ‘count_blocks’ defined but not used

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkswap: fix compiler warnings
Karel Zak [Thu, 20 Mar 2008 13:54:06 +0000 (14:54 +0100)]
mkswap: fix compiler warnings

mkswap.c:529: warning: pointer targets in assignment differ in signedness
mkswap.c:531: warning: pointer targets in assignment differ in signedness
mkswap.c:550: warning: pointer targets in passing argument 1 of `uuid_parse' differ in signedness

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoswapon: remove unnecessary myrealpath() call
Karel Zak [Thu, 20 Mar 2008 13:45:33 +0000 (14:45 +0100)]
swapon: remove unnecessary myrealpath() call

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoswapon: Reinitialize software suspend areas to avoid future corruption.
Kees Cook [Thu, 20 Mar 2008 08:24:03 +0000 (01:24 -0700)]
swapon: Reinitialize software suspend areas to avoid future corruption.

This is based on the earlier swsuspend re-init patch carried by
RedHat, SuSE, and Ubuntu.  It has been updated to include passing
the known UUID to mkswap, and fixing the fstype name.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Kees Cook <kees.cook@canonical.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: cleanup "x$foo" usage
Karel Zak [Thu, 20 Mar 2008 12:50:08 +0000 (13:50 +0100)]
build-sys: cleanup "x$foo" usage

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: use ncursesw (wide version) when possibe
Karel Zak [Tue, 4 Mar 2008 23:53:24 +0000 (00:53 +0100)]
build-sys: use ncursesw (wide version) when possibe

Detect ncursesw and use it in place of ncurses when possible
(default).  Allow people to use classic (non-wide) version by
--with-ncurses or disable all ncurses/ncursesw support by
--without-ncurses.

Co-Author: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: add VARSUFFIX to UTIL_CHECK_LIB
Karel Zak [Tue, 4 Mar 2008 23:34:49 +0000 (00:34 +0100)]
build-sys: add VARSUFFIX to UTIL_CHECK_LIB

The UTIL_CHECK_LIB macro follows the default autoconf behaviour and
generates have_<libname> and HAVE_LIB<LIBNAME> variables.

Some libraries are substitutional (e.g. ncurses and ncursesw). It would be
nice to generate for that libraries the same HAVE_ variables independently
on a library name.

This patch adds optional VARSUFFIX option to UTIL_CHECK_LIB, so the final
variables are have_<varsuffix> and HAVE_LIB<VARSUFFIX>.

For example:

    UTIL_CHECK_LIB(yyy, func)      generates have_yyy and HAVE_LIBYYY
    UTIL_CHECK_LIB(yyy, func, xxx) generates have_xxx and HAVE_LIBXXX

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: refresh TODO list
Karel Zak [Wed, 19 Mar 2008 10:43:10 +0000 (11:43 +0100)]
docs: refresh TODO list

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Thu, 13 Mar 2008 15:55:49 +0000 (09:55 -0600)]
Merge branch 'stable/v2.13'

Conflicts:

disk-utils/mkswap.8
disk-utils/mkswap.c

16 years agoMerge commit 'origin/master'
LaMont Jones [Thu, 13 Mar 2008 15:51:06 +0000 (09:51 -0600)]
Merge commit 'origin/master'

16 years agodocs: add note about static linking
Karel Zak [Wed, 12 Mar 2008 13:07:28 +0000 (14:07 +0100)]
docs: add note about static linking

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: remove useless if-before-my_free, define my_free as a macro
Karel Zak [Wed, 12 Mar 2008 11:28:50 +0000 (12:28 +0100)]
mount: remove useless if-before-my_free, define my_free as a macro

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoremove useless if-before-free tests.
Jim Meyering [Wed, 12 Mar 2008 10:42:16 +0000 (11:42 +0100)]
remove useless if-before-free tests.

E.g., in this example, the "if (p)" test is useless.

  if (p)
    free (p);

I've been removing such tests systematically.
Here's where I proposed it to the git folks, along with justification
for why it's ok to perform this transformation, these days (no one
uses SunOS4 anymore):

    http://thread.gmane.org/gmane.comp.version-control.git/74187

Signed-off-by: Jim Meyering <meyering@redhat.com>
16 years agoldattach: new command
Tilman Schmidt [Mon, 10 Mar 2008 13:20:26 +0000 (14:20 +0100)]
ldattach: new command

Add an ldattach(8) utility program similar to the one in OpenBSD.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
16 years agoMerge commit 'origin/master'
LaMont Jones [Sat, 8 Mar 2008 23:37:48 +0000 (16:37 -0700)]
Merge commit 'origin/master'

16 years agochangelog: release
LaMont Jones [Fri, 7 Mar 2008 03:34:08 +0000 (20:34 -0700)]
changelog: release

16 years agoagetty: make username-in-uppercase feature optional (off by default.)
Hamish Coleman [Mon, 3 Mar 2008 16:52:59 +0000 (09:52 -0700)]
agetty: make username-in-uppercase feature optional (off by default.)

The following patch makes the username-in-upper-case feature optional.

I have chosen to make it default to off since this feature was designed
to cater for serial terminals that were last sold almost 30 years ago,
thus the likelyhood that anyone will need this feature turned on is
vanishingly small.

Addresses-Debian-Bug: 156242
Signed-off-by: Hamish Coleman <hamish@zot.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: don't canonicalize LABEL= or UUID= spec
Karel Zak [Thu, 6 Mar 2008 14:43:41 +0000 (15:43 +0100)]
mount: don't canonicalize LABEL= or UUID= spec

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoagetty: make username-in-uppercase feature optional (off by default.)
Hamish Coleman [Mon, 3 Mar 2008 16:52:59 +0000 (09:52 -0700)]
agetty: make username-in-uppercase feature optional (off by default.)

The following patch makes the username-in-upper-case feature optional.

I have chosen to make it default to off since this feature was designed
to cater for serial terminals that were last sold almost 30 years ago,
thus the likelyhood that anyone will need this feature turned on is
vanishingly small.

Addresses-Debian-Bug: 156242
Signed-off-by: Hamish Coleman <hamish@zot.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdformat: install to /usr/sbin instead to /usr/bin
Karel Zak [Tue, 4 Mar 2008 10:10:42 +0000 (11:10 +0100)]
fdformat: install to /usr/sbin instead to /usr/bin

It should be in usrsbinexecdir, since formatting is usually a
privileged util-linux operation (like mkfs).

Reported-By: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge commit 'origin/master'
LaMont Jones [Thu, 21 Feb 2008 14:19:30 +0000 (07:19 -0700)]
Merge commit 'origin/master'

Conflicts:

mount/lomount.c
mount/losetup.8
mount/mount.c

16 years agoAdd menu item numbers for *fdisk udebs
Frans Pop [Thu, 21 Feb 2008 14:08:50 +0000 (07:08 -0700)]
Add menu item numbers for *fdisk udebs

Give the fdisk and cfdisk udebs a menu item number. This allows them to be
selected manually in anna. Update the udeb descriptions for consistency.

Addresses-Debian-Bug: 466831
Signed-off-by: Frans Pop <fjp@debian.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agomount: allow auto-destruction of loop devices
Bernardo Innocenti [Mon, 29 Oct 2007 02:47:33 +0000 (22:47 -0400)]
mount: allow auto-destruction of loop devices

This allows a flag to be set on loop devices so that when they are closed
for the last time, they'll self-destruct.

The kernel part has been submitted to lkml by David Woodhouse.

Signed-off-by: Bernardo Innocenti <bernie@codewiz.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agotests: add "sort" to cramfs test
Karel Zak [Mon, 18 Feb 2008 14:22:08 +0000 (15:22 +0100)]
tests: add "sort" to cramfs test

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: use pkg-config to find the libs for static build
Stepan Kasal [Tue, 11 Dec 2007 17:47:37 +0000 (18:47 +0100)]
build-sys: use pkg-config to find the libs for static build

Signed-off-by: Stepan Kasal <skasal@redhat.com>
16 years agobuild-sys: do not add -luuid to BLKID_LIBS
Stepan Kasal [Tue, 11 Dec 2007 17:47:36 +0000 (18:47 +0100)]
build-sys: do not add -luuid to BLKID_LIBS

* configure.ac: Do not include -luuid in BLKID_LIBS, the library
dependencies handle this.

Signed-off-by: Stepan Kasal <skasal@redhat.com>
16 years agobuild-sys: add --enable-static-programs
Stepan Kasal [Tue, 11 Dec 2007 17:47:34 +0000 (18:47 +0100)]
build-sys: add --enable-static-programs

Add support for static versions of mount, umount, losetup, fdisk,
and sfdisk.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Stepan Kasal <skasal@redhat.com>
16 years agofdisk: use more readable "GPT" name rather than "EFI GPT"
Robert Millan [Thu, 14 Feb 2008 23:13:26 +0000 (00:13 +0100)]
fdisk: use more readable "GPT" name rather than "EFI GPT"

Although GPT is defined in EFI spec, it is widely used without EFI, as it
reserves space for the MBR and works fine on PC/BIOS systems provided the
bootloader supports it.

This is in fact the way everyone seems to be following to overcome the 2 TiB
limitation with MSDOS partition table.

Signed-off-by: Robert Millan <rmh@aybabtu.com>
16 years agomount: use canonicalize in getfs_by_devname
Karel Zak [Fri, 15 Feb 2008 00:56:18 +0000 (01:56 +0100)]
mount: use canonicalize in getfs_by_devname

Fixes a problem when you define a device via a persistent
udev device name in /etc/fstab but use the real block device
name on mount invocation.

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agortcwake: fix typo SATE -> STATE
Mike Frysinger [Fri, 15 Feb 2008 00:43:24 +0000 (19:43 -0500)]
rtcwake: fix typo SATE -> STATE

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agortcwake: include libgen.h for basename prototype
Mike Frysinger [Thu, 14 Feb 2008 20:03:21 +0000 (15:03 -0500)]
rtcwake: include libgen.h for basename prototype

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
16 years agomkswap: set UUID for swap space (add -U option)
Martin Schulze [Sun, 27 Jan 2008 06:31:06 +0000 (23:31 -0700)]
mkswap: set UUID for swap space (add -U option)

A friend of mine is looking into the possibility of cloning Debian
(and other) systems automatically and stomped over swap partitions
getting assigned new UUIDs every time the new harddisk is partitioned
and swap is created.

It's essential when partitions are to be recognised by their uuid and
not by their old device path anymore.

Addresses-Ubuntu-Bug: #66637
Signed-off-by: LaMont Jones <lamont@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomount: "can't create lock file" message sometimes means failure, sometimes not
Mark McLoughlin [Mon, 28 Jan 2008 13:30:29 +0000 (14:30 +0100)]
mount: "can't create lock file" message sometimes means failure, sometimes not

What the patch does is goes from the situation where:

  1) If /etc/mtab doesn't exist and /etc is read-only, you get the
     "can't create lock file" message and the mount fails

  2) If /etc/mtab does exist and /etc is read-only,you get the same
     message but the mount succeeds

Clearly, the failure to update /etc/mtab should either cause the mount
to fail or not ... sometimes causing it to fail, and sometimes not
(each with the same message) is not useful.

This patch sets the same behaviour for create and update mtab. In both
cases it prints error message and the mount succeeds.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodebian/rules: allow cross-building
Neil Williams [Sun, 10 Feb 2008 20:51:41 +0000 (13:51 -0700)]
debian/rules: allow cross-building

In line with the other cross-building support bugs:
http://lists.debian.org/debian-devel/2007/11/msg00116.html

This patch is necessary to allow util-linux to cross-build in Debian,
following recommendations in autotools-dev. The cache file will be
handled separately.

Addresses-Debian-Bug: 465123
Signed-off-by: Neil Williams <codehelp@debian.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agodebian/rules: allow cross-building
Neil Williams [Sun, 10 Feb 2008 20:51:41 +0000 (13:51 -0700)]
debian/rules: allow cross-building

In line with the other cross-building support bugs:
http://lists.debian.org/debian-devel/2007/11/msg00116.html

This patch is necessary to allow util-linux to cross-build in Debian,
following recommendations in autotools-dev. The cache file will be
handled separately.

Addresses-Debian-Bug: 465123
Signed-off-by: Neil Williams <codehelp@debian.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agosetterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN
Samuel Thibault [Tue, 27 Nov 2007 22:54:35 +0000 (22:54 +0000)]
setterm: add -blan [force|poke] options for TIOCL_{BLANKED,BLANK}SCREEN

Linux has some interface to force an immediate blank
(TIOCL_BLANK/UNBLANKSCREEN) or get the blank status
(TIOCL_BLANKEDSCREEN), which is useful e.g. for blind people.

Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agortcwake: fix UTC time usage
David Brownell [Sun, 3 Feb 2008 23:34:35 +0000 (15:34 -0800)]
rtcwake: fix UTC time usage

Timezone handling is broken in this version since it's always
passing UTC time into the kernel, even on systems where the
RTC uses the local timezone.

I think that bug must come from bugs in how the system used to
to originally develop this code handled the RTC timezone.  Both
RTCs should have been kept in UTC ... but only one of them was.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
16 years agolosetup: add --associated option
Karel Zak [Mon, 26 Nov 2007 10:13:37 +0000 (11:13 +0100)]
losetup: add --associated option

    losetup -j | --associated <file> [-o <num>]

This new option lists all loop devices associated with given file
(and optionally file offset).

Examples:

 # losetup -a
 /dev/loop0: [0807]:21921808 (/foo/vfat-mbr.img)
 /dev/loop1: [0807]:21921808 (/foo/vfat-mbr.img), offset 100
 /dev/loop2: [0807]:21921802 (/bar/ext3.img)

 # losetup -j /foo/vfat-mbr.img
 /dev/loop0: [0807]:21921808 (/foo/vfat-mbr.img)
 /dev/loop1: [0807]:21921808 (/foo/vfat-mbr.img), offset 100

 # losetup -j /foo/vfat-mbr.img -o 100
 /dev/loop1: [0807]:21921808 (/foo/vfat-mbr.img), offset 100

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agolosetup: support unlimited number of loops
Karel Zak [Fri, 23 Nov 2007 14:13:22 +0000 (15:13 +0100)]
losetup: support unlimited number of loops

Old implementation:

 - supports 256 loop devices only
 - doesn't support gaps in list of loop devices
   (e.g. loop0, loop1, loop3 -- loop3 is invisible)

Kernel 2.6.21 removes artificial maximum 256 loop device. Now the maximum
of loop devices could be really huge (depends on limit of MINOR
numbers). It means we need a better way how work with loop devices
than blindly call stat(2) for all 0-1048575 devices.

This patch uses three methods:

 a) scan /sys/block/loopN (used for losetup -a only). This method is
    probably the fastest way how found used loop device on machine with
    huge number of devices in /dev.

 b) classic way, stat(2) for all loop[0-7] devices (default number of
    loop devices). This cheap method is sufficient for 99% of all machines.

 c) scan all /dev/loopN or /dev/loop/N

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoipcs: add information about POSIX compatibility to ipcs.1
Karel Zak [Thu, 7 Feb 2008 23:51:04 +0000 (00:51 +0100)]
ipcs: add information about POSIX compatibility to ipcs.1

Addresses-Suse-Bug: #274338
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoMerge commit 'origin/master'
LaMont Jones [Sun, 3 Feb 2008 17:42:20 +0000 (10:42 -0700)]
Merge commit 'origin/master'

Conflicts:

sys-utils/renice.c

16 years agorenice: detect errors in arguments, add -v, -h and long options
LaMont Jones [Sun, 13 Jan 2008 05:35:50 +0000 (22:35 -0700)]
renice: detect errors in arguments, add -v, -h and long options

 * renice was using atoi(), which does no error detection, meaning
   that: "renice +20 blah" was accepted as valid.

 * add -h | --help

 * add -v | --version

 * add long options for -p, -u and -g

 * cleanup coding style

Addresses-Debian-Bug: #385245
Co-Author: Karel Zak <kzak@redhat.com>
Signed-off-by: LaMont Jones <lamont@debian.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agokill: man page is missing a description of "kill -0"
Karel Zak [Mon, 28 Jan 2008 14:17:45 +0000 (15:17 +0100)]
kill: man page is missing a description of "kill -0"

Addresses-Red-Hat-Bugzilla: #429559
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agofdisk: better fallback for get_random_id()
H. Peter Anvin [Wed, 16 Jan 2008 18:53:56 +0000 (13:53 -0500)]
fdisk: better fallback for get_random_id()

When /dev/urandom is not available, we have to use some kind of a hack
to generate a random MBR identifier.  Use a better fallback that
incorporates the clock down to microsecond granularity.

Signed-off-by: H. Peter Anvin" <hpa@zytor.com>
16 years agologin: fix a small memory leak and remove unnecessary zeroing
Karel Zak [Mon, 28 Jan 2008 13:02:35 +0000 (14:02 +0100)]
login: fix a small memory leak and remove unnecessary zeroing

This patch fix a small memory leak (rh#251539) and also remove
unnecessary pam_set_item(). We needn't to zeroing PAM_USER when the
value is already NULL, it doesn't make sense.

Addresses-Red-Hat-Bugzilla: #251539
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoumount: don't print duplicate error messages
Karel Zak [Mon, 28 Jan 2008 12:13:25 +0000 (13:13 +0100)]
umount: don't print duplicate error messages

umount(8) is trying to umount a device two times to prevent some
obscure scenarios. It's maybe a nice feature, but it also produces
duplicate error messages.

  # umount /home
  umount: /home: device is busy
  umount: /home: device is busy

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agoumount: add hint about lsof & fuser
Karel Zak [Mon, 28 Jan 2008 11:52:04 +0000 (12:52 +0100)]
umount: add hint about lsof & fuser

This patch adds a hint about lsof and fuser to the "device is busy"
error message.

Addresses-Red-Hat-Bugzilla: #145844
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agomkswap: -U UUID cleanup
LaMont Jones [Sun, 27 Jan 2008 07:58:01 +0000 (00:58 -0700)]
mkswap: -U UUID cleanup

suggested by Mike Frysinger <vapier@gentoo.org>
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agomkswap: Set UUID for swap space
LaMont Jones [Sun, 27 Jan 2008 06:27:27 +0000 (23:27 -0700)]
mkswap: Set UUID for swap space

Sent to me by: Martin Schulze <joey@infodrom.org>:

A friend of mine is looking into the possibility of cloning Debian
(and other) systems automatically and stomped over swap partitions
getting assigned new UUIDs every time the new harddisk is partitioned
and swap is created.

His reseach lead him to

https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/66637

which refers to a patched version of mkswap:

http://free.nchc.org.tw/drbl-core/old/src/mkswap-uuid-0.1.0-2.tar.bz2
I'm attaching it for reference and in case the above URL becomes void.

It would be nice if you could apply this patch and send it upstream.

It's essential when partitions are to be recognised by their uuid and
not by their old device path anymore.

Regards,

        Joey

Addresses-Debian-Bug: 462662
Addresses-Ubuntu-Bug: 66637
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agohwclock.sh: fix typo
glandux [Sat, 26 Jan 2008 16:57:41 +0000 (09:57 -0700)]
hwclock.sh: fix typo

Addresses-Ubuntu-Bug: 103680
Signed-off-by: LaMont Jones <lamont@debian.org>
16 years agoMerge branch 'stable/v2.13'
LaMont Jones [Sat, 19 Jan 2008 17:38:31 +0000 (10:38 -0700)]
Merge branch 'stable/v2.13'

Conflicts:

AUTHORS
NEWS
configure.ac
docs/v2.13.1-ReleaseNotes
po/de.po
po/hu.po

16 years agoMerge commit 'origin/master'
LaMont Jones [Sat, 19 Jan 2008 17:35:04 +0000 (10:35 -0700)]
Merge commit 'origin/master'

16 years agochangelog: release
LaMont Jones [Sat, 19 Jan 2008 15:12:35 +0000 (08:12 -0700)]
changelog: release

16 years agoMerge commit 'origin/stable/v2.13' into stable/v2.13
LaMont Jones [Sat, 19 Jan 2008 15:01:14 +0000 (08:01 -0700)]
Merge commit 'origin/stable/v2.13' into stable/v2.13

16 years agocal: fix weekday alignment for certain locales
Pádraig Brady [Fri, 4 Jan 2008 10:44:53 +0000 (10:44 +0000)]
cal: fix weekday alignment for certain locales

For example this had too much padding: LANG=zh_CN.utf8 cal -j
while this had too little padding:     LANG=hu_HU.utf8 cal
This had invalid chars:                LANG=li_BE.utf8 cal
This had too few chars:                LANG=si_LK.utf8 cal

Note some locales may display with slightly worse alignment
(fa_IR.utf8 for example), but that is only because the terminal
is not merging the combining characters. This happens on
gnome-terminal-2.18.3-1.fc8 at least.

Signed-off-by: Pádraig Brady <P@draigBrady.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agobuild-sys: release++ (2.13.1)
Karel Zak [Wed, 16 Jan 2008 12:40:13 +0000 (13:40 +0100)]
build-sys: release++ (2.13.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update ReleseNotes
Karel Zak [Wed, 16 Jan 2008 12:11:24 +0000 (13:11 +0100)]
docs: update ReleseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: merge files
Karel Zak [Wed, 16 Jan 2008 12:08:04 +0000 (13:08 +0100)]
po: merge files

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agodocs: update AUTHORS file
Karel Zak [Wed, 16 Jan 2008 11:38:31 +0000 (12:38 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
16 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update vi.po (from translationproject.org)

16 years agopo: update uk.po (from translationproject.org)
Maxim V. Dziumanenko [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update uk.po (from translationproject.org)

16 years agopo: update tr.po (from translationproject.org)
Nilgün Belma Bugüner [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update tr.po (from translationproject.org)

16 years agopo: update sv.po (from translationproject.org)
Daniel Nylander [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update sv.po (from translationproject.org)

16 years agopo: update sl.po (from translationproject.org)
Simon Mihevc [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update sl.po (from translationproject.org)

16 years agopo: update ru.po (from translationproject.org)
Pavel Maryanov [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update ru.po (from translationproject.org)

16 years agopo: update pt_BR.po (from translationproject.org)
Rodrigo Stulzer Lopes [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update pt_BR.po (from translationproject.org)

16 years agopo: update pl.po (from translationproject.org)
Andrzej Krzysztofowicz [Wed, 16 Jan 2008 11:35:56 +0000 (12:35 +0100)]
po: update pl.po (from translationproject.org)