Commit Graph

145 Commits

Author SHA1 Message Date
Karel Zak 4a2ecf0a50 build-sys: fix BUILD_PIVOT_ROOT condition
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 21:57:48 +02:00
Karel Zak 11125e7aa9 build-sys: cleanup --disable-{fallocate,pivot_root,unshare}
* add --disable-fallocate
 * add --disable-pivot_root
 * cleanup --disable-unshare

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 12:45:50 +02:00
Mikhail Gusarov 4205f1fda1 unshare: new command
New utility allows to run process with separate mount, UTC, IPC or
network namespaces.

[kzak@redhat.com: - some cosmetic changes in usage() and err() usage
                  - move "if BUILD_UNSHARE" to separate place in Makefile.am
                  - add unshare to .gitignore]

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-10-06 12:45:42 +02:00
Karel Zak 4c24a7aed6 build-sys: add --disable-makeinstall-setuid
.. to disable "chmod 4755" for mount and umount.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-30 16:51:20 +02:00
Karel Zak 566f35bc81 mkswap: use libblkid to detect PT
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-29 13:30:36 +02:00
Karel Zak d46a54994e fallocate: new command
The fallocate(1) utility is used to preallocate blocks to a file.

This can be useful for virtual images, database files, testing, etc.
Normally we'd hope that various tools will start using preallocation
internally, but until then such a utility may be useful, and could be
scripted as well.

The original Eric's version is available at:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2490

This version:
 - checks for fallocate glibc function and kernel syscall
 - does not provide a fallback and does not call posix_fallocate()
 - adds long options
 - uses err.h for errro messages
 - adds NLS support
 - cleanups man page

Co-Author: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-22 15:26:18 +02:00
Karel Zak 1e018c1571 libblkid: gtkdocize (API docs generated by gtk-docs)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 21:39:37 +02:00
Karel Zak e4799a35bd libblkid: add partitions parsing support
This patch is large, but not invasive. There is a new code only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 15:42:38 +02:00
Karel Zak e21677fe7d libblkid: add samples/topology.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 15:07:07 +02:00
Karel Zak cc33d69328 libblkid: add topology support
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-16 14:40:41 +02:00
Karel Zak 219227c263 libblkid: move FS/raid stuff to superblocks directory
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-09-15 20:18:48 +02:00
Daniel Mierswa 437fa54f05 replace usleep() for systems that don't have them
This function is marked obsolete in POSIX.1-2001 and removed in
POSIX.1-2008.

Conditionally replaced with nanosleep().

Signed-off-by: Daniel Mierswa <impulze@impulze.org>
2009-08-21 09:58:17 +02:00
Karel Zak 8fb94e0d97 Revert "mount: clean up mount.8"
This reverts commit 98c7944b52.

Unfortunately, the patch has been committed by "git commit -a" and
includes unwanted changes in configure.ac and sys-utils/Makefile.am...

Sorry.
2009-08-18 10:53:15 +02:00
Karel Zak 98c7944b52 mount: clean up mount.8
* use "filesystem" everywhere (currently, the mount.8 man page is inconsistent
   and uses "file system" and "filesystem")

 * fix "The extN" to "The extN filesystem" (reported by Theodore Tso)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-08-17 17:44:59 +02:00
Karel Zak 29e107aac4 build-sys: release++ (v2.16)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-07-16 01:16:28 +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 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 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 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 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 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 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 940fd28c95 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>
2009-06-22 21:30:47 +02:00
Karel Zak bd6713471f build-sys: add --disable-switch_root
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-06-22 21:30:46 +02:00
Karel Zak 2ec884ac35 build-sys: add --disable-uuidd
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:17 +02:00
Karel Zak 69045d3dba uuidd: new command (UUID daemon from e2fsprogs)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 3ac22f7a17 build-sys: add --disable-tls
* add AX_TLS autoconf macro

 * add --disabletls option

 * cleanup gen_uuid.c code to remove gcc warnings when compiled
   without TLS macro.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 6c2a09b3e6 build-sys: enable fsck by default
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak f910b5594f build-sys: add --disable-libblkid, remove volume_id support
Supported scenarios:

  * internal libblkid (--enable-libblkid, default)

  * external libblkid (--disable-libblkid)
     - systems without pkg-config
     - systems with pkg-config

  * systems without libblkid at all
    (requires --disable-mount and --disable-fsck)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:16 +02:00
Karel Zak 17afb0320c build-sys: cleanup libuuid stuff
Supported scenarios:

 * internal libuuid (--enable-libuuid, default)

 * external libuuid (--disable-libuuid)
   - systems without pkg-config
   - systems with pkg-config

 * systems without libuuid at all (the library is optional for u-l-ng)

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:15 +02:00
Karel Zak 6fed18f290 build-sys: add UTIL_{SET,RESTORE}_FLAGS
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:15 +02:00
Karel Zak f6076f557e libuuid: add --disable-libuuid and LIBUUID_VERSION
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:14 +02:00
Karel Zak 754fed0c14 libuuid: import UUID library from e2fsprogs
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-22 10:06:14 +02:00
Karel Zak 28d39b6dd7 mount: fix undefined reference to `security_get_initial_context'
> Gentoo-hardened stable have: sys-libs/libselinux-1.34.14
> I have:
> mount.c:(.text+0x12ce): undefined reference to `security_get_initial_context'

