]> err.no Git - util-linux/log
util-linux
17 years agodrop arch.1 man page as well.
LaMont Jones [Sun, 19 Aug 2007 16:06:16 +0000 (10:06 -0600)]
drop arch.1 man page as well.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agochangelog
LaMont Jones [Wed, 15 Aug 2007 20:22:57 +0000 (14:22 -0600)]
changelog

17 years agoMerge commit 'origin'
LaMont Jones [Wed, 15 Aug 2007 12:50:40 +0000 (06:50 -0600)]
Merge commit 'origin'

Conflicts:

schedutils/taskset.1

17 years agopo: update de.po (from translationproject.org)
Karel Zak [Wed, 15 Aug 2007 10:26:46 +0000 (12:26 +0200)]
po: update de.po (from translationproject.org)

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: add note about http://translationproject.org
Karel Zak [Wed, 15 Aug 2007 10:10:13 +0000 (12:10 +0200)]
docs: add note about http://translationproject.org

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoman-pages: cleanup of chrt.1 and taskset.1
LaMont Jones [Tue, 14 Aug 2007 13:28:14 +0000 (07:28 -0600)]
man-pages: cleanup of chrt.1 and taskset.1

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: improve error message when helper program not present
LaMont Jones [Thu, 9 Aug 2007 19:37:22 +0000 (13:37 -0600)]
mount: improve error message when helper program not present

"missing codepage" is a bit confusing to many people, so include
"helper program" in the error message when we fail to mount something.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agochangelog, and fix rules check for distro
LaMont Jones [Wed, 15 Aug 2007 06:17:40 +0000 (00:17 -0600)]
changelog, and fix rules check for distro

17 years agomount: Use Breaks: control file syntax where possible, instead of preinst.
LaMont Jones [Wed, 15 Aug 2007 06:15:31 +0000 (00:15 -0600)]
mount: Use Breaks: control file syntax where possible, instead of preinst.

17 years agofinish merge from ubuntu-v2.13 to master, release
LaMont Jones [Tue, 14 Aug 2007 18:59:44 +0000 (12:59 -0600)]
finish merge from ubuntu-v2.13 to master, release

build: merge ubuntu and debian trees, do the right thing at build time
And yes, udev versions differ, so ubuntu's build-depends are a tad broken.  bummer.

control: Depend, not Pre-Depend.  Transition to libc5 is _LONG_ over.

17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Tue, 14 Aug 2007 18:32:46 +0000 (12:32 -0600)]
Merge branch 'master' into ubuntu-v2.13

17 years agochangelog
LaMont Jones [Tue, 14 Aug 2007 18:24:55 +0000 (12:24 -0600)]
changelog

17 years agocopyright: reflect README.licensing
LaMont Jones [Tue, 14 Aug 2007 18:24:40 +0000 (12:24 -0600)]
copyright: reflect README.licensing

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agoMerge commit 'origin'
LaMont Jones [Tue, 14 Aug 2007 15:54:08 +0000 (09:54 -0600)]
Merge commit 'origin'

17 years agochangelog
LaMont Jones [Tue, 14 Aug 2007 13:46:11 +0000 (07:46 -0600)]
changelog

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomanpages: cleanup of chrt.1 and taskset.1
LaMont Jones [Tue, 14 Aug 2007 13:28:14 +0000 (07:28 -0600)]
manpages: cleanup of chrt.1 and taskset.1

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agopo: gettextizing some overlooked messages.
Benno Schulenberg [Sun, 12 Aug 2007 09:48:34 +0000 (11:48 +0200)]
po: gettextizing some overlooked messages.

Gettextize three new strings, make two strings indentical to two others,
and gettextize three strings that are already gettextized elsewhere.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: add --disable-makeinstall-chown
Karel Zak [Tue, 14 Aug 2007 12:32:45 +0000 (14:32 +0200)]
build-sys: add --disable-makeinstall-chown

A chown-like operations are unexpected when you execute "make install"
as non-root user. For example RPM defines owner+permissions in .spec
file -- you needn't to use root account to create useful RPM package.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: add README.licensing
Karel Zak [Tue, 14 Aug 2007 10:27:55 +0000 (12:27 +0200)]
docs: add README.licensing

