Commit Graph

2579 Commits

Author SHA1 Message Date
Francesco Cosoleto 52b38677e2 fdisk: use xalloc lib
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2011-01-23 23:05:08 +01:00
Francesco Cosoleto 7c1db6b47a fdisk: replace fatal(usage) with a separate usage() function
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-23 23:04:06 +01:00
Jon Grant d5d6781c42 fdisk: add exFAT to MBR partition type 0x7
Signed-off-by: Jon Grant<jg@jguk.org>
2011-01-23 22:55:23 +01:00
Karel Zak 282a58fd66 libmount: _SC_GETPW_R_SIZE_MAX portability issue
Addresses: https://bugs.gentoo.org/show_bug.cgi?id=350340
Reported-by: Alan Hourihane <alanh@fairlite.co.uk>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-23 22:37:22 +01:00
Sami Kerola a94853966e remaining util-linux-ng to util-linux
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-01-23 22:22:30 +01:00
Davidlohr Bueso 01f1882176 wall: document -n option
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-23 22:19:35 +01:00
Fabian Groffen d58c47d9a4 include: emulate dirfd when necessary
dirfd is not available on Solaris 10, it is available on latest
OpenSolaris releases though.  Do some autoconf trickery to determine if
providing an alternative dirfd function is necessary and possible.

shlibs/blkid/src/read.c: Do not define _XOPEN_SOURCE to 600, or DIR will
lose it's dd_fd member again.  Rearrange defines and includes to make
sense per comments, and not conflict on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-23 22:17:14 +01:00
Karel Zak 3e27b34eb0 lib: [xalloc] don't use hardcoded return code
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-23 21:28:19 +01:00
Karel Zak 68164f6c30 libmount: cleanup API, remove typedef
- replace mnt_ with libmnt_ prefix for types (the old prefix was too generic)
 - remove typedef, use struct everywhere
 - use shorter functions names (s/userspace/user/; s/mountflags/mflags/)

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak 8c0797e702 libmount: add functions for mount.<type> helpers
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak 2a1f429ad0 libmount: rename mount.h to libmount.h
The mount.h file name is too generic.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak dbde192307 libmount: split mnt_context_do_mount()
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-22 00:27:26 +01:00
Karel Zak b6d50f6ebf mount: update ext{3,4} options in mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-21 12:12:38 +01:00
Karel Zak bcf006d71f don't declare usage() without parametr
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-21 01:00:18 +01:00
Fabian Groffen 665c289a06 use uint32_t instead of u_int32_t
Solaris doesn't have u_int32_t, use standards uint32_t instead

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:50:00 +01:00
Fabian Groffen 0bf9d41da2 build-sys: check for paths.h
paths.h doesn't exist on Solaris

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:47:52 +01:00
Karel Zak 0c3508bdf5 libblkid: add blkdev.h to blkidP.h
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-20 23:37:16 +01:00
Fabian Groffen 3edaa2019b make _IO macros available on Solaris
The _IO macro is defined in sys/ioccom.h on various platforms.  However,
on Solaris it isn't included by ioctl.h, so include it explicitly if
available.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:31:14 +01:00
Karel Zak 960f668f17 make major and minor available on Solaris
Reported-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-20 23:16:41 +01:00
Fabian Groffen 60cc9f9404 build-sys: link with socketlibs when necessary
To link an object which references socket functions, you need to link
with -lsocket -lnsl on Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 23:03:01 +01:00
Fabian Groffen 5be1c0330b build-sys: check for loff_t, it may not exist
On some systems, loff_t does not exist.  Define it as int64_t in that
case.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-20 22:40:58 +01:00
Karel Zak 68e9d35c5e libmount: add mnt_context_is_* functions
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-19 17:22:28 +01:00
Karel Zak bded43d7ca build-sys: add rpmatch.h to Makefile.am
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-19 09:42:28 +01:00
Karel Zak f633ad4e31 lscpu: fix 64bit CPU detection
Note that the code is still not able to detect 64bit on sparcs and
ppc.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-19 09:34:37 +01:00
Karel Zak 5ddf7f4617 libmount: cleanup internal API
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-18 12:26:17 +01:00
Sami Kerola 89f56db184 mkfs.cramfs: use symbolic exit codes
For some reason original author had defined symbolic exit codes,
but had not use them. One could argue the symbolic exit codes for
mkfs should go to local exit header which would be included to
all commands that exit with non zero or one return code.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-01-17 17:11:20 +01:00
Karel Zak ca42435573 fdisk: add description for partition type 0x27
Reported-by: Jon Grant <jg@jguk.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-17 17:03:25 +01:00
Davidlohr Bueso eb811909cc mkfs: general cleanups
Use xalloc, remove unused headers, use EXIT_* constants.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 16:54:24 +01:00
Petr Uzel 899e7d5a49 uuidd: mention -q in uuidd.8
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-01-17 16:33:58 +01:00
Fabian Groffen 0aeb57aca3 build-sys: improve check for crypt
Check for crypt.h existence, and use it if available over using unistd.h
for which a certain feature level has to be set to export a definition
for crypt.  On Solaris this set causes a standards conflict in the
headers, because at the time of this check C99 mode is already enabled,
which implies certain standards non-compatible with _XOPEN_SOURCE.

 92  #define _XOPEN_SOURCE
 93  #include <unistd.h>

