summaryrefslogtreecommitdiffstats
path: root/shlibs
Commit message (Collapse)AuthorAgeFilesLines
* move struct option to .rodataKarel Zak2011-03-031-1/+1
| | | | | | | It does not make sense to have writable large arrays of "struct option" on the stack. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix gcc warningsKarel Zak2011-03-012-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix EFI GPT uuid byte orderKarel Zak2011-03-011-11/+23
| | | | | | | | Intel uses little-endians for UUID, the rest of the sane world uses 16 byte big-endian array... Reported-by: Andrew Lutomirski <luto@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: try to detect if PT is newer than LVMKarel Zak2011-02-246-1/+100
| | | | | | | | | | | | | | | | | | | | LVM (pvcreate) wipes the begin of the device. If there is a PT in the wiped area then LVM signature is obsolete. # pvcreate /dev/sdb # fdisk /dev/sdb old version: # blkid -p -o udev /dev/sdb ID_FS_TYPE=LVM2_member new version: # blkid -p -o udev /dev/sdb ID_PART_TABLE_TYPE=dos Reported-by: Matej Cepl <mcepl@redhat.com> Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=679799 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: better "user" evaluationKarel Zak2011-02-233-11/+71
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't export functions for vfs/fs/userspace mount optionsKarel Zak2011-02-229-261/+76Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: fix readlink() usageKarel Zak2011-02-181-1/+0Star
| | | | | Reported-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "libmount: do not check for EAGAIN after flock()"Karel Zak2011-02-181-1/+1
| | | | | | | Linux is not 100% POSIX compatible in this area... strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)" This reverts commit 78d8c28f746bcc8d4e642c39669d8e58dea8d029.
* Revert "libuuid: do not check for EAGAIN after flock()"Karel Zak2011-02-181-1/+1
| | | | | | | Linux is not 100% POSIX compatible in this area... strace: "flock(3, LOCK_EX|LOCK_NB) = -1 EAGAIN (Resource temporarily unavailable)" This reverts commit d6c8d399b93f4646a90d0180fdcc1be35235a9c7.
* build-sys: add uuid_generate_time_safe.3 .gitignoreKarel Zak2011-02-171-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: move __uuid function to UUIDD_PRIVATE in uuid.symKarel Zak2011-02-161-8/+13
| | | | | | | The private functions for uuidd should not be included in the normal versioned part or the library. Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: update manpage, mention uuid_generate_time_safePetr Uzel2011-02-164-4/+29
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: introduce uuid_generate_time_safe()Petr Uzel2011-02-163-7/+39
| | | | | | | | | | | | | | | The problem with libuuid interface is that it is impossible to inform the caller of uuid_generate_time() if the UUID was generated in a safe manner (either via uuidd, or using the global clock state counter). This patch introduces new function, int uuid_generate_time_safe(uuid_t out) which can report whether the generated UUID is safe. Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: __uuid_generate_time(): report if clock_seq is safePetr Uzel2011-02-162-3/+5
| | | | | | Propagate return value from get_clock() through __uuid_generate_time(). Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: rename uuid__generate_* to __uuid_generate_*Petr Uzel2011-02-163-9/+9
| | | | | | | | Having uuid_generate_time and uuid__generate_time at the same time is confusing. These functions are exported, but not part of the official API (used by uuidd only). Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: get_clock(): report if the clock_seq is safePetr Uzel2011-02-161-1/+12
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: do not use invalid file descriptorPetr Uzel2011-02-161-4/+6
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: manpage spelling fixesPetr Uzel2011-02-161-2/+2
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libuuid: fix test in get_clock()Petr Uzel2011-02-161-1/+1
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* textual: improve the wording of some error and usage messagesBenno Schulenberg2011-02-161-1/+1
| | | | | | | | | [kzak@redhat.com: - cleanup lscpu(1) usage text - use <disk> rather than <device> in partx(8) usage text] Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: provide alternatives for err, errx, warn and warnxFabian Groffen2011-02-146-6/+1Star
| | | | | | | | Solaris lacks err, errx, warn and warnx. This also means the err.h header doesn't exist. Removed err.h include from all files, and included err.h from c.h instead if it exists, otherwise alternatives are provided. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libmount: add fallbacks for old systems without umount2() syscallKarel Zak2011-02-111-0/+28
| | | | | Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: replace mkostmps() with more portable mkstemp()Karel Zak2011-02-113-4/+4
| | | | | Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: fix libmount testKarel Zak2011-02-091-5/+4Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: do not check for EAGAIN after flock()Petr Uzel2011-02-091-1/+1
| | | | | | As per flock() manpage, flock() does not set errno=EAGAIN. Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libmount: do not check for EAGAIN after flock()Petr Uzel2011-02-091-1/+1
| | | | | | As per flock() manpage, flock() does not set errno=EAGAIN. Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libmount: more robust flock() usageKarel Zak2011-02-081-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libuuid: fix locking of clock state counter filePetr Uzel2011-02-081-9/+2Star
| | | | | | | | | fcntl(2) does not work for synchronization of threads belonging to the same process. Use flock(2) instead. http://marc.info/?l=util-linux-ng&m=129708412829971&w=2 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libmount: add and copy FS internal flagsKarel Zak2011-02-078-54/+123
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't prepare update if syscall failedKarel Zak2011-02-071-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup helper initialization APIKarel Zak2011-02-027-15/+89
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add low-level API for umountKarel Zak2011-02-024-19/+117
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup high-level mount APIKarel Zak2011-02-026-34/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: copy mount attrs from utab to contextKarel Zak2011-02-021-1/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: check for swap or DM cow on small devicesKarel Zak2011-02-011-5/+4Star
| | | | | | | | The 1MiB limit for swap and COW is useless for Fedora LiveDVD where is 938KiB COW device. Reported-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: conditionalise parts from blkid/topology for LinuxFabian Groffen2011-01-313-7/+14
| | | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: provide missing strnlen from strutilsFabian Groffen2011-01-311-1/+2
| | | | | | Solaris lacks strnlen, provide it from strutils.c. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* provide a workaround if program_invocation_short_name is missingFabian Groffen2011-01-311-0/+1
| | | | | | | | | | | | Try some replacements, such as getexecname() on Solaris and __progname on BSDs and Darwin. When not found, base program_invocation_short_name on the source filename it is used in, as not to require argv[0] to be passed along. This latter approach is not dynamic, but doesn't require code changes for all places where program_invocation_short_name is used now. Signed-off-by: Fabian Groffen <grobian@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: don't compile tests by defaultKarel Zak2011-01-252-5/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix debug messageKarel Zak2011-01-251-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: compile testsKarel Zak2011-01-251-3/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix user= usageKarel Zak2011-01-253-5/+8
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: improve status check, minor cleanupsKarel Zak2011-01-256-20/+44
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rename mount.sym -> libmount.symKarel Zak2011-01-242-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_context_get_{source,target,fstype}Karel Zak2011-01-244-3/+57
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: _SC_GETPW_R_SIZE_MAX portability issueKarel Zak2011-01-231-0/+4
| | | | | | 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>
* include: emulate dirfd when necessaryFabian Groffen2011-01-231-5/+7
| | | | | | | | | | | | 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>
* libmount: cleanup API, remove typedefKarel Zak2011-01-2220-935/+963
| | | | | | | | - 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>
* libmount: add functions for mount.<type> helpersKarel Zak2011-01-225-5/+79
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rename mount.h to libmount.hKarel Zak2011-01-227-9/+10
| | | | | | The mount.h file name is too generic. Signed-off-by: Karel Zak <kzak@redhat.com>