Commit Graph

1503 Commits

Author SHA1 Message Date
Karel Zak 723fd219f4 libuuid: generate uuid_generate_{random,time}.3 man page links
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-16 01:12:42 +02:00
Karel Zak 033d144299 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-15 23:30:16 +02:00
Karel Zak 0f185bb3fe po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-15 23:27:01 +02:00
Nicolas Provost 2c7f2daf75 po: update fr.po (from translationproject.org) 2009-07-15 23:22:59 +02:00
Lauri Nurmi 98a063a9d3 po: update fi.po (from translationproject.org) 2009-07-15 23:22:59 +02:00
Petr Pisar f8d54f7d29 po: update cs.po (from translationproject.org) 2009-07-15 23:22:58 +02:00
Valerie Aurora 3bb3fe8cb0 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>
2009-07-14 20:32:54 +02:00
Daniel Drake a692a87459 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>
2009-07-14 14:41:33 +02:00
Karel Zak dc2b8d87c1 build-sys: fix libuuid and libblkid version-info
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-13 23:44:30 +02:00
Karel Zak ff67bea3c2 libblkid: add stdarg.h to blkidP.h
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-13 20:31:33 +02:00
Karel Zak cb5212e265 build-sys: improve $libdirname definition
Reported-by: Robert Förster <Dessa@gmake.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-13 11:54:43 +02:00
Robert Förster aaf3e8f5d4 build-sys: fix typo from 30688dde55
the fixes the usage of exec_prefix so configure will prepend the prefix again.

Signed-off-by: Robert Förster <Dessa@gmake.de>
2009-07-13 11:40:56 +02:00
Karel Zak fd0e397bb0 libuuid: fix parallel building
and remove some obsolete stuff from blkid/uuid Makefiles.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-06 00:03:35 +02:00
Karel Zak 30688dde55 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>
2009-07-04 01:23:41 +02:00
Karel Zak 15fe692518 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>
2009-07-04 01:10:15 +02:00
Karel Zak 6ed7a96dfb build-sys: fix exec/data install hooks
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-04 00:55:56 +02:00
Kay Sievers 999f443070 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>
2009-07-04 00:16:10 +02:00
Karel Zak 4a595b077c build-sys: release++ (v2.16-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 15:36:22 +02:00
Karel Zak 0402e6ac5b docs: update v2.16 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 15:19:21 +02:00
Karel Zak 5e1974efd1 docs: update AUTHORS file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 15:13:20 +02:00
Karel Zak dea22a3de9 po: merge changes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 15:07:49 +02:00
Karel Zak 5663298c2c 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>
2009-07-02 14:38:23 +02:00
Karel Zak a08273192d 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>
2009-07-02 13:39:28 +02:00
Karel Zak 14b613f3a9 include: fix _PATH_DEV
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-02 09:50:26 +02:00
Karel Zak e2d96cd60b uuidd: init /var/run/uuidd, add option for on-demand mode to .rc file
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-01 21:25:37 +02:00
Karel Zak d3cbfb8f82 Merge branch 'tytso' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/util-linux-ng into test 2009-07-01 20:55:00 +02:00
Theodore Ts'o 7e54fe51ae 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>
2009-06-30 23:26:09 -04:00
Theodore Ts'o 3b90c50066 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>
2009-06-30 23:26:09 -04:00
Theodore Ts'o fdb3e93ce9 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>
2009-06-30 23:26:09 -04:00
Theodore Ts'o 59ca44715a 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>
2009-06-30 23:26:09 -04:00
Karel Zak 4436271060 uuidd: fix $PIDFILE in uuidd.rc
.. that's very probably a typo.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 15:10:20 +02:00
Karel Zak 9a3e4ae5c9 uuidd: move uuidd.rc to misc-utils directory
The file should be on more visible place.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 15:04:49 +02:00
Karel Zak 113b9c9524 docs: remove example.files/rc[.local]
Yeah, example files for Linux 1.0.x :-)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 15:01:29 +02:00
Karel Zak 3998595cac 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>
2009-06-30 14:28:31 +02:00
Karel Zak 2236900ff0 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>
2009-06-30 14:28:31 +02:00
Karel Zak 996fb3580f 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>
2009-06-30 14:27:50 +02:00
Karel Zak d5428f45a2 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>
2009-06-30 11:49:14 +02:00
Karel Zak d7c9acbfe3 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>
2009-06-30 11:38:03 +02:00
Karel Zak e512717968 libblkid: fix #ifdefs readability
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 11:26:54 +02:00
Karel Zak 6dc9c350bd Revert "libuuid: move clock state file from /var/lib to /var/run"
This reverts commit ab2e7dd17f.

The state file clock.txt should be kept in /var/lib, it should remain
valid after a reboot.
2009-06-30 10:18:04 +02:00
Karel Zak c74c0dafff include: clean up _PATH_DEV_* macros
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 01:13:42 +02:00
Karel Zak 26d5130869 losetup: fix return codes of functions arounf is_associated()
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-30 00:48:15 +02:00
Kay Sievers 78c777c6ba 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>
2009-06-30 00:19:31 +02:00
Jeff Mahoney b41f637c64 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>
2009-06-29 23:07:09 +02:00
Tilman Schmidt d5f36dec92 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>
2009-06-29 22:31:15 +02:00
Karel Zak ab2e7dd17f libuuid: move clock state file from /var/lib to /var/run
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-29 16:01:42 +02:00
Karel Zak a0fca6a752 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>
2009-06-29 15:59:48 +02:00
Karel Zak a8dd2fe133 build-sys: release++ (v2.16-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-29 00:09:02 +02:00
Karel Zak b1623c2809 docs: update v2.16-ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-29 00:08:40 +02:00
Karel Zak 672b36ecb3 docs: add v2.16 ReleaseNotes
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-28 22:54:36 +02:00