configure:16259: gcc -std=gnu99 -c -g -O2  conftest.c >&5
In file included from /usr/include/unistd.h:18,
                 from conftest.c:93:
/prefix/gentoo/usr/lib/gcc/i386-pc-solaris2.10/4.4.5/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"

configure.ac: improve crypt check
login-utils/my_crypt.h: replace old GNU_LIBRARY check with autoconf
define for crypt.h

[kzak@redhat.com: - remove my_crypt.h]

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-17 16:32:39 +01:00
Fabian Groffen aabe244176 build-sys: use WORDS_BIGENDIAN to determine platform byte-order
Autoconf contains the right magic to determine the endianness on many
platforms next to Linux.  This reverses previous commits to move away
from WORDS_BIGENDIAN:
"use __BYTE_ORDER rather than AC specific WORDS_BIGENDIAN"

This is necessary to compile on non Linux platforms like Darwin and
Solaris.

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
2011-01-17 15:34:45 +01:00
Davidlohr Bueso dfdf2081eb wall: add usage function
Instead of using an ugly goto statement, we can add a proper usage function.
This also adds the undocumented '-n' option to the output string.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:30:44 +01:00
Davidlohr Bueso 812950f483 partx: fix typo in partx.8
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:41 +01:00
Davidlohr Bueso 16493c3e0f disk-utils: fix manpage typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:29 +01:00
Davidlohr Bueso 001a4424d3 column: fix column.1 typo
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:21 +01:00
Davidlohr Bueso c2b9f70a25 findmnt: fix manpage typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:27:01 +01:00
Davidlohr Bueso 5e511de1cd sys-utils: fix manpage typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:26:45 +01:00
Davidlohr Bueso cdc1ae5fb2 schedutils: fix typos
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-01-17 15:26:35 +01:00
Karel Zak 415192c306 umount: call is_loop_autoclear() for all loopdevs
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-17 14:00:53 +01:00
Karel Zak 85950b68e4 include: fix list.h ifdefs
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-14 15:49:07 +01:00
Karel Zak 478d9f0605 docs: update TODO
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-14 14:53:45 +01:00
Karel Zak 56de59c412 docs: update TODO file
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-13 13:34:31 +01:00
Karel Zak 30e43998cf libmount: improve fstab/mtab options usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-13 10:43:33 +01:00
Karel Zak 6b723cb0e4 mount: fix reference to cifs-utils in mount.8
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=651035
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-11 16:25:35 +01:00
Karel Zak 574a9bc9f0 TODO: use rpmatch() for sfdisk
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-11 12:49:47 +01:00
Karel Zak c909751e85 mount: fix gcc warning 2011-01-10 14:41:42 +01:00
Karel Zak 97073441e6 libmount: add mount(8) sample
This code is going to be used as mount(8) replacement in the next
major release (2.20). For now this mount(8) implementation does not
support loopdevs initialization.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 14:35:25 +01:00
Karel Zak c59cf20c1b libmount: properly canonicalize source and target
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 14:29:51 +01:00
Karel Zak 18781f4713 mount: canonicalize paths in HAVE_LIBMOUNT_MOUNT code
Reported-by: silvan minghetti <bu1137@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 13:04:39 +01:00
Karel Zak 627970a7f9 lsblk: use "RM" for removable
Suggested by Przemoc <noreply-comment@blogger.com> at my blog.

Signed-off-by: Karel Zak <kzak@redhat.com>
2011-01-10 11:18:51 +01:00