]> err.no Git - util-linux/log
util-linux
17 years agoumount: only call update_mtab if mtab_is_writable().
LaMont Jones [Sun, 26 Aug 2007 02:27:42 +0000 (20:27 -0600)]
umount: only call update_mtab if mtab_is_writable().

There are several calls to update_mtab() which are not guarded by
mtab_is_writable().  Reported by: Daniel Jacobowitz <dan@debian.org>

See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338803

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agobuild: finish replacing linux32
LaMont Jones [Sat, 25 Aug 2007 06:20:08 +0000 (00:20 -0600)]
build: finish replacing linux32

- put the man pages where it thinks they belong
- util-linux now Conflicts/Provides: linux32

17 years agosetarch: also deliver man page links for all the variants
LaMont Jones [Sat, 25 Aug 2007 06:13:04 +0000 (00:13 -0600)]
setarch: also deliver man page links for all the variants

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agobuild: convert to debhelper, deliver more stuff that was being built.
LaMont Jones [Sat, 25 Aug 2007 05:37:41 +0000 (23:37 -0600)]
build: convert to debhelper, deliver more stuff that was being built.

17 years agochangelog
LaMont Jones [Fri, 24 Aug 2007 07:10:35 +0000 (01:10 -0600)]
changelog

17 years agosetarch: Add SETARCH_LINKS for parisc, too.
LaMont Jones [Fri, 24 Aug 2007 07:09:53 +0000 (01:09 -0600)]
setarch: Add SETARCH_LINKS for parisc, too.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agocontrol: extend package descriptions
Branden Robinson [Fri, 24 Aug 2007 06:41:51 +0000 (00:41 -0600)]
control: extend package descriptions

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agocytune.8: make the oneliner more specific the cyclades hw in question
Justin B Rye [Fri, 24 Aug 2007 06:36:24 +0000 (00:36 -0600)]
cytune.8: make the oneliner more specific the cyclades hw in question

See http://bugs.debian.org/375150

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agocopyright: document git repository location
LaMont Jones [Thu, 23 Aug 2007 14:13:42 +0000 (08:13 -0600)]
copyright: document git repository location

17 years agorelease 2.13~rc3-6
LaMont Jones [Tue, 21 Aug 2007 17:11:21 +0000 (11:11 -0600)]
release 2.13~rc3-6

17 years agoMerge commit 'd76ec69bd75e039ecc7eddaca265fc6a49e2a472'
LaMont Jones [Tue, 21 Aug 2007 16:47:19 +0000 (10:47 -0600)]
Merge commit 'd76ec69bd75e039ecc7eddaca265fc6a49e2a472'

Fixing setarch.

Conflicts:

sys-utils/setarch.c

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agosetarch: add parisc/parisc64 support
LaMont Jones [Tue, 21 Aug 2007 16:19:19 +0000 (10:19 -0600)]
setarch: add parisc/parisc64 support

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agochangelog
LaMont Jones [Tue, 21 Aug 2007 16:25:25 +0000 (10:25 -0600)]
changelog

17 years agobuild: deliver setarch
LaMont Jones [Tue, 21 Aug 2007 16:25:05 +0000 (10:25 -0600)]
build: deliver setarch

17 years agocopyright: migrate copyright changes from README.licensing
LaMont Jones [Tue, 21 Aug 2007 16:21:24 +0000 (10:21 -0600)]
copyright: migrate copyright changes from README.licensing

17 years agosetarch: add parisc/parisc64 support
LaMont Jones [Tue, 21 Aug 2007 16:19:19 +0000 (10:19 -0600)]
setarch: add parisc/parisc64 support

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agoMerge commit 'origin'
LaMont Jones [Tue, 21 Aug 2007 16:04:13 +0000 (10:04 -0600)]
Merge commit 'origin'

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 agometadata: Essential packages need to Pre-Depend on their libs.
LaMont Jones [Mon, 20 Aug 2007 12:05:11 +0000 (06:05 -0600)]
metadata: Essential packages need to Pre-Depend on their libs.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agometadata: had multiple depends: lines
LaMont Jones [Sun, 19 Aug 2007 20:51:09 +0000 (14:51 -0600)]
metadata: had multiple depends: lines

17 years agoslang: switch back to slang2
LaMont Jones [Sun, 19 Aug 2007 19:11:58 +0000 (13:11 -0600)]
slang: switch back to slang2

17 years agochangelog
LaMont Jones [Sun, 19 Aug 2007 18:50:56 +0000 (12:50 -0600)]
changelog

17 years agohwclock.sh: correct message
LaMont Jones [Sun, 19 Aug 2007 18:50:48 +0000 (12:50 -0600)]
hwclock.sh: correct message

17 years agobuild: can't strip perl scripts.
LaMont Jones [Sun, 19 Aug 2007 18:41:39 +0000 (12:41 -0600)]
build: can't strip perl scripts.
build: deliver flock and flock.1.  Closes: #435272

17 years agosfdisk: allow partitioning drives of over 2^31 sectors.
Kunihiko IMAI [Sun, 19 Aug 2007 18:28:37 +0000 (12:28 -0600)]
sfdisk: allow partitioning drives of over 2^31 sectors.

sfdisk would incorrectly complain that there was no room when partitioning
a drive over 2^31 sectors in size.

Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
17 years agochangelog
LaMont Jones [Sun, 19 Aug 2007 18:28:08 +0000 (12:28 -0600)]
changelog

17 years agobuild: Deliver the right scriptreplay. Closes: #438771
LaMont Jones [Sun, 19 Aug 2007 18:25:59 +0000 (12:25 -0600)]
build: Deliver the right scriptreplay.  Closes: #438771

17 years agochangelog
LaMont Jones [Sun, 19 Aug 2007 16:06:23 +0000 (10:06 -0600)]
changelog

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 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 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