Reported-by: Максим Бритов <maxim.britov@gmail.com>
Addresses-Gentoo-Bug: #270168
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-21 13:20:10 +02:00
Tom Prince a88057d9a3 cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.
Signed-off-by: Tom Prince <cougar@hermes>
2009-05-19 14:25:43 +02:00
Karel Zak 20ad496324 build-sys: complete /libs to /shlibs rename
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-14 17:40:52 +02:00
Karel Zak 7c950efa34 build-sys: fix blkid.h include for old e2fsprogs
When building util-linux-ng-2.15, I get this:
   ../lib/fsprobe.c:10:19: error: blkid.h: No such file or directory

Unfortunately, the blkid.pc uses -I${includedir}/blkidi since
e2fsprogs v1.41.2. The old versions use -I${includedir} only.

Reported-by: Robert Schwebel <r.schwebel@pengutronix.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-11 15:06:06 +02:00
Karel Zak 676c8bfa78 build-sys: release++ (v2.15)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-05-05 22:21:15 +02:00
Karel Zak cee95a9567 blkid: rename blkid_evaluate_spec to blkid_evaluate_tag
"SPEC" is usually used in mount(8) as a generic term for device name or
tag (LABEL, UUID). The function blkid_evaluate_* works with TAGs only.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-29 15:11:54 +02:00
Karel Zak 33b0be6d60 blkid: split SONAME and LIBBLKID_VERSION
It seems better to split SONAME and the public library version. The
library version will be the same as util-linux-ng PACKAGE_VERSION.

PACKAGE_VERSION:               <maj>.<min>[-<suffix>]  e.g. 2.15-rc2
Symbols versioning:            BLKID_<maj>.<min>       e.g. BLKID_2.15
blkid_get_library_version():   <maj>.<min>.0           e.g. 2.15.0
SONAME:                        libblkid.so.1

See also the original patch a0487b1cb5
where was introduced library versioning.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-28 23:29:06 +02:00
Karel Zak 1c3af05393 build-sys: release++ (v2.15-rc2)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-04-17 13:06:54 +02:00
Karel Zak 0152a9eae3 build-sys: release++ (v2.15-rc1)
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-18 15:49:48 +01:00
Karel Zak b0a0d7d58f build-sys: add $usrlibexecdir and fix paths for [/usr]/lib64
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-17 15:54:30 +01:00
Karel Zak 43ddda95b3 build-sys: cleanup --with-fsprobe help string
Thanks to Theodore Tso.

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09 12:49:51 +01:00
Karel Zak 642f01a3f2 blkid: blkid.static make target
For compatibility with e2fsprogs tree:

	commit eb630fd8708ae433e55e384079c08e0f0f040d22
	Author: Eric Sandeen <sandeen@redhat.com>
	Date:   Tue Feb 24 23:15:33 2009 -0600

	e2fsprogs: blkid.static make target

	Nice for testing w/o needing to swizzle around system
	libraries...

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-03-09 12:10:59 +01:00
Karel Zak 607c2a7295 fsck: move fsck from e2fsprogs to util-linux-ng
Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-18 15:09:34 +01:00
Karel Zak d06d028a5a build-sys: use pkg-config for blkid and volume_id
It seems that blkid.pc from e2fsprogs has been fixed:

   $ pkg-config --libs blkid
   -lblkid

and the pkg-config does not return any other extra libraries (such
-luuid or -ldevmapper).

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-17 21:28:09 +01:00
Karel Zak 17f29d7bac mount: generic blkid/volume_id wrapper, use blkid_evaluate_*
* moves the generic libblkid/libvolume_id wrapper (fsprobe.c) from
   mount/ to lib/. We'll use the wrapper in cfdisk and fsck.

   The wrapper supports:

    - obsolete volume_id (udev)
    - obsolete libblkid (e2fsprogs)
    - libblkid (util-linux-ng)

 * mount, umount and swapon when linked against the new libblkid use

    - low-level probing code to read LABEL, UUID or FSTYPE from a device
    - high-level blkid_evaluate_spec() to convert LABEL/UUID to devname

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-17 01:18:22 +01:00
Karel Zak 154d630313 build-sys: libtoolize mount/Makefile.am
* cleanup mount/Makefile.am
 * add {VOLUMEID,BLKID}_CFLAGS -- necessary for pkg-config
 * add support for linking with in-tree libblkid

Signed-off-by: Karel Zak <kzak@redhat.com>
2009-02-13 13:08:07 +01:00