There is not only one unique license for all code in utl-linux-ng. We
have mix of utils with Public Domain, BSD, GPLv2 or GPLv2+. This thing
should be more transparent to avoid misunderstanding.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: fix ULONG_MAX usage on 32bit machines
Karel Zak [Tue, 14 Aug 2007 10:05:29 +0000 (12:05 +0200)]
tests: fix ULONG_MAX usage on 32bit machines

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agochsh: don't use empty shell field in /etc/passwd
Karel Zak [Tue, 14 Aug 2007 10:04:09 +0000 (12:04 +0200)]
chsh: don't use empty shell field in /etc/passwd

chsh(1) uses empty shell setting (pw->pw_shell="") as a synonym for
/bin/sh. This convention is silly and unnecessary. (The vsftpd server
will not run if the shell assigned to user "ftp" is a null string --
according to bug rh#103004).

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomore: fix underlining for multibyte chars
Karel Zak [Tue, 14 Aug 2007 09:51:19 +0000 (11:51 +0200)]
more: fix underlining for multibyte chars

Try:
$ printf "aaa _\bŽ_\bŽ_\bŽ bbb\n" | more
aaa ŽŽŽ bbb

(ŽŽŽ has to be three underlined chars on terminal).

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agologin: replace /usr/spool/mail with /var/spool/main in man page
Karel Zak [Tue, 14 Aug 2007 08:58:57 +0000 (10:58 +0200)]
login: replace /usr/spool/mail with /var/spool/main in man page

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Thu, 9 Aug 2007 22:00:25 +0000 (16:00 -0600)]
Merge branch 'master' into ubuntu-v2.13

Conflicts:

debian/changelog

17 years agochangelog
LaMont Jones [Thu, 9 Aug 2007 19:49:52 +0000 (13:49 -0600)]
changelog

17 years agohwclock.sh: only report hwclock updated if we did that. Closes: #436873
LaMont Jones [Thu, 9 Aug 2007 19:49:24 +0000 (13:49 -0600)]
hwclock.sh: only report hwclock updated if we did that.  Closes: #436873

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomount: improve error message when helper program not present
LaMont Jones [Thu, 9 Aug 2007 19:37:22 +0000 (13:37 -0600)]
mount: improve error message when helper program not present

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agobuild: add lpia support back in
LaMont Jones [Thu, 9 Aug 2007 14:48:53 +0000 (08:48 -0600)]
build: add lpia support back in

17 years agobuild: add lpia support back in
LaMont Jones [Thu, 9 Aug 2007 14:48:53 +0000 (08:48 -0600)]
build: add lpia support back in

17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Wed, 8 Aug 2007 19:46:38 +0000 (13:46 -0600)]
Merge branch 'master' into ubuntu-v2.13

fix hurd-i386 build-depends

Conflicts:

debian/control

17 years agobuild: no libselinux on hurd-i386 either
LaMont Jones [Wed, 8 Aug 2007 19:35:14 +0000 (13:35 -0600)]
build: no libselinux on hurd-i386 either

17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Wed, 8 Aug 2007 19:22:37 +0000 (13:22 -0600)]
Merge branch 'master' into ubuntu-v2.13

Conflicts:

debian/changelog

17 years agomount: suggest rather than recommend nfs-common
LaMont Jones [Wed, 8 Aug 2007 19:18:23 +0000 (13:18 -0600)]
mount: suggest rather than recommend nfs-common

17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Wed, 8 Aug 2007 17:58:04 +0000 (11:58 -0600)]
Merge branch 'master' into ubuntu-v2.13

Conflicts:

debian/changelog

17 years agochangelog
LaMont Jones [Wed, 8 Aug 2007 17:54:07 +0000 (11:54 -0600)]
changelog

17 years agoMerge commit 'origin'
LaMont Jones [Wed, 8 Aug 2007 17:47:10 +0000 (11:47 -0600)]
Merge commit 'origin'

Conflicts:

configure.ac

17 years agotests: add warning "For development purpose only."
Karel Zak [Tue, 7 Aug 2007 22:42:29 +0000 (00:42 +0200)]
tests: add warning "For development purpose only."

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: release++
Karel Zak [Tue, 7 Aug 2007 22:15:52 +0000 (00:15 +0200)]
build-sys: release++

