]> err.no Git - util-linux/log
util-linux
15 years agoMerge branch 'stable/v2.14'
LaMont Jones [Tue, 17 Feb 2009 12:48:10 +0000 (05:48 -0700)]
Merge branch 'stable/v2.14'

Conflicts:

fdisk/fdisk.c
fdisk/partname.c
include/blkdev.h
mount/fstab.c
mount/lomount.c
mount/mount.8
mount/umount.c
schedutils/chrt.c
schedutils/ionice.1
sys-utils/Makefile.am
sys-utils/ipcs.c
sys-utils/rtcwake.c

15 years agochangelog: release
LaMont Jones [Fri, 13 Feb 2009 19:25:59 +0000 (12:25 -0700)]
changelog: release

15 years agohwclockfirst.sh: use correct LSB header info
Kel Modderman [Fri, 13 Feb 2009 19:02:25 +0000 (12:02 -0700)]
hwclockfirst.sh: use correct LSB header info

Addresses-Debian-Bug: 487196
Signed-off-by: LaMont Jones <lamont@debian.org>
15 years agomount: segfault when creating mtab and cannot determine fsname
LaMont Jones [Fri, 13 Feb 2009 18:59:53 +0000 (11:59 -0700)]
mount: segfault when creating mtab and cannot determine fsname

Addresses-Debian-Bug: 488312
Signed-off-by: LaMont Jones <lamont@debian.org>
15 years agoMerge commit 'origin/master'
LaMont Jones [Fri, 13 Feb 2009 18:52:12 +0000 (11:52 -0700)]
Merge commit 'origin/master'

15 years agoMerge commit 'origin/stable/v2.14' into stable/v2.14
LaMont Jones [Fri, 13 Feb 2009 18:46:04 +0000 (11:46 -0700)]
Merge commit 'origin/stable/v2.14' into stable/v2.14

15 years agobuild-sys: release++ (v2.14.2)
Karel Zak [Mon, 9 Feb 2009 11:37:52 +0000 (12:37 +0100)]
build-sys: release++ (v2.14.2)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.14.2 ReleaseNotes
Karel Zak [Mon, 9 Feb 2009 11:36:24 +0000 (12:36 +0100)]
docs: update v2.14.2 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Mon, 9 Feb 2009 11:21:23 +0000 (12:21 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Mon, 9 Feb 2009 11:00:58 +0000 (12:00 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Mon, 9 Feb 2009 10:47:08 +0000 (11:47 +0100)]
po: update vi.po (from translationproject.org)

15 years agopo: update nl.po (from translationproject.org)
Benno Schulenberg [Mon, 9 Feb 2009 10:47:08 +0000 (11:47 +0100)]
po: update nl.po (from translationproject.org)

15 years agopo: update ja.po (from translationproject.org)
Makoto Kato [Mon, 9 Feb 2009 10:47:07 +0000 (11:47 +0100)]
po: update ja.po (from translationproject.org)

15 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Mon, 9 Feb 2009 10:47:07 +0000 (11:47 +0100)]
po: update cs.po (from translationproject.org)

15 years agomount: fix typo in volume_id code
Karel Zak [Sat, 31 Jan 2009 00:50:26 +0000 (01:50 +0100)]
mount: fix typo in volume_id code

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochrt: output buglet when reporting scheduling class
Karel Zak [Tue, 3 Feb 2009 09:22:07 +0000 (10:22 +0100)]
chrt: output buglet when reporting scheduling class

% chrt -i 0 ./a.out &
[1] 60479
% chrt -p 60479
pid 60479's current scheduling policy: SCHED_IDLE
SCHED_RR
pid 60479's current scheduling priority: 0

We have a spurious and incorrect SCHED_RR in there...

Address-Red-Hat-Bugzilla: #483706
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: cleanup _PATH_DEV_* macros
Karel Zak [Fri, 6 Feb 2009 21:23:13 +0000 (22:23 +0100)]
fdisk: cleanup _PATH_DEV_* macros

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoagetty: check for termios.c_line struct member by autoconf
Karel Zak [Thu, 5 Feb 2009 22:37:37 +0000 (23:37 +0100)]
agetty: check for termios.c_line struct member by autoconf

