]> err.no Git - util-linux/log
util-linux
15 years agochangelog: release
Scott James Remnant [Thu, 16 Jul 2009 14:43:46 +0000 (15:43 +0100)]
changelog: release

15 years agobuild libuuid binary packages
Scott James Remnant [Thu, 16 Jul 2009 14:42:40 +0000 (15:42 +0100)]
build libuuid binary packages

The libuuid library and tools have moved from e2fsprogs to
util-linux-ng, and are now built and used by default.

Take the packaging data from e2fsprogs to create those packages.

15 years agobuild libblkid binary packages
Scott James Remnant [Thu, 16 Jul 2009 12:57:25 +0000 (13:57 +0100)]
build libblkid binary packages

The blkid library and tool have moved from e2fsprogs to util-linux-ng,
and is now built and used by default.

Merge the changes from Ubuntu to create these packages.

15 years agoMerge branch 'stable/v2.15'
Scott James Remnant [Thu, 16 Jul 2009 11:56:10 +0000 (12:56 +0100)]
Merge branch 'stable/v2.15'

Conflicts:
NEWS
configure.ac
po/ca.po
po/cs.po
po/da.po
po/de.po
po/es.po
po/et.po
po/eu.po
po/fi.po
po/fr.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/nl.po
po/pl.po
po/pt_BR.po
po/ru.po
po/sl.po
po/sv.po
po/tr.po
po/uk.po
po/util-linux-ng.pot
po/vi.po
po/zh_CN.po

15 years agoMerge commit 'origin/master'
Scott James Remnant [Thu, 16 Jul 2009 11:49:23 +0000 (12:49 +0100)]
Merge commit 'origin/master'

Conflicts:
AUTHORS
NEWS
config/include-Makefile.am
configure.ac
mount/lomount.c
po/POTFILES.in
po/ca.po
po/cs.po
po/da.po
po/de.po
po/es.po
po/et.po
po/eu.po
po/fi.po
po/fr.po
po/hu.po
po/id.po
po/it.po
po/ja.po
po/nl.po
po/pl.po
po/pt_BR.po
po/ru.po
po/sl.po
po/sv.po
po/tr.po
po/uk.po
po/util-linux-ng.pot
po/vi.po
po/zh_CN.po