Increment release number to v2.13-rc3.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update AUTHORS file
Karel Zak [Tue, 7 Aug 2007 22:13:54 +0000 (00:13 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update ReleaseNotes
Karel Zak [Tue, 7 Aug 2007 22:07:57 +0000 (00:07 +0200)]
docs: update ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update po/ stuff
Karel Zak [Tue, 7 Aug 2007 21:34:52 +0000 (23:34 +0200)]
po: update po/ stuff

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agochangelog
LaMont Jones [Tue, 7 Aug 2007 16:44:04 +0000 (10:44 -0600)]
changelog

17 years agoIf nfs-common is not installed, skip nfs check
LaMont Jones [Tue, 7 Aug 2007 15:28:17 +0000 (09:28 -0600)]
If nfs-common is not installed, skip nfs check

17 years agoMerge commit 'origin'
LaMont Jones [Tue, 7 Aug 2007 15:25:07 +0000 (09:25 -0600)]
Merge commit 'origin'

Conflicts:

mount/swapon.c

17 years agoswapon: cleanup fsprobe_*() usage
Karel Zak [Tue, 7 Aug 2007 10:03:53 +0000 (12:03 +0200)]
swapon: cleanup fsprobe_*() usage

This patch clean ups code and avoids duplicate calling of fsprobe
functions.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoswapoff: correctly handle UUID= and LABEL= identifiers
LaMont Jones [Sun, 5 Aug 2007 00:04:11 +0000 (18:04 -0600)]
swapoff: correctly handle UUID= and LABEL= identifiers

While parsing /etc/fstab, swapoff did not make provision for UUID= and
LABEL= identifiers.  Added logic similar to swapon -a code.

Signed-off-by: Kel Modderman <kel@otaku42.de>
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomount: fix incorrect behavior when more than one fs type is specified
Attila Áfra [Mon, 6 Aug 2007 12:48:37 +0000 (15:48 +0300)]
mount: fix incorrect behavior when more than one fs type is specified

"mount" may fail when more than one file system type is specified, and the
requested access mode is read/write, but the device is read-only. The error
message is: "mount: wrong fs type, bad option, bad superblock on...".
It works only if the correct file system type is the last item in the comma
separated list. This is because when it tries to mount the file system again
in read-only mode, the "types" parameter passed to the "try_mount_one"
function contains only the last item instead of the entire list.

For example, you cannot mount a UDF CD/DVD with "-t udf,iso9660" if you
don't also add the read-only option. This means that some Linux distributions
with the default configuration may not be able to mount UDF disks
automatically (e.g. Ubuntu Dapper - Gutsy Tribe 3).

Signed-off-by: Attila Áfra <attila.afra@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add script(1) race condition test
Karel Zak [Mon, 6 Aug 2007 22:46:46 +0000 (00:46 +0200)]
tests: add script(1) race condition test

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoscript: fix race conditions
Karel Zak [Mon, 6 Aug 2007 22:36:31 +0000 (00:36 +0200)]
script: fix race conditions

script(1) uses three processes (doinput, dooutput and doshell).  It's
possible that the shell process is finished before the input and
output processes are completely initialized. For example:

  $ script -c "printf Bingo"

In particular case the output and input processes read/write data from
shell process in time when the shell process is already done -- so it
hangs on read().

The second problem is that the output process can finish although
there are unread data from finished shell process -- an output in
the typescript file and on terminal is incomplete!

script(1) has to pass:

 $ for i in `seq 1 1000`; do script -q -c "printf 'Bingo\n'"; done | grep -c Bingo
 1000

without problems.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agochangelog: release
LaMont Jones [Sun, 5 Aug 2007 00:22:39 +0000 (18:22 -0600)]
changelog: release

17 years agochangelog
LaMont Jones [Sat, 4 Aug 2007 18:34:27 +0000 (12:34 -0600)]
changelog

17 years agoadd bug #
LaMont Jones [Sat, 4 Aug 2007 16:43:48 +0000 (10:43 -0600)]
add bug #

17 years agoMerge branch 'master' into ubuntu-v2.13
LaMont Jones [Sat, 4 Aug 2007 03:40:43 +0000 (21:40 -0600)]
Merge branch 'master' into ubuntu-v2.13

Conflicts:

debian/changelog
debian/control
debian/rules

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomount.preinst: deal with no /proc/mounts
LaMont Jones [Fri, 3 Aug 2007 15:57:32 +0000 (09:57 -0600)]
mount.preinst: deal with no /proc/mounts

17 years agochangelog
LaMont Jones [Thu, 2 Aug 2007 14:36:02 +0000 (08:36 -0600)]
changelog

17 years agoswapoff: correctly handle UUID= and LABEL= identifiers
LaMont Jones [Thu, 2 Aug 2007 14:35:07 +0000 (08:35 -0600)]
swapoff: correctly handle UUID= and LABEL= identifiers

While parsing /etc/fstab, swapoff did not make provision for UUID= and
LABEL= identifiers.  Added logic similar to swapon -a code.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomkfs: remove nonsense from man page
Karel Zak [Thu, 2 Aug 2007 12:23:38 +0000 (14:23 +0200)]
mkfs: remove nonsense from man page

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomore stuff from upstream
LaMont Jones [Wed, 1 Aug 2007 14:07:41 +0000 (08:07 -0600)]
more stuff from upstream

17 years agoblockdev: use LU and LLU for BLKGETSIZE and BLKGETSIZE64
Karel Zak [Wed, 1 Aug 2007 13:47:33 +0000 (15:47 +0200)]
blockdev: use LU and LLU for BLKGETSIZE and BLKGETSIZE64

The "blkockdev --getsize" returns negative numbers on i386
for 1Tb devices. The BLKGETSIZE and BLKGETSIZE64 have to
use unsigned long and unsigned long long.

$ blockdev --getsize /dev/mapper/huge
-2147483648

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoblockdev: fix "blockdev --getsz" for large devices
Karel Zak [Wed, 1 Aug 2007 13:06:18 +0000 (15:06 +0200)]
blockdev: fix "blockdev --getsz" for large devices

The "blockdev --getsz" command doesn't try to use BLKGETSIZE64 when
previous BLKGETSIZE failed with EFBIG. This patch fixes this problem.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agorelease
LaMont Jones [Wed, 1 Aug 2007 04:34:49 +0000 (22:34 -0600)]
release

17 years agomount.preinst: update error message to be more specific; more bug numbers for changelog
LaMont Jones [Wed, 1 Aug 2007 04:30:21 +0000 (22:30 -0600)]
mount.preinst: update error message to be more specific; more bug numbers for changelog

17 years agomount: should set proper permissions on locktime
Flávio Leitner [Tue, 31 Jul 2007 10:42:14 +0000 (12:42 +0200)]
mount: should set proper permissions on locktime

When creating the "/etc/mtab~" lockfile (specifically 'linktargetfile'  in the
lock_mtab function), the file is created with incorrect permissions ('000')
which necessitates root to leverage CAP_DAC_OVERRIDE. If proper file modes (it
would appear 0600 would be sufficient) were used in the open this would
function properly with CAP_DAC_OVERRIDE revoked.

  $ sysctl -w kernel.cap-bound=0xf7fd7df5
  $ mount -t tmpfs /dev/swap /mnt
  can't open lock file /etc/mtab~: Permission denied (use -n flag to override)

Signed-off-by: Flávio Leitner <fleitner@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosnprintf always NULL terminates
LaMont Jones [Tue, 31 Jul 2007 05:01:29 +0000 (23:01 -0600)]
snprintf always NULL terminates

17 years agolook in the right place
LaMont Jones [Mon, 30 Jul 2007 23:37:02 +0000 (17:37 -0600)]
look in the right place

17 years agoBUILD: do not deliver arch binary
LaMont Jones [Mon, 30 Jul 2007 14:52:05 +0000 (08:52 -0600)]
BUILD: do not deliver arch binary

17 years agomount: fail in preinst if newer nfs-common is needed
LaMont Jones [Mon, 30 Jul 2007 14:09:52 +0000 (08:09 -0600)]
mount: fail in preinst if newer nfs-common is needed

17 years agoRecommend: nfs-common
LaMont Jones [Mon, 30 Jul 2007 07:07:49 +0000 (01:07 -0600)]
Recommend: nfs-common

17 years agoBUILD: use libvolume-id-dev now that debian has new enough udev
LaMont Jones [Sun, 29 Jul 2007 22:26:17 +0000 (16:26 -0600)]
BUILD: use libvolume-id-dev now that debian has new enough udev

17 years agomerge from debian
LaMont Jones [Sun, 29 Jul 2007 17:31:47 +0000 (11:31 -0600)]
merge from debian

17 years agorelease
LaMont Jones [Sun, 29 Jul 2007 05:32:06 +0000 (23:32 -0600)]
release

17 years agoadd missing braces in logger.c
LaMont Jones [Sun, 29 Jul 2007 04:51:37 +0000 (22:51 -0600)]
add missing braces in logger.c

17 years agostart uploading to unstable
LaMont Jones [Sun, 29 Jul 2007 04:42:26 +0000 (22:42 -0600)]
start uploading to unstable

17 years agofix logger.c the rest of the way
LaMont Jones [Sun, 29 Jul 2007 04:42:00 +0000 (22:42 -0600)]
fix logger.c the rest of the way

17 years agomerge upstream
LaMont Jones [Sun, 29 Jul 2007 04:33:29 +0000 (22:33 -0600)]
merge upstream

17 years agodisk-utils: let mkfs tools open with O_EXCL
Matthias Koenig [Wed, 18 Jul 2007 14:15:46 +0000 (16:15 +0200)]
disk-utils: let mkfs tools open with O_EXCL

Let mkswap, mkfs.bfs, mkfs.minix open with O_EXCL if
used on block devices to prevent writing to the device
even if they are busy (mounted).

Unfortunately, O_EXCL has zero effect for 2.4 kernels where
in-kernel code doesn't use O_EXCL-like access locks. (Tested
on RHEL3.)

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoremove hardcoded package name from some utils
Karel Zak [Fri, 27 Jul 2007 10:12:00 +0000 (12:12 +0200)]
remove hardcoded package name from some utils

We have PACKAGE_STRING in config.h that includes package name and
version. It's better to use this macro that hardcoded strings.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: fix directories in EXTRA_DIST
Karel Zak [Thu, 26 Jul 2007 13:21:50 +0000 (15:21 +0200)]
build-sys: fix directories in EXTRA_DIST

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: fix -f -o remount
Karel Zak [Thu, 26 Jul 2007 12:39:03 +0000 (14:39 +0200)]
mount: fix -f -o remount

Bug:

   $ mount -fv / -o remount
   mount: according to mtab, /dev/sda3 is already mounted on /

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agordev: should be delivered on amd64 as well as i386.
LaMont Jones [Tue, 17 Jul 2007 23:48:10 +0000 (17:48 -0600)]
rdev: should be delivered on amd64 as well as i386.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoagetty: fix short malloc in initstring handling
LaMont Jones [Tue, 17 Jul 2007 23:47:33 +0000 (17:47 -0600)]
agetty: fix short malloc in initstring handling

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agodocs: add rdev(8) between deprecated utils
Karel Zak [Wed, 25 Jul 2007 16:50:01 +0000 (18:50 +0200)]
docs: add rdev(8) between deprecated utils

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: add ${AC,AP,AM,AH}_OPTS to autogen.sh
Karel Zak [Wed, 25 Jul 2007 16:45:01 +0000 (18:45 +0200)]
build-sys: add ${AC,AP,AM,AH}_OPTS to autogen.sh

With this patch, you can define autotool options when you
need to generate build-system. For example:

  $ AM_OPTS="--copy" ./autogen.sh

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoagetty: 8 bit characters on the Linux console lead to input corruption
Moritz Muehlenhoff [Wed, 18 Jul 2007 22:29:13 +0000 (00:29 +0200)]
agetty: 8 bit characters on the Linux console lead to input corruption

8 bit characters on the Linux console lead to input corruption (e.g.
German umlauts). This is easily reproducable by inserting a login name with
umlaut and typing backspace afterwards.

agetty supports tty parity, which leads to getty treating these characters
as a 7bit char with set parity.

This patch by Samuel Thibault adds a new option -8 which disables parity
detection for ttys not used for serial logins.

| Note: With this patch, 8bit characters are just silently dropped (that's
| the expected getty behavior), this is quite neat since you then don't
| even need to backspace your 8bit characters :)

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agolook: man page clarification
Pádraig Brady [Wed, 25 Jul 2007 14:36:37 +0000 (15:36 +0100)]
look: man page clarification