Reported-by: Robert Millan <rmh@aybabtu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomkfs.minix: remove local implementation of {set,clr}bit
Karel Zak [Thu, 5 Feb 2009 15:44:17 +0000 (15:44 +0000)]
mkfs.minix: remove local implementation of {set,clr}bit

We needn't to duplicate stuff from <sys/param.h>.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck.minix: add regression test
Karel Zak [Thu, 5 Feb 2009 15:41:41 +0000 (15:41 +0000)]
fsck.minix: add regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomkfs.minix: add regression test
Karel Zak [Thu, 5 Feb 2009 15:20:17 +0000 (15:20 +0000)]
mkfs.minix: add regression test

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: add suggestion about TZ=UTC to TODO file
Karel Zak [Thu, 5 Feb 2009 14:51:14 +0000 (15:51 +0100)]
docs: add suggestion about TZ=UTC to TODO file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option
Karel Zak [Wed, 4 Feb 2009 22:36:39 +0000 (23:36 +0100)]
fsck.cramfs: segfault with INCLUDE_FS_TESTS and no -x option

The current implementation causes a segmentation fault if
INCLUDE_FS_TESTS is defined, but the -x option is not specified.

The error is caused by the extract_dir variable being null.

Reported-by: Roy Peled <the.roy.peled@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agotests: check also for /dev/loop/X
Karel Zak [Wed, 4 Feb 2009 21:38:34 +0000 (22:38 +0100)]
tests: check also for /dev/loop/X

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomkfs.cramfs: lower memory requirements for layouts with duplicate files
Roy Peled [Fri, 28 Nov 2008 14:57:00 +0000 (16:57 +0200)]
mkfs.cramfs: lower memory requirements for layouts with duplicate files

mkfs.cramfs allocates memory based on a calculated upper-bound
of required filesystem size. If there are duplicate files
or hard links, the current implementation unnecessarily increases
the upper-bound per each copy of the file, even though cramfs does
not store copies of contents of identical files.

This patch improves the calculation of fslen_ub, the upper bound
of required filesystem size, by making the upper bound aware of
duplicate files.

This is very helpful for layouts that hold a lot of hard links,
which are seen as duplicate files by mkfs.cramfs. For example,
this drastically reduces the memory requirements for creating
a standard Busybox layout.

Signed-off-by: Roy Peled <the.roy.peled@gmail.com>
15 years agomkfs.cramfs: add endianness support to cramfs tools
Signed-off-by: Roy Peled [Wed, 4 Feb 2009 13:56:54 +0000 (14:56 +0100)]
mkfs.cramfs: add endianness support to cramfs tools

cramfs is an endianness dependent file system.  So far, the cramfs
utilities did not support cramfs images of different endianness than
the host machine.

A separate utility, cramfsswap, was required in order to change the
endianness of the image before and after using cramfs utilities. The
extra utility introduced extra maintenance and an additional step in
the process.

This patch adds endianness support to mkfs.cramfs and fsck.cramfs.
fsck.cramfs now automatically detects the image endianness, and can
work on images of either endianness.  mkfs.cramfs now accepts a new
optional parameter (-N) that allows creating the cramfs image in
either endianness.

Signed-off-by: Roy Peled <the.roy.peled@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: non-setuid (POSIX file capabilities) support
Karel Zak [Fri, 16 Jan 2009 11:21:15 +0000 (12:21 +0100)]
mount: non-setuid (POSIX file capabilities) support

The mount command does not work properly if you replace suid with
POSIX file capabilities. We still need to check for non-root mounts and
the command has to work in very restricted mode for non-root users.

This patch allows you to remove suid bit from mount and umount. Note
that you need a system with filesystem capability support, e.g.
Fedora 10).

# ls -l /bin/mount
-rwxr-xr-x 1 root root 65192 2008-11-09 22:59 /bin/mount

# getcap /bin/mount
/bin/mount = cap_dac_override,cap_sys_admin+ep

[kzak@redhat.com: all the above comments]

Don't bypass security checks when [u]mount uses POSIX file capabilities
rather than setuid root to permit non-root mounts.

