]> err.no Git - util-linux/log
util-linux
17 years agomount: avoid duplicates for root fs in mtab
Matthias Koenig [Fri, 24 Aug 2007 11:05:27 +0000 (13:05 +0200)]
mount: avoid duplicates for root fs in mtab

If the root fs is defined with LABEL or UUID in fstab, avoid
a duplicate entry in mtab when calling mount without existing
mtab.
A mount -f / creates two entries, one for LABEL and another
for the devicename, because canonicalize does not expand the
LABEL or UUID tags.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agosetarch: cleanup licensing note
Karel Zak [Tue, 21 Aug 2007 08:52:02 +0000 (10:52 +0200)]
setarch: cleanup licensing note

Signed-off-by: Jindrich Novy <jnovy@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update AUTHORS file
Karel Zak [Tue, 21 Aug 2007 08:32:41 +0000 (10:32 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update vi.po (from translationproject.org)
Phan Vinh Thinh [Tue, 21 Aug 2007 08:27:27 +0000 (10:27 +0200)]
po: update vi.po (from translationproject.org)

Signed-off-by: Phan Vinh Thinh <teppi82@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Tue, 21 Aug 2007 08:25:25 +0000 (10:25 +0200)]
po: update nl.po (from translationproject.org)

Signed-off-by: Benno Schulenberg <benno@vertaalt.nl>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosetarch: add __alpha__ support
Balint Cristian [Tue, 21 Aug 2007 08:00:58 +0000 (10:00 +0200)]
setarch: add __alpha__ support

Signed-off-by: Balint Cristian <cbalint@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosetarch: add sparc32bash alias to keep compatibility with sparc32
Dennis Gilmore [Tue, 21 Aug 2007 07:55:28 +0000 (09:55 +0200)]
setarch: add sparc32bash alias to keep compatibility with sparc32

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: add DEPRECATED to EXTRA_DIST
Karel Zak [Mon, 20 Aug 2007 12:37:52 +0000 (14:37 +0200)]
docs: add DEPRECATED to EXTRA_DIST

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: fix BSD licence name in README.licensing
Karel Zak [Fri, 17 Aug 2007 11:02:03 +0000 (13:02 +0200)]
docs: fix BSD licence name in README.licensing

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: fix authorship of 8-bit cleanup agetty patch
Karel Zak [Fri, 17 Aug 2007 10:44:57 +0000 (12:44 +0200)]
docs: fix authorship of 8-bit cleanup agetty patch

The patch:

commit 6a4c63d9d90b24d770f887f8cd89fd20f8378267
Author: Moritz Muehlenhoff <jmm@inutil.org>
Date:   Thu Jul 19 00:29:13 2007 +0200

agetty: 8 bit characters on the Linux console lead to input
corruption

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
has been posted and committed with wrong "Author" field.

Sorry to Samuel Thibault who is original author of the patch.

Signed-off-by: Karel Zak <kzak@redhat.com>
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 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 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 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 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 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 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 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>
17 years agotests: use relative paths when sourcing files
Mike Frysinger [Tue, 17 Jul 2007 20:47:43 +0000 (16:47 -0400)]
tests: use relative paths when sourcing files

The "." command will search $PATH before $PWD if the argument
specified contains no path qualifiers which can cause problems if
you happen to have something in $PATH named the same.  The
attached patch changes all of the ".  <foo>" in the tests subdir.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
17 years agocytune: remove linux/tty.h inclusion
Karel Zak [Wed, 18 Jul 2007 22:38:00 +0000 (00:38 +0200)]
cytune: remove linux/tty.h inclusion

The <linux/tty.h> file is empty. It's __KERNEL__ only.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: remove asm/page.h test
Karel Zak [Wed, 18 Jul 2007 21:33:55 +0000 (23:33 +0200)]
build-sys: remove asm/page.h test

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: add warning when libuuid is not found
Karel Zak [Wed, 18 Jul 2007 08:46:42 +0000 (10:46 +0200)]
build-sys: add warning when libuuid is not found

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: release++
Karel Zak [Tue, 17 Jul 2007 11:22:11 +0000 (13:22 +0200)]
build-sys: release++

Increment release number to v2.13-rc2.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update po files
Karel Zak [Tue, 17 Jul 2007 11:17:16 +0000 (13:17 +0200)]
po: update po files

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update release notes
Karel Zak [Tue, 17 Jul 2007 11:11:19 +0000 (13:11 +0200)]
docs: update release notes

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agologin-utils: remove deprecated sigsetmask() from wall
Karel Zak [Tue, 17 Jul 2007 09:44:34 +0000 (11:44 +0200)]
login-utils: remove deprecated sigsetmask() from wall

The sigsetmask() is deprecated in favor of sigprocmask().

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: check returns in fdisk from partition changes
Mike Frysinger [Sat, 14 Jul 2007 17:32:37 +0000 (13:32 -0400)]
fdisk: check returns in fdisk from partition changes

currently the code in fdisk which changes partition types is a bit fragile ...
it assumes the partition type succeeded instead of checking the user input or
for errors.  ive tweaked the sub functions to return a value indicative of the
functions' success and fdisk now checks/reports based on that.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
17 years agoschedutils: fix chrt docs and pid=0 usage
Matthias Koenig [Mon, 16 Jul 2007 11:10:59 +0000 (13:10 +0200)]
schedutils: fix chrt docs and pid=0 usage

Fix some documentation bugs for chrt.
Make it work with PID 0, which means current process.

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agomount: add acl option documentation for ext3 and reiserfs
Matthias Koenig [Mon, 16 Jul 2007 10:09:37 +0000 (12:09 +0200)]
mount: add acl option documentation for ext3 and reiserfs

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
17 years agologin-utils: remove unwanted newlines from wall
Karel Zak [Mon, 16 Jul 2007 12:41:28 +0000 (14:41 +0200)]
login-utils: remove unwanted newlines from wall

Prevent wall from adding an empty newline to every new line.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update AUTHORS file
Karel Zak [Mon, 16 Jul 2007 11:56:08 +0000 (13:56 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomisc-util: new rtcwake command
Bernhard Walle [Fri, 13 Jul 2007 16:18:13 +0000 (18:18 +0200)]
misc-util: new rtcwake command

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoionice: prefer SYS_ioprio_{set,get} from glibc to hardcoded version
Karel Zak [Mon, 16 Jul 2007 09:56:23 +0000 (11:56 +0200)]
ionice: prefer SYS_ioprio_{set,get} from glibc to hardcoded version

It's better to use glibc SYS_ioprio_{set,get} definitions rather than an
incomplete (not all archs) and hardcoded version from ionice.c.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: remove "make mrproper", git-clean is good enough
Karel Zak [Thu, 12 Jul 2007 12:31:26 +0000 (14:31 +0200)]
build-sys: remove "make mrproper", git-clean is good enough

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosys-utils: add arch(1) back to the official tree
Karel Zak [Wed, 11 Jul 2007 10:37:40 +0000 (12:37 +0200)]
sys-utils: add arch(1) back to the official tree

This patch add arch(1) back to util-linux source code tree, but the
command is not installed by defautl.

For more details see "./configure --help".

The arch command is deprecated in favor of "uname -m" (coreutils). The
latest (6.9+) version of coreutils also supports arch(1) as an alias
to "uname -a". Please, if you need arch(1) use the coreutils
implementation.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agowhereis: add lib64 paths
Karel Zak [Wed, 11 Jul 2007 09:15:45 +0000 (11:15 +0200)]
whereis: add lib64 paths

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: remove libtool
Karel Zak [Tue, 10 Jul 2007 22:59:49 +0000 (00:59 +0200)]
build-sys: remove libtool

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agotests: remove dependence on helpers/libpreload-time.so
Karel Zak [Tue, 10 Jul 2007 21:51:12 +0000 (23:51 +0200)]
tests: remove dependence on helpers/libpreload-time.so

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agocal: add test code
Karel Zak [Tue, 10 Jul 2007 21:20:42 +0000 (23:20 +0200)]
cal: add test code

This patch allows to override the time() and define a different time by
TEST_TIME env. variable.  The code has to be compiled with -DTEST_CAL.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoalso search for __stext in readprofile
Mike Frysinger [Thu, 5 Jul 2007 16:15:50 +0000 (12:15 -0400)]
also search for __stext in readprofile

Some architectures have a single underscore prefix in their ABI, so there will
be no "_stext" symbol, just "__stext".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
17 years agolomount.c: don't use mlockall if CRYPT_NONE
Masatake YAMATO [Tue, 8 May 2007 11:52:18 +0000 (11:52 +0000)]
lomount.c: don't use mlockall if CRYPT_NONE

loop back mounting emits two system calls: mount and mlockall.
mount is obviously needed. mlockall is needed for encryption.
As the result both CAP_SYS_ADMIN and CAP_IPC_LOCK are needed
to do loopback mounting.

The problem is that CAP_IPC_LOCK is always needed through my
command doesn't need encryption.

With the following patch, mount calls mlockall only when
encryption is needed.

Signed-off-by: Masatake YAMATO <jet@gyve.org>
17 years agofdisk: when generating a DOS disk label, give it an ID
H. Peter Anvin [Sat, 7 Jul 2007 01:32:31 +0000 (18:32 -0700)]
fdisk: when generating a DOS disk label, give it an ID

Newer Micro$oft operating systems (NT 3 and later) put a 4-byte
signature in the MBR at offset 440 decimal.  Generate a random such
signature when creating a new disk label, and allow it to be changed.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: do not complain about regular files
H. Peter Anvin [Sat, 7 Jul 2007 01:31:12 +0000 (18:31 -0700)]
fdisk: do not complain about regular files

fdisk complains that it doesn't understand regular files.  This can
be trivially fixed.

Also, modes are conventionally given in octal, not hex.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
17 years agodocs: add release notes
Karel Zak [Tue, 3 Jul 2007 21:16:13 +0000 (23:16 +0200)]
docs: add release notes

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: cleanup before release
Karel Zak [Tue, 3 Jul 2007 11:14:36 +0000 (13:14 +0200)]
docs: cleanup before release

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agodocs: update TODO file
Karel Zak [Mon, 2 Jul 2007 23:55:06 +0000 (01:55 +0200)]
docs: update TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agopo: update po files
Karel Zak [Mon, 2 Jul 2007 23:48:28 +0000 (01:48 +0200)]
po: update po files

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosetarch: add NLS support
Karel Zak [Mon, 2 Jul 2007 23:36:03 +0000 (01:36 +0200)]
setarch: add NLS support

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agoman pages: add "AVAILABILITY" section
Karel Zak [Mon, 2 Jul 2007 23:17:04 +0000 (01:17 +0200)]
man pages: add "AVAILABILITY" section

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agomount: use loop= option when mounting by /sbin/mount.<type>
Karel Zak [Mon, 2 Jul 2007 21:35:08 +0000 (23:35 +0200)]
mount: use loop= option when mounting by /sbin/mount.<type>

The mount(8) calls external mount programs (/sbin/mount.<type>)
without the loop=/dev/loopN option. This patch fix this bug.

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agobuild-sys: fix linking when ncurses is built with --with-termlib=tinfo
Arkadiusz Miskiewicz [Tue, 19 Jun 2007 18:58:04 +0000 (20:58 +0200)]
build-sys: fix linking when ncurses is built with --with-termlib=tinfo

When system ncurses is built with --with-termlib=tinfo option
then there are two libraries - libtinfo (which contains terminal
related functions) and libncurses (rest).

Correctly link against libtinfo in such case.

Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
17 years agowall: fix O_NONBLOCK usage
Karel Zak [Mon, 2 Jul 2007 13:58:09 +0000 (15:58 +0200)]
wall: fix O_NONBLOCK usage

From: Alan Curry <pacman@TheWorld.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agocfdisk: fix stupid typo in GPT checker call
Karel Zak [Mon, 2 Jul 2007 13:41:48 +0000 (15:41 +0200)]
cfdisk: fix stupid typo in GPT checker call

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: fix "differ in signedness" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:39:58 +0000 (15:39 +0200)]
sfdisk: fix "differ in signedness" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agosfdisk: fix "may be used uninitialized" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:30:27 +0000 (15:30 +0200)]
sfdisk: fix "may be used uninitialized" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: fix "differ in signedness" compiler warnings
Karel Zak [Mon, 2 Jul 2007 13:06:13 +0000 (15:06 +0200)]
fdisk: fix "differ in signedness" compiler warnings

Signed-off-by: Karel Zak <kzak@redhat.com>
17 years agofdisk: many significant improvements and fixes to Sun label handling
David Miller [Fri, 29 Jun 2007 22:50:21 +0000 (15:50 -0700)]
fdisk: many significant improvements and fixes to Sun label handling

1) Properly describe the exact layout and fields of the sun disk
   label.  Several fields were incorrectly mentioned and others
   wrongly sized.