* misc-utils/look.1: Clarify the default state of the -d and -f options

Signed-Off-By: Pádraig Brady <P@draigBrady.com>
17 years agomkswap: fix signedness problems and remove obsolete code
Karel Zak [Wed, 25 Jul 2007 14:55:25 +0000 (16:55 +0200)]
mkswap: fix signedness problems and remove obsolete code

The UUID is unsigned char *

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoionice: cleanup usage for idle class
Matthias Koenig [Tue, 17 Jul 2007 14:00:32 +0000 (16:00 +0200)]
ionice: cleanup usage for idle class

The idle class has no class data. It will print a warning if
a prio argument is given for it, since this will be ignored.
Output for idle class will not contain prio data.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agomount: update xfs mount options
Matthias Koenig [Tue, 24 Jul 2007 17:29:39 +0000 (19:29 +0200)]
mount: update xfs mount options

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agoscript: improve quiet mode
Karel Zak [Tue, 24 Jul 2007 13:22:57 +0000 (15:22 +0200)]
script: improve quiet mode

script(1) is not consistent and writes "Script started on.." to
scriptfile, although the others messages are ignored when running
with '-q'.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomkswap: default to V1 in any case
Matthias Koenig [Wed, 18 Jul 2007 14:15:45 +0000 (16:15 +0200)]
mkswap: default to V1 in any case