15 years agobuild-sys: release++ (v2.16)
Karel Zak [Wed, 15 Jul 2009 21:46:31 +0000 (23:46 +0200)]
build-sys: release++ (v2.16)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.16 ReleaseNotes
Karel Zak [Wed, 15 Jul 2009 21:40:21 +0000 (23:40 +0200)]
docs: update v2.16 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibuuid: generate uuid_generate_{random,time}.3 man page links
Karel Zak [Wed, 15 Jul 2009 23:09:47 +0000 (01:09 +0200)]
libuuid: generate uuid_generate_{random,time}.3 man page links

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Wed, 15 Jul 2009 21:30:16 +0000 (23:30 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Wed, 15 Jul 2009 21:27:01 +0000 (23:27 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update fr.po (from translationproject.org)
Nicolas Provost [Wed, 15 Jul 2009 21:22:59 +0000 (23:22 +0200)]
po: update fr.po (from translationproject.org)

15 years agopo: update fi.po (from translationproject.org)
Lauri Nurmi [Wed, 15 Jul 2009 21:22:59 +0000 (23:22 +0200)]
po: update fi.po (from translationproject.org)

15 years agopo: update cs.po (from translationproject.org)
Petr Pisar [Wed, 15 Jul 2009 21:22:58 +0000 (23:22 +0200)]
po: update cs.po (from translationproject.org)

15 years agomount: when a remount to rw fails, quit and return an error
Valerie Aurora [Tue, 14 Jul 2009 17:21:34 +0000 (13:21 -0400)]
mount: when a remount to rw fails, quit and return an error

A nice feature of mount is that when you attempt to mount a file
system read-write, and that fails because it can only be mounted
read-only, it goes ahead and retries the mount with the "ro" option
and returns success if that succeeds.  However, this code path is also
followed when you are doing a remount for the sole purpose of changing
the mount from read-only to read-write - the change fails, but mount
returns success.  Instead, check if we are attempting to remount and
fail out immediately, instead of retrying with the old "ro" option and
whee, happily "succeeding."

Signed-off-by: Valerie Aurora (Henson) <vaurora@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agochangelog: release
Scott James Remnant [Tue, 14 Jul 2009 17:07:19 +0000 (18:07 +0100)]
changelog: release

15 years agoMerge commit 'origin/stable/v2.15' into stable/v2.15
Scott James Remnant [Tue, 14 Jul 2009 16:59:52 +0000 (17:59 +0100)]
Merge commit 'origin/stable/v2.15' into stable/v2.15

15 years agorules: Install udev rules into /lib/udev/rules.d
Scott James Remnant [Tue, 14 Jul 2009 16:52:52 +0000 (17:52 +0100)]
rules: Install udev rules into /lib/udev/rules.d

Unconditionally install the udev rules, moving them on upgrade
from /etc to /lib if necessary

15 years agohwclock: make start a no-op when udev is running
Scott James Remnant [Tue, 14 Jul 2009 16:39:56 +0000 (17:39 +0100)]
hwclock: make start a no-op when udev is running

Since we set the system clock from a udev rule, we don't need to do it
from an init script and we certainly don't need to do it twice!

15 years agohwclock: only call --systz from the udev rule
Scott James Remnant [Wed, 18 Feb 2009 14:56:02 +0000 (14:56 +0000)]
hwclock: only call --systz from the udev rule

Use the new --systz option in the udev rule for /dev/rtc0, stepping the
clock if the hardware clock wasn't in localtime and updating the kernel
timezone.

Since udev can directly import /etc/default/rcS to get the UTC and
BADYEAR settings, we don't need a wrapper shell script for this saving a
bit of time.

15 years agoswitch_root: add subroot support
Daniel Drake [Tue, 14 Jul 2009 12:41:33 +0000 (14:41 +0200)]
switch_root: add subroot support

The current switch_root can only switch to a new root that is the root
of a mount point.

This patch adds support for "subroots", where the new root is
somewhere below a mount point. It does this by adding in a few extra
steps to chroot into the subroot after the enclosing partition has
been moved and entered.

This will be used by OLPC, who sort-of have 2 copies of Fedora stored
on a single partition under different directory trees, where the
initramfs decides which one to boot into

[kzak@redhat.com:
    - port to the current u-l-ng switch_root code
    - don't use static buffer for "dir" in get_parent_mount()]

CC: Peter Jones <pjones@redhat.com>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: fix libuuid and libblkid version-info
Karel Zak [Mon, 13 Jul 2009 21:44:30 +0000 (23:44 +0200)]
build-sys: fix libuuid and libblkid version-info

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add stdarg.h to blkidP.h
Karel Zak [Mon, 13 Jul 2009 18:31:33 +0000 (20:31 +0200)]
libblkid: add stdarg.h to blkidP.h

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: improve $libdirname definition
Karel Zak [Mon, 13 Jul 2009 09:54:43 +0000 (11:54 +0200)]
build-sys: improve $libdirname definition

Reported-by: Robert Förster <Dessa@gmake.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: fix typo from 30688dde55f637c9b984809c685b61378b82805f
Robert Förster [Sat, 11 Jul 2009 22:44:08 +0000 (00:44 +0200)]
build-sys: fix typo from 30688dde55f637c9b984809c685b61378b82805f

the fixes the usage of exec_prefix so configure will prepend the prefix again.

Signed-off-by: Robert Förster <Dessa@gmake.de>
15 years agolibuuid: fix parallel building
Karel Zak [Sun, 5 Jul 2009 22:03:35 +0000 (00:03 +0200)]
libuuid: fix parallel building

 and remove some obsolete stuff from blkid/uuid Makefiles.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: rename to _execdir
Karel Zak [Fri, 3 Jul 2009 23:18:01 +0000 (01:18 +0200)]
build-sys: rename to _execdir

The variable name "usrlibexecdir" is very confusing (because we have
/usr/libexec). The "exec" prefix is required for user-defined
directories, see

   http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install

This patch renames all usr*execdir variables to usr*_execdir.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: improve symlinks creation in shlibs/
Karel Zak [Fri, 3 Jul 2009 23:10:15 +0000 (01:10 +0200)]
build-sys: improve symlinks creation in shlibs/

It's more safe to create symlinks in the target directory and use
$(LN_S) rather than directly call "ln -sf".

Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: fix exec/data install hooks
Karel Zak [Fri, 3 Jul 2009 22:39:08 +0000 (00:39 +0200)]
build-sys: fix exec/data install hooks

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: reverse shlibs installation
Kay Sievers [Fri, 3 Jul 2009 21:18:36 +0000 (23:18 +0200)]
build-sys: reverse shlibs installation

[kzak@redhat.com:

Unfortunately, libtool does not provide a way how to install real
libraries to /lib and devel libs (symlinks) to /usr/lib. We have
to use install hooks to move these files.

Currently we install to /lib and move devel files to /usr/lib. This
concept is wrong, because the libdir= in .la libtool files must to
match with the place where we install the devel .so libs. It means we
have to install everything to /usr/lib and then move (by install hook)
the real .so libs to /lib.

This change is necessary to fix "make install", otherwise the install
process will not work in clean change root. ]

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.16-rc2)
Karel Zak [Thu, 2 Jul 2009 13:36:22 +0000 (15:36 +0200)]
build-sys: release++ (v2.16-rc2)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.16 ReleaseNotes
Karel Zak [Thu, 2 Jul 2009 13:19:21 +0000 (15:19 +0200)]
docs: update v2.16 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Thu, 2 Jul 2009 13:13:20 +0000 (15:13 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Thu, 2 Jul 2009 13:07:49 +0000 (15:07 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoblkid: move to misc-utils/ directory
Karel Zak [Thu, 2 Jul 2009 12:38:23 +0000 (14:38 +0200)]
blkid: move to misc-utils/ directory

The others utilities are in one of the top-level directories. That's
confusing to have blkid(8) and findfs(8) in shlibs/ tree.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoraw: undeprecate raw
Karel Zak [Thu, 2 Jul 2009 11:39:28 +0000 (13:39 +0200)]
raw: undeprecate raw

from Linux kernel:

commit abd4aa5a97ebc0efb9a7fbc98ef0bcf39266fadf
Author: Dave Jones <davej@redhat.com>
Date:   Sun Jul 15 23:40:49 2007 -0700
undeprecate raw driver

 :-(

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoinclude: fix _PATH_DEV
Karel Zak [Thu, 2 Jul 2009 07:50:26 +0000 (09:50 +0200)]
include: fix _PATH_DEV

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agouuidd: init /var/run/uuidd, add option for on-demand mode to .rc file
Karel Zak [Wed, 1 Jul 2009 19:25:37 +0000 (21:25 +0200)]
uuidd: init /var/run/uuidd, add option for on-demand mode to .rc file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoMerge branch 'tytso' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/util...
Karel Zak [Wed, 1 Jul 2009 18:55:00 +0000 (20:55 +0200)]
Merge branch 'tytso' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/util-linux-ng into test

15 years agolibuuid: Don't run uuidd if it would fail due to permission problems
Theodore Ts'o [Wed, 1 Jul 2009 03:06:44 +0000 (23:06 -0400)]
libuuid: Don't run uuidd if it would fail due to permission problems

Some distributions don't like installing uuidd setuid or setgid.  So
if the setuid or setigid bit is not set with uuidd, and the current
process does not have write access to the UUIDD work directory, don't
try running uuidd, since it won't work properly.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibuuid, uuidd: Avoid infinite loop while reading from the socket fd
Theodore Ts'o [Wed, 1 Jul 2009 02:49:49 +0000 (22:49 -0400)]
libuuid, uuidd: Avoid infinite loop while reading from the socket fd

If for some reason the uuidd daemon or the process calling uuidd
exited unexpectely, the read_all() function would end up looping
forever, either in uuidd or in libuuid.  Fix this terminating the loop
if no data can be read after five tries to read from the file
descriptor.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agouuidd: Avoid closing the server socket when calling create_daemon()
Theodore Ts'o [Wed, 1 Jul 2009 02:47:54 +0000 (22:47 -0400)]
uuidd: Avoid closing the server socket when calling create_daemon()

In the event that file descriptors 0-2 are closed when uuidd is
started, the server socket could be created as a file descriptor that
will get closed when create_daemon() tries detaching the uuidd daemon
from its controlling tty.   Avoid this case by using dup(2).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agolibuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuidd
Theodore Ts'o [Tue, 30 Jun 2009 01:19:28 +0000 (21:19 -0400)]
libuuid: Make sure fd's 0, 1, and 2 are valid before exec'ing uuidd

When closing all of the file descriptors before starting uuidd, make
sure file descriptors 0, 1, and 2 are reserved by opening /dev/null.
This prevents strange bugs caused by assumptions regarding file
descriptors <= 2 as being special.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
15 years agouuidd: fix $PIDFILE in uuidd.rc
Karel Zak [Tue, 30 Jun 2009 13:10:20 +0000 (15:10 +0200)]
uuidd: fix $PIDFILE in uuidd.rc

.. that's very probably a typo.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agouuidd: move uuidd.rc to misc-utils directory
Karel Zak [Tue, 30 Jun 2009 13:04:49 +0000 (15:04 +0200)]
uuidd: move uuidd.rc to misc-utils directory

The file should be on more visible place.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: remove example.files/rc[.local]
Karel Zak [Tue, 30 Jun 2009 13:01:29 +0000 (15:01 +0200)]
docs: remove example.files/rc[.local]

Yeah, example files for Linux 1.0.x :-)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibuuid: fix $libdir in uuid.pc
Karel Zak [Tue, 30 Jun 2009 11:18:26 +0000 (13:18 +0200)]
libuuid: fix $libdir in uuid.pc

The -L<dir> gcc option is for directories to be searched for .so/.a
files. It means the directory with development stuff. We have devel
libs in /usr/lib[64].

The side effect is that pkg-config does not return -L with standard
system directories (so make(1) output is more readable and shorter).

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix $libdir in blkid.pc
Karel Zak [Tue, 30 Jun 2009 11:11:05 +0000 (13:11 +0200)]
libblkid: fix $libdir in blkid.pc

The -L<dir> gcc option is for directories to be searched for .so/.a
files. It means the directory with development stuff. We have devel
libs in /usr/lib[64].

The side effect is that pkg-config does not return -L with standard
system directories (so make(1) output is more readable and shorter).

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuildsys: move $usr{bin,sbin,lib}execdir definition to ./configure
Karel Zak [Tue, 30 Jun 2009 10:41:54 +0000 (12:41 +0200)]
buildsys: move $usr{bin,sbin,lib}execdir definition to ./configure

We need to use $usr{bin,sbin,lib}execdir variables in *.pc.in files
and these files are generated by ./configure script.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: add install-hook for libuuid.[a,so] devel files
Karel Zak [Tue, 30 Jun 2009 09:49:14 +0000 (11:49 +0200)]
libblkid: add install-hook for libuuid.[a,so] devel files

Unfortunately, libtool installs all files to $libdir (/lib), but
we need devel files in $usrlibexecdir (/usr/lib).

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibuuid: add install-hook for libuuid.[a,so] devel files
Karel Zak [Tue, 30 Jun 2009 09:38:03 +0000 (11:38 +0200)]
libuuid: add install-hook for libuuid.[a,so] devel files

Unfortunately, libtool installs all files to $libdir (/lib), but we need
devel files in $usrlibexecdir (/usr/lib).

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: fix #ifdefs readability
Karel Zak [Tue, 30 Jun 2009 09:26:54 +0000 (11:26 +0200)]
libblkid: fix #ifdefs readability

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoRevert "libuuid: move clock state file from /var/lib to /var/run"
Karel Zak [Tue, 30 Jun 2009 08:18:04 +0000 (10:18 +0200)]
Revert "libuuid: move clock state file from /var/lib to /var/run"

This reverts commit ab2e7dd17f556d501d27c6b0ae2c0989d5d9dae4.

The state file clock.txt should be kept in /var/lib, it should remain
valid after a reboot.

15 years agoinclude: clean up _PATH_DEV_* macros
Karel Zak [Mon, 29 Jun 2009 23:13:42 +0000 (01:13 +0200)]
include: clean up _PATH_DEV_* macros

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: fix return codes of functions arounf is_associated()
Karel Zak [Mon, 29 Jun 2009 22:48:15 +0000 (00:48 +0200)]
losetup: fix return codes of functions arounf is_associated()

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: allow loop suid umount
Kay Sievers [Mon, 29 Jun 2009 19:43:01 +0000 (21:43 +0200)]
mount: allow loop suid umount

Addresses-Suse-Bug: #461732
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoraw: Use the RAW_SETBIND ioctl without stat'ing the raw# file
Jeff Mahoney [Mon, 29 Jun 2009 21:05:36 +0000 (23:05 +0200)]
raw: Use the RAW_SETBIND ioctl without stat'ing the raw# file

The in-kernel ioctl code creates a raw# device on-demand. udev will create
the /dev/raw/raw# file when the device is created automatically.

The current raw userspace code wants to stat the file before using it,
which is unnecessary for setting up the raw device.

This patch stats the file only when query() is called as a singleton, and
it's doubtful it's needed even there. I modified as little code as I could,
though.

[kzak@redhat.com: - check properly fscanf() return code
                  - add NLS stuff]

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoldattach: add N_PPS support
Tilman Schmidt [Sun, 10 May 2009 11:54:51 +0000 (13:54 +0200)]
ldattach: add N_PPS support

Add support for a line discipline name "PPS" selecting the
Pulse Per Second line discipline N_PPS (18). The number has been
reserved since kernel release 2.6.28, and the implementation is
finally going to be submitted for kernel release 2.6.31.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
15 years agolibuuid: move clock state file from /var/lib to /var/run
Karel Zak [Mon, 29 Jun 2009 14:01:42 +0000 (16:01 +0200)]
libuuid: move clock state file from /var/lib to /var/run

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agouuidd: move uuidd files from /var/lib/libuuid to /var/run/uuidd
Karel Zak [Mon, 29 Jun 2009 13:59:48 +0000 (15:59 +0200)]
uuidd: move uuidd files from /var/lib/libuuid to /var/run/uuidd

Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.16-rc1)
Karel Zak [Sun, 28 Jun 2009 22:09:02 +0000 (00:09 +0200)]
build-sys: release++ (v2.16-rc1)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.16-ReleaseNotes
Karel Zak [Sun, 28 Jun 2009 22:08:40 +0000 (00:08 +0200)]
docs: update v2.16-ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: add v2.16 ReleaseNotes
Karel Zak [Sun, 28 Jun 2009 20:54:36 +0000 (22:54 +0200)]
docs: add v2.16 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: fix --disable-uuidd
Karel Zak [Sun, 28 Jun 2009 20:52:29 +0000 (22:52 +0200)]
build-sys: fix --disable-uuidd

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update AUTHORS file
Karel Zak [Sun, 28 Jun 2009 20:28:44 +0000 (22:28 +0200)]
docs: update AUTHORS file

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Sun, 28 Jun 2009 20:25:47 +0000 (22:25 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: update vi.po (from translationproject.org)
Clytie Siddall [Sun, 28 Jun 2009 20:08:55 +0000 (22:08 +0200)]
po: update vi.po (from translationproject.org)

15 years agobuild-sys: fix libuuid Makefile.am
Karel Zak [Sun, 28 Jun 2009 20:00:31 +0000 (22:00 +0200)]
build-sys: fix libuuid Makefile.am

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: a little clean up info about loopdevs in man page
Karel Zak [Fri, 26 Jun 2009 09:21:02 +0000 (11:21 +0200)]
mount: a little clean up info about loopdevs in man page

Addresses-Debian-Bug: #478600
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: suggest to use modprobe rather than insmod in losetup.8
Karel Zak [Fri, 26 Jun 2009 09:03:21 +0000 (11:03 +0200)]
losetup: suggest to use modprobe rather than insmod in losetup.8

Addresses-Debian-Bug: #334796
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add info about obsolete vfat options to mount.8
Karel Zak [Fri, 26 Jun 2009 08:33:48 +0000 (10:33 +0200)]
mount: add info about obsolete vfat options to mount.8

Addresses-Debian-Bug: #329856
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoumount: clean up help output
Karel Zak [Fri, 26 Jun 2009 07:49:40 +0000 (09:49 +0200)]
umount: clean up help output

Addresses-Debian-Bug: #320500
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: remove obsolete information from fstab example
Karel Zak [Fri, 26 Jun 2009 07:42:11 +0000 (09:42 +0200)]
docs: remove obsolete information from fstab example

Addresses-Debian-Bug: #507700
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: fix typo in French translation
Olivier Blin [Fri, 26 Jun 2009 07:28:11 +0000 (09:28 +0200)]
po: fix typo in French translation

Addresses-Mandriva-Bug: #42783
Signed-off-by: Olivier Blin <blino@mandriva.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: refresh TODO list
Karel Zak [Fri, 26 Jun 2009 07:23:23 +0000 (09:23 +0200)]
docs: refresh TODO list

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: do recursiveRemove after our root is moved to avoid races.
Peter Jones [Fri, 19 Jun 2009 19:44:32 +0000 (15:44 -0400)]
switch_root: do recursiveRemove after our root is moved to avoid races.

This way there's no race between unlinking the /newroot directory and
the MS_MOVE/chroot() to get away from it.

Signed-off-by: Peter Jones <pjones@redhat.com>
15 years agoswitch_root: fork before cleaning up the filesystem.
Peter Jones [Fri, 19 Jun 2009 19:21:59 +0000 (15:21 -0400)]
switch_root: fork before cleaning up the filesystem.

Fork before cleaning up the old filesystem, so it becomes asyncronous,
which results in a faster boot time.

Signed-off-by: Peter Jones <pjones@redhat.com>
15 years agoswitch_root: use file descriptor instead of path for recursiveRemove()
Peter Jones [Fri, 19 Jun 2009 19:21:58 +0000 (15:21 -0400)]
switch_root: use file descriptor instead of path for recursiveRemove()

This makes recursiveRemove() use fdopendir() instead of taking a path,
so we're always sure about which namespace we're starting from.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: add man page
Karel Zak [Tue, 9 Jun 2009 19:11:53 +0000 (21:11 +0200)]
switch_root: add man page

Acked-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: use snprintf() rather tan str{cpy,cat}()
Karel Zak [Tue, 9 Jun 2009 14:35:07 +0000 (16:35 +0200)]
switch_root: use snprintf() rather tan str{cpy,cat}()

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: clean up argv[] usage, add -h and -V
Karel Zak [Tue, 9 Jun 2009 14:16:46 +0000 (16:16 +0200)]
switch_root: clean up argv[] usage, add -h and -V

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: use err.h, clean up return codes
Karel Zak [Tue, 9 Jun 2009 13:54:00 +0000 (15:54 +0200)]
switch_root: use err.h, clean up return codes

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: check for openat() and linux for switch_root
Karel Zak [Tue, 9 Jun 2009 13:21:39 +0000 (15:21 +0200)]
build-sys: check for openat() and linux for switch_root

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: rewrite to use fstatat() and unlinkat()
Karel Zak [Tue, 9 Jun 2009 11:24:11 +0000 (13:24 +0200)]
switch_root: rewrite to use fstatat() and unlinkat()

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: fix coding style
Karel Zak [Tue, 9 Jun 2009 08:37:45 +0000 (10:37 +0200)]
switch_root: fix coding style

Signed-off-by: Peter Jones <pjones@redhat.com>
Acked-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: add --disable-switch_root
Karel Zak [Tue, 9 Jun 2009 08:15:28 +0000 (10:15 +0200)]
build-sys: add --disable-switch_root

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agoswitch_root: new command
Karel Zak [Tue, 9 Jun 2009 07:58:46 +0000 (09:58 +0200)]
switch_root: new command

Copied from Dracut project:
git://dracut.git.sourceforge.net/gitroot/dracut

switch_root history in dracut.git repository:

$ git shortlog switch_root.c
Harald Hoyer (5):
      replace switch_root shell script with binary
      add \n to switch_root
      use switch_root code from http://pjones.fedorapeople.org/mkstart/usr/lib/mkstart/switchroot.c
      mount move instead of umount and fix the search for fallback inits
      setsid() and set controlling terminal for real /sbin/init

Victor Lowther (2):
      Simplify switch_root.c a bit
      Remove all files on the initramfs before switching root

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolibblkid: don't require udev symlinks verification for non-root users
Karel Zak [Tue, 16 Jun 2009 22:30:51 +0000 (00:30 +0200)]
libblkid: don't require udev symlinks verification for non-root users

There is noway how to verify LABEL/UUID for non-root users, we have to
follow udev symlinks or use cached information from blkid.tab. Use
unverified symlinks is faster.

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agobuild-sys: release++ (v2.15.1)
Karel Zak [Wed, 10 Jun 2009 12:34:52 +0000 (14:34 +0200)]
build-sys: release++ (v2.15.1)

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agodocs: update v2.15.1 ReleaseNotes
Karel Zak [Wed, 10 Jun 2009 12:32:58 +0000 (14:32 +0200)]
docs: update v2.15.1 ReleaseNotes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: merge changes
Karel Zak [Wed, 10 Jun 2009 12:31:08 +0000 (14:31 +0200)]
po: merge changes

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: move MS_{PROPAGATION,BIND,MOVE} detection
Karel Zak [Wed, 10 Jun 2009 07:37:43 +0000 (09:37 +0200)]
mount: move MS_{PROPAGATION,BIND,MOVE} detection

The previous commit does not properly fix the problem with "none"
fstype and MS_{PROPAGATION,BIND,MOVE} flags. The real fstype has to
be replaced with "none" before we try to use /sbin/mount.<type>
helper.

Old version:

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

# ./mount -v -v -v --make-private /mnt/test
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "tmpfs"
mount: node:  "/mnt/test"
mount: types: "tmpfs"
mount: opts:  "rw"
mount: external mount: argv[0] = "/sbin/mount.tmpfs"
mount: external mount: argv[1] = "tmpfs"
mount: external mount: argv[2] = "/mnt/test"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
tmpfs on /mnt/test type tmpfs (rw)

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw
17 16 0:20 / /mnt/test rw,relatime - tmpfs tmpfs rw

Fixed version:

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

# ./mount -v -v -v --make-private /mnt/test
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "tmpfs"
mount: node:  "/mnt/test"
mount: types: "tmpfs"
mount: opts:  "rw"
mount: mount(2) syscall: source: "tmpfs", target: "/mnt/test",
filesystemtype: "none", mountflags: 262144, data: (null)

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: move MS_{PROPAGATION,BIND,MOVE} detection
Karel Zak [Wed, 10 Jun 2009 07:37:43 +0000 (09:37 +0200)]
mount: move MS_{PROPAGATION,BIND,MOVE} detection

The previous commit does not properly fix the problem with "none"
fstype and MS_{PROPAGATION,BIND,MOVE} flags. The real fstype has to
be replaced with "none" before we try to use /sbin/mount.<type>
helper.

Old version:

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

# ./mount -v -v -v --make-private /mnt/test
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "tmpfs"
mount: node:  "/mnt/test"
mount: types: "tmpfs"
mount: opts:  "rw"
mount: external mount: argv[0] = "/sbin/mount.tmpfs"
mount: external mount: argv[1] = "tmpfs"
mount: external mount: argv[2] = "/mnt/test"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw"
tmpfs on /mnt/test type tmpfs (rw)

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw
17 16 0:20 / /mnt/test rw,relatime - tmpfs tmpfs rw

Fixed version:

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

# ./mount -v -v -v --make-private /mnt/test
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "tmpfs"
mount: node:  "/mnt/test"
mount: types: "tmpfs"
mount: opts:  "rw"
mount: mount(2) syscall: source: "tmpfs", target: "/mnt/test",
filesystemtype: "none", mountflags: 262144, data: (null)

# grep test /proc/self/mountinfo
16 18 0:19 / /mnt/test rw,relatime - tmpfs tmpfs rw

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: use "none" fstype for MS_PROPAGATION mounts
Karel Zak [Tue, 9 Jun 2009 22:00:09 +0000 (00:00 +0200)]
mount: use "none" fstype for MS_PROPAGATION mounts

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: use "none" fstype for MS_PROPAGATION mounts
Karel Zak [Tue, 9 Jun 2009 22:00:09 +0000 (00:00 +0200)]
mount: use "none" fstype for MS_PROPAGATION mounts

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agopo: refresh POTFILES.in
Karel Zak [Tue, 9 Jun 2009 07:56:09 +0000 (09:56 +0200)]
po: refresh POTFILES.in

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agometa: cleanup rules targets
LaMont Jones [Thu, 4 Jun 2009 02:42:05 +0000 (20:42 -0600)]
meta: cleanup rules targets

Use trailing / on destinations, to make sure they're directories.

Signed-off-by: LaMont Jones <lamont@debian.org>
15 years agomount: add ext4 to the list of filesystems in mount.8
Karel Zak [Mon, 1 Jun 2009 19:48:26 +0000 (21:48 +0200)]
mount: add ext4 to the list of filesystems in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: add ext4 to mount.8
Karel Zak [Mon, 1 Jun 2009 10:36:23 +0000 (12:36 +0200)]
mount: add ext4 to mount.8

Based on Documentation/filesystems/ext4.txt

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agomount: cleanup notes about -l option in mount.8
Karel Zak [Mon, 1 Jun 2009 09:32:44 +0000 (11:32 +0200)]
mount: cleanup notes about -l option in mount.8

Signed-off-by: Karel Zak <kzak@redhat.com>
15 years agolosetup: add --set-capacity
Karel Zak [Fri, 29 May 2009 19:46:00 +0000 (21:46 +0200)]
losetup: add --set-capacity

The LOOP_SET_CAPACITY allows to resize loop device size.

Example:

 # blockdev --getsize64 /dev/loop0
 10485760

 # dd if=/dev/zero of=/home/images/aaa.img count=10 bs=1M oflag=append conv=notrunc

 # blockdev --getsize64 /dev/loop0
 10485760

 # ./losetup --set-capacity /dev/loop0

 # blockdev --getsize64 /dev/loop0
 20971520

CC: J. R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Karel Zak <kzak@redhat.com>