Signed-off-by: Geoff Johnstone <geoff.johnstone@googlemail.com>
15 years agofdisk: add 0xaf HFS / HFS partition type
Karel Zak [Wed, 4 Feb 2009 11:39:02 +0000 (12:39 +0100)]
fdisk: add 0xaf HFS / HFS partition type

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochrt: output buglet when reporting scheduling class
Karel Zak [Tue, 3 Feb 2009 09:22:07 +0000 (10:22 +0100)]
chrt: output buglet when reporting scheduling class

% chrt -i 0 ./a.out &
[1] 60479
% chrt -p 60479
pid 60479's current scheduling policy: SCHED_IDLE
SCHED_RR
pid 60479's current scheduling priority: 0

We have a spurious and incorrect SCHED_RR in there...

Address-Red-Hat-Bugzilla: #483706
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: fix typo in manpage
Karel Zak [Mon, 2 Feb 2009 10:21:04 +0000 (11:21 +0100)]
ionice: fix typo in manpage

Reported-by: Jakob Unterwurzacher <jakobunt@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix typo in volume_id code
Karel Zak [Sat, 31 Jan 2009 00:50:26 +0000 (01:50 +0100)]
mount: fix typo in volume_id code

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochangelog: release
LaMont Jones [Fri, 30 Jan 2009 15:16:09 +0000 (08:16 -0700)]
changelog: release

15 years agoMerge commit 'origin/stable/v2.14' into stable/v2.14
LaMont Jones [Fri, 30 Jan 2009 15:12:07 +0000 (08:12 -0700)]
Merge commit 'origin/stable/v2.14' into stable/v2.14

Conflicts:

mount/mount.8

15 years agortcwake: add mising .RE to the man page
Karel Zak [Thu, 29 Jan 2009 16:47:20 +0000 (17:47 +0100)]
rtcwake: add mising .RE to the man page

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agonamei: add missing options to namei.1
Karel Zak [Tue, 27 Jan 2009 14:00:35 +0000 (15:00 +0100)]
namei: add missing options to namei.1

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agonamei: add --vertical option
Karel Zak [Tue, 27 Jan 2009 13:48:32 +0000 (14:48 +0100)]
namei: add --vertical option

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agortcwake: explain supported modes in rtcwake.8
Karel Zak [Mon, 26 Jan 2009 21:00:22 +0000 (22:00 +0100)]
rtcwake: explain supported modes in rtcwake.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agortcwake: support not suspending
Marco d'Itri [Sun, 25 Jan 2009 16:44:16 +0000 (17:44 +0100)]
rtcwake: support not suspending

People usually want to use pm-utils to suspend the system instead of
the raw kernel interface, so I added an option to just exit after
configuring the wakeup time.
Actually I think that all the suspend code should be removed from
rtcwake, since it does not really belong there.

Signed-off-by: Marco d'Itri <md@linux.it>
15 years agonamei: don't duplicate '/' directory
Karel Zak [Mon, 26 Jan 2009 10:36:31 +0000 (11:36 +0100)]
namei: don't duplicate '/' directory

sake@lelux ~ namei -l /
f: /
 drwxr-xr-x root root /
 drwxr-xr-x root root

The duplicate '/' directory is unexpected behavior.

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: a little cleanup of "none" description
Karel Zak [Thu, 22 Jan 2009 11:54:06 +0000 (12:54 +0100)]
ionice: a little cleanup of "none" description