mkswap(8) enforces to use v0 swap format when pagesize > 16kB.
(use case might be ppc64 with CONFIG_PPC_64K_PAGES).

As version 0 swap is not supported anymore by recent kernels, the
behaviour in this case is rather strange.

Here is a testcase:

for i in 4 8 16 32 64; do mkswap -p `expr $i \* 1024` ./swap.file; done
Setting up swapspace version 1, size = 4294963 kB

Using user-specified page size 8192, instead of the system values
4096/4096
Setting up swapspace version 1, size = 4294959 kB

Using user-specified page size 16384, instead of the system values
4096/4096
Setting up swapspace version 1, size = 4294950 kB

Using user-specified page size 32768, instead of the system values
4096/4096
Setting up swapspace version 0, size = 4294934 kB

Using user-specified page size 65536, instead of the system values
4096/4096
Setting up swapspace version 0, size = 4294901 kB

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoreadprofile: fix on ppc64
Matthias Koenig [Wed, 18 Jul 2007 14:15:44 +0000 (16:15 +0200)]
readprofile: fix on ppc64

Fix inconsistency between kernel profiling and readprofile.
The range of kernel profiling is between _stext and _etext,
and readprofile tries to extract profiling for all the symbols in
/boot/System.map-2.6.16.11-7-ppc64 from /proc/profile, but there
are more symbols in /boot/System.map-2.6.16.11-7-ppc64 than those
between _stext and _etext.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomanpage typos
LaMont Jones [Wed, 18 Jul 2007 05:32:03 +0000 (23:32 -0600)]
manpage typos

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agomount: mention hfsplus in mount manpage
LaMont Jones [Wed, 18 Jul 2007 04:34:04 +0000 (22:34 -0600)]
mount: mention hfsplus in mount manpage

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agologger: use snprintf instead of sprintf in logger.c
LaMont Jones [Wed, 18 Jul 2007 04:43:15 +0000 (22:43 -0600)]
logger: use snprintf instead of sprintf in logger.c

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: cleanup partname.c
Karel Zak [Mon, 23 Jul 2007 21:55:37 +0000 (23:55 +0200)]
fdisk: cleanup partname.c

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: add support for udev persistent device names
Matthias Koenig [Tue, 17 Jul 2007 16:07:11 +0000 (18:07 +0200)]
fdisk: add support for udev persistent device names