2) Properly set the version, sane, and num_partitions fields.

   Because we weren't doing this, programs such as Solaris's format
   and the Solaris kernel itself refused to recognize our disk labels
   as valid.

3) Move SSWAP*() macros into fdisksunlabel.c as there is no reason
   for them to be exposed to the rest of fdisk.

4) Kill the sun_predefined_drives array hack and assosciated code.

   Instead size the disk and figure out the geometry properly just
   like the SGI and MSDOS partition handling do, by means of the
   HD_GETGEO ioctl() and disksize().

5) If the disk label read is found to not have the proper values
   set in version, sane, or num_partitions, fix them, recompute the
   label checksum, dirty the disk label, and let the user know what
   we did and that the fixed values will be written out if they 'w'.

   This gives users an easy way to fix up disk labels created by
   disk labelling programs which had this bug.

6) Create a sun_sys_getid() function so that fdisk.c does not need
   to reference the sun disk label details directly, just like the
   SGI code does.

Signed-off-by: David S. Miller <davem@davemloft.net>
17 years agoionice: fix ionice build on sparc
David Miller [Fri, 29 Jun 2007 22:51:17 +0000 (15:51 -0700)]
ionice: fix ionice build on sparc

Provide the proper syscall numbers for this architecture.

Signed-off-by: David S. Miller <davem@davemloft.net>