We practically have three io scheduling classes. The "none" is
de facto "best-effort" class for processes that has not asked
for io priority.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.14.2-rc2)
Karel Zak [Thu, 22 Jan 2009 13:25:06 +0000 (14:25 +0100)]
build-sys: release++ (v2.14.2-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.14.2 ReleaseNotes
Karel Zak [Thu, 22 Jan 2009 13:20:46 +0000 (14:20 +0100)]
docs: update v2.14.2 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Thu, 22 Jan 2009 13:17:28 +0000 (14:17 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Thu, 22 Jan 2009 13:15:12 +0000 (14:15 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: a little cleanup of "none" description
Karel Zak [Thu, 22 Jan 2009 11:54:06 +0000 (12:54 +0100)]
ionice: a little cleanup of "none" description

We practically have three io scheduling classes. The "none" is
de facto "best-effort" class for processes that has not asked
for io priority.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: document newinstance and ptmxmode options to devpts
Sukadev Bhattiprolu [Fri, 16 Jan 2009 06:41:42 +0000 (22:41 -0800)]
mount: document newinstance and ptmxmode options to devpts

Support for multiple instances of devpts were included in 2.6.29-rc1.
Update man pages to document the new options. Additional details about
the new options are described in 'Documentation/filesystems/devpts.txt'
of kernel source tree.

Reviewed-by: WANG Cong <wangcong@zeuux.org>
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: cleans up mount(8) troff markup
Sam Varshavchik [Wed, 3 Dec 2008 03:16:32 +0000 (22:16 -0500)]
mount: cleans up mount(8) troff markup

My patches correct troff markup only. No content changes.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: Extend the man page to explain the "none" class and cpu-nice inheritance
Jakob Unterwurzacher [Sat, 27 Dec 2008 21:39:10 +0000 (22:39 +0100)]
ionice: Extend the man page to explain the "none" class and cpu-nice inheritance

Extend the ionice man page to explain the "none" class and how the
cpu-nice => io-priority inheritance works.

Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com>
15 years agomount: finalize support of quoted LABELs/UUIDs
Karel Zak [Tue, 6 Jan 2009 23:00:35 +0000 (00:00 +0100)]
mount: finalize support of quoted LABELs/UUIDs

The [u]mount does not properly support LABEL="foo" or UUID="foo" in
/etc/fstab. This patch fix last places where we assume unquoted
LABELs/UUIDs only.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: suggest to use blockdev --setro rather than losetup
Karel Zak [Tue, 6 Jan 2009 14:20:37 +0000 (15:20 +0100)]
mount: suggest to use blockdev --setro rather than losetup

Thanks to Christoph Hellwig.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about semantics of read-only mount to mount.8
Karel Zak [Tue, 6 Jan 2009 13:39:58 +0000 (14:39 +0100)]
mount: add info about semantics of read-only mount to mount.8

Reported-by: Joachim Wagner <jwagner@computing.dcu.ie>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: cleans up mount(8) troff markup
Sam Varshavchik [Wed, 3 Dec 2008 03:16:32 +0000 (22:16 -0500)]
mount: cleans up mount(8) troff markup

My patches correct troff markup only. No content changes.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoionice: Extend the man page to explain the "none" class and cpu-nice inheritance
Jakob Unterwurzacher [Sat, 27 Dec 2008 21:39:10 +0000 (22:39 +0100)]
ionice: Extend the man page to explain the "none" class and cpu-nice inheritance

Extend the ionice man page to explain the "none" class and how the
cpu-nice => io-priority inheritance works.

Signed-off-by: Jakob Unterwurzacher <jakobunt@gmail.com>
15 years agodmesg: Add -r (raw) option.
Adam Jackson [Thu, 8 Jan 2009 16:44:27 +0000 (11:44 -0500)]
dmesg: Add -r (raw) option.

Useful for debugging which kernel messages are ruining your quiet
bootup.

Signed-off-by: Adam Jackson <ajax@redhat.com>
15 years agoumount: cleanup gefs_by_specdir()
Karel Zak [Tue, 6 Jan 2009 23:18:41 +0000 (00:18 +0100)]
umount: cleanup gefs_by_specdir()

fix:
 - don't call canonicalize_spec() for LABELs/UUIDs
 - simplify the code
 - rename to getfs_by_devdir(), because we use it only for
   device names and not for SPECes (see umount.c).

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: finalize support of quoted LABELs/UUIDs
Karel Zak [Tue, 6 Jan 2009 23:00:35 +0000 (00:00 +0100)]
mount: finalize support of quoted LABELs/UUIDs

The [u]mount does not properly support LABEL="foo" or UUID="foo" in
/etc/fstab. This patch fix last places where we assume unquoted
LABELs/UUIDs only.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: suggest to use blockdev --setro rather than losetup
Karel Zak [Tue, 6 Jan 2009 14:20:37 +0000 (15:20 +0100)]
mount: suggest to use blockdev --setro rather than losetup

Thanks to Christoph Hellwig.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about semantics of read-only mount to mount.8
Karel Zak [Tue, 6 Jan 2009 13:39:58 +0000 (14:39 +0100)]
mount: add info about semantics of read-only mount to mount.8

Reported-by: Joachim Wagner <jwagner@computing.dcu.ie>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agonamei: fix buffer overflow
Karel Zak [Tue, 6 Jan 2009 13:26:12 +0000 (14:26 +0100)]
namei: fix buffer overflow

 $ ./namei  /usr/bin/java
 *** glibc detected *** ./namei: free(): invalid next size (fast): 0x00000000018e5070 ***
 [...]
 Aborted

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoraw: default to /dev/raw/rawctl
Karel Zak [Fri, 26 Dec 2008 00:09:34 +0000 (01:09 +0100)]
raw: default to /dev/raw/rawctl

The raw devices are in the raw/ subdirectory. It makes sense to use
the same subdirectory also for the control file. The old /dev/rawctl
is also supported as a fallback.

The #ifdef OLD_RAW_DEVS (/dev/raw<N>) is unsupported from now.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.14.2-rc1)
Karel Zak [Mon, 22 Dec 2008 18:04:32 +0000 (19:04 +0100)]
build-sys: release++ (v2.14.2-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.14.2 ReleaseNotes
Karel Zak [Mon, 22 Dec 2008 17:59:21 +0000 (18:59 +0100)]
docs: update v2.14.2 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Mon, 22 Dec 2008 17:57:49 +0000 (18:57 +0100)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add rootcontext= SELinux mount option
Karel Zak [Mon, 22 Dec 2008 17:46:45 +0000 (18:46 +0100)]
mount: add rootcontext= SELinux mount option

Note, the description in the mount.8 man page is copy & paste from
rootcontext= kernel patch (by James Morris). I didn't found anything
more useful... (patches welcomed:-)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add rootcontext= SELinux mount option
Karel Zak [Mon, 22 Dec 2008 17:46:45 +0000 (18:46 +0100)]
mount: add rootcontext= SELinux mount option

Note, the description in the mount.8 man page is copy & paste from
rootcontext= kernel patch (by James Morris). I didn't found anything
more useful... (patches welcomed:-)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: clean up SPEC canonicalization
Karel Zak [Sat, 13 Dec 2008 01:47:42 +0000 (02:47 +0100)]
mount: clean up SPEC canonicalization

The SPEC (fsname) field in fstab/mtab could be:

 - devname
 - NAME=value (e.g LABEL, UUID)
 - directory (MS_MOVE, MS_BIND, ..)
 - pseudo-fs keyword (tmpfs, proc, sysfs, ...)

the pseudo-fs keywords shouldn't be canonicalized to absolute path. It
means we have to differ between SPEC and mountpoint (fs_dir).

Unfortunately, the keywords was checked on wrong place. This patch
move this check to the new function canonicalize_spec().

The fsname in mtab entry is canonicalized when the FS type is not
pseudo filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Fri, 12 Dec 2008 14:55:25 +0000 (15:55 +0100)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agorefresh gitignore
Karel Zak [Fri, 12 Dec 2008 14:03:18 +0000 (15:03 +0100)]
refresh gitignore

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: clean up SPEC canonicalization
Karel Zak [Sat, 13 Dec 2008 01:47:42 +0000 (02:47 +0100)]
mount: clean up SPEC canonicalization

The SPEC (fsname) field in fstab/mtab could be:

 - devname
 - NAME=value (e.g LABEL, UUID)
 - directory (MS_MOVE, MS_BIND, ..)
 - pseudo-fs keyword (tmpfs, proc, sysfs, ...)

the pseudo-fs keywords shouldn't be canonicalized to absolute path. It
means we have to differ between SPEC and mountpoint (fs_dir).

Unfortunately, the keywords was checked on wrong place. This patch
move this check to the new function canonicalize_spec().

The fsname in mtab entry is canonicalized when the FS type is not
pseudo filesystem.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoMerge commit 'origin/master'
LaMont Jones [Mon, 15 Dec 2008 14:31:01 +0000 (07:31 -0700)]
Merge commit 'origin/master'

Conflicts:

mount/mount.8

15 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Fri, 12 Dec 2008 14:49:33 +0000 (15:49 +0100)]
po: update cs.po (from translationproject.org)

15 years agopo: update sv.po (from translationproject.org)
Daniel Nylander [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)]
po: update sv.po (from translationproject.org)

15 years agopo: update pt_BR.po (from translationproject.org)
Rodrigo Stulzer Lopes [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)]
po: update pt_BR.po (from translationproject.org)

15 years agopo: update fr.po (from translationproject.org)
Nicolas Provost [Fri, 12 Dec 2008 14:49:05 +0000 (15:49 +0100)]
po: update fr.po (from translationproject.org)

15 years agofdisk: remove unnecessary gettext call
Karel Zak [Fri, 12 Dec 2008 14:20:06 +0000 (15:20 +0100)]
fdisk: remove unnecessary gettext call

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agofdisk: remove unnecessary gettext call
Karel Zak [Fri, 12 Dec 2008 14:20:06 +0000 (15:20 +0100)]
fdisk: remove unnecessary gettext call

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopg: add gettext call for the help string
Karel Zak [Fri, 12 Dec 2008 14:13:44 +0000 (15:13 +0100)]
pg: add gettext call for the help string

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agorefresh gitignore
Karel Zak [Fri, 12 Dec 2008 14:03:18 +0000 (15:03 +0100)]
refresh gitignore

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agosimpleinit: cleanup gettext calls, use snprintf()
Karel Zak [Fri, 12 Dec 2008 14:01:15 +0000 (15:01 +0100)]
simpleinit: cleanup gettext calls, use snprintf()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochfn: several strings without gettext calls
Karel Zak [Fri, 12 Dec 2008 13:44:04 +0000 (14:44 +0100)]
chfn: several strings without gettext calls

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoTODO: add request to use nl_langinfo()
Karel Zak [Fri, 12 Dec 2008 13:41:34 +0000 (14:41 +0100)]
TODO: add request to use nl_langinfo()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoRevert "login-utils: several strings without gettext calls"
Karel Zak [Fri, 12 Dec 2008 13:33:29 +0000 (14:33 +0100)]
Revert "login-utils: several strings without gettext calls"

This reverts commit 64fefaf5bffdd4041190f1e5ed4b5d0100638c0d.

It does not make sense to localize config options (wdays in
checktty.c) and debug messages (main() in checktty.c.

15 years agomount: fix mount_static_LDADD
Karel Zak [Fri, 12 Dec 2008 13:04:19 +0000 (14:04 +0100)]
mount: fix mount_static_LDADD

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix mount_static_LDADD
Karel Zak [Fri, 12 Dec 2008 13:04:19 +0000 (14:04 +0100)]
mount: fix mount_static_LDADD

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agouse getpagesize()
maximilian attems [Wed, 30 Jul 2008 09:46:32 +0000 (11:46 +0200)]
use getpagesize()

getpagesize() is said to be more portable than sysconf(_SC_PAGESIZE)
to anything Linux.

this patch helps klibc porting effort as the sysconf
multiplex API is not supported there.

also remove comment of the switch to sysconf in mkswap.c.

Signed-off-by: maximilian attems <max@stro.at>
15 years agosetterm: fix -blank man page
Karel Zak [Fri, 5 Dec 2008 10:41:28 +0000 (11:41 +0100)]
setterm: fix -blank man page

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoreadprofile: several strings without gettext calls
Pedro Ribeiro [Fri, 3 Oct 2008 07:27:33 +0000 (09:27 +0200)]
readprofile: several strings without gettext calls

Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: sundries.h add klibc support
maximilian attems [Wed, 23 Jul 2008 21:17:40 +0000 (23:17 +0200)]
mount: sundries.h add klibc support

In file included from mount.c:34:
sundries.h:16:23: error: rpc/types.h: No such file or directory

nuke rpc/types.h to fix aboves. The file is archaism from old
integrated NFS code.

Cc: Christoph Hellwig <hch@infradead.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: maximilian attems <max@stro.at>
15 years agomount: retry on ENOMEDIUM
Matthias Koenig [Mon, 9 Jun 2008 14:38:25 +0000 (16:38 +0200)]
mount: retry on ENOMEDIUM

Due to a change in kernel behaviour when opening CDROM devices,
we need to retry the open/mount call when ENOMEDIUM is returned.

Explanation from Tejun Heo:
Okay, the difference is from the addition of cdrom_get_media_event()
call to both sr_drive_status() and ide_cdrom_drive_status().
Previously, the cdrom driver can't differentiate between tray closed
w/ no media and tray open and always returned tray open, which
triggers close and retry in the open logic which probably have delayed
things enough to get the media recognized.

Now the cdrom driver can discern between tray closed w/o media and
device not ready for other reasons and returns -ENOMEDIUM on the
former.  This is all good and dandy but the problem seems that some
drives report no media right after the tray is closed but it hasn't
properly detected the media yet.

It seems the only way to work around the problem is via sensible
retries (e.g.  try three times 5 secs apart) and I don't think we can
add that type of retry logic into cdrom open path.  Please note that
the previous logic wasn't water proof.  Some drives can take longer to
recognize the media is there and could have failed the in-kernel retry
too.  Also, reading the media can take quite some time and during that
period the drive reports media present but device not ready.  The
driver will retry the command (e.g. READ TOC for open) five times but
all of them can fail w/ EMEDIUMTYPE.

[kzak@redhat.com: - add CRDOM_NOMEDIUM_RETRIES to blkdev.h
                  - add verbose message to mount.c]

Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: make file_t SELinux warning optional and shorter
Karel Zak [Wed, 23 Jul 2008 23:20:00 +0000 (01:20 +0200)]
mount: make file_t SELinux warning optional and shorter

The patch:

   Commit:  4edebc1486133231e38b3881325c374eda567f74
   Date:    Mon Jun 23 13:00:00 2008 +0200
   Subject: mount: warn on "file_t" selinux context

introduces a new warning. This warning should be shorter and optional
-- it means visible in verbose mode only.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: warn on "file_t" selinux context
Karel Zak [Mon, 23 Jun 2008 11:00:00 +0000 (13:00 +0200)]
mount: warn on "file_t" selinux context

Currently if I mount a file system without labels, it works fine, but
later or SELinux will start printing denials and stopping certain
applications from working. It would be nice if the mount command
checked it in selinux mode.

Addresses-Red-Hat-Bugzilla: #390691
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: use subsections in mount.8 DESCRIPTION
Karel Zak [Thu, 27 Nov 2008 13:16:37 +0000 (14:16 +0100)]
mount: use subsections in mount.8 DESCRIPTION

The DESCRIPTION section is huge non-structuralized mess. This patch is
attempt to make this part of the man page more readable.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: remove spurious newline from mount.8
Mike Frysinger [Fri, 28 Nov 2008 21:57:24 +0000 (16:57 -0500)]
mount: remove spurious newline from mount.8

The man page display shows quote marks instead of being interpreted by the
.B statement and hidden away due to a spurious newline.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
15 years agomount: fix typo
Karel Zak [Thu, 25 Sep 2008 20:25:38 +0000 (22:25 +0200)]
mount: fix typo

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: fix typo
Guan Xin [Mon, 29 Sep 2008 09:43:45 +0000 (11:43 +0200)]
mount: fix typo

Signed-off-by: Guan Xin <guanx.bac@gmail.com>
15 years agomount: create separate section for fs-independent options in mount.8
Karel Zak [Thu, 27 Nov 2008 12:29:44 +0000 (13:29 +0100)]
mount: create separate section for fs-independent options in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: remove link to namesys.com
Karel Zak [Fri, 3 Oct 2008 07:34:25 +0000 (09:34 +0200)]
mount: remove link to namesys.com

Ricardo Catalinas Jiménez  wrote:
  In the man page mount(8) there is the url
  "http://www.namesys.com/mount-options.html". The web site has been
  down for a long time and the Namesys company is trying to be sold.

Reported-By: Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txt
Karel Zak [Mon, 6 Oct 2008 10:56:37 +0000 (12:56 +0200)]
mount: sync tmpfs info in mount.8 with Documentation/filesystems/tmpfs.txt

Addresses-Red-Hat-Bugzilla: #465761
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txt
Karel Zak [Mon, 6 Oct 2008 10:25:59 +0000 (12:25 +0200)]
mount: sync FAT info in mount.8 with Documentation/filesystems/vfat.txt

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: reorder list of options in mount.8
Karel Zak [Thu, 27 Nov 2008 12:03:25 +0000 (13:03 +0100)]
mount: reorder list of options in mount.8

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