udev names partitions with the extension "-partN" (where N is a
partition number).

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agotests: use $AWK based on configure results
Karel Zak [Fri, 20 Jul 2007 13:08:54 +0000 (15:08 +0200)]
tests: use $AWK based on configure results

The hardcoded "gawk" seems like a bad idea.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add license notices, change from gplv2-only to gplv2-or-later
Karel Zak [Fri, 20 Jul 2007 12:43:49 +0000 (14:43 +0200)]
tests: add license notices, change from gplv2-only to gplv2-or-later

The previous "gplv2-only" was copy&past mistake. This re-licensing is
correct -- there is not any other contributor to this code.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: add license notices, change from gplv2-only to gplv2-or-later
Karel Zak [Fri, 20 Jul 2007 12:43:49 +0000 (14:43 +0200)]
tests: add license notices, change from gplv2-only to gplv2-or-later

The previous "gplv2-only" was copy&past mistake. This re-licensing is
correct -- there is not any other contributor to this code.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: missing header when NLS is disabled
Gabriel Barazer [Fri, 20 Jul 2007 15:11:38 +0000 (17:11 +0200)]
build-sys: missing header when NLS is disabled

Compiling utils fail when disable NLS with the --disable-nls switch.
"mkfs.c:46: error: 'LC_ALL' undeclared (first use in this function)"
It is due to a missing locale.h header : When enabling NLS, nls.h
includes libintl.h, which in turn includes locale.h. When disabling NLS,
libintl.h isn't anymore included nor locale.h, which is needed for the
setlocale() calls.

Signed-off-by: Gabriel Barazer <gabriel@oxeva.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>