summaryrefslogtreecommitdiffstats
path: root/libmount
Commit message (Collapse)AuthorAgeFilesLines
* libmount: previously assumed null pointer [smatch scan]Karel Zak2011-09-121-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: variable dereferenced before check [smatch scan]Karel Zak2011-09-121-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: redundant null check on calling free() [smatch scan]Karel Zak2011-09-121-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use unsigned int for bitfields [smatch scan]Karel Zak2011-09-121-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: use .LGPL extension for file with GNU Lesser LicenseKarel Zak2011-08-311-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-08-313-509/+9Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
| * docs: remove duplicated textSami Kerola2011-08-301-0/+8
| | | | | | | | | | | | | | | | | | | | Duplicate text is dealt by referring to license files. The `pg' command does not need separated license file because the source file has same text at top of it. http://www.spinics.net/lists/util-linux-ng/msg05069.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: Documentation directory addedSami Kerola2011-08-122-509/+1Star
| | | | | | | | | | | | | | | | Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | libmount: fix debug messageKarel Zak2011-08-261-2/+3
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | libmount: cut up mount's help text into manageable chunksBenno Schulenberg2011-08-161-17/+24
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | grammar fixesDavidlohr Bueso2011-08-151-2/+2
|/ | | | | | Correct grammar from "cannot found" to "cannot find". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* lib: [loopdev.c] correct trivial typoDavidlohr Bueso2011-08-081-1/+1
| | | | | | Should say "failed to find" instead of "failed to found". Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* libmount: fix undefined sourcesDavidlohr Bueso2011-08-081-2/+0Star
| | | | | | | | | | | | | | | | | | | | | | | | | The path resolving function breaks when handling undefined sources ("none") used by pseudo-filesystems. The assertion is causing the samples/mount program to abort: dave@offbook:~/projects/util-linux-good/libmount/samples$ ./mount /dev/sda3 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) lt-mount: cache.c:464: mnt_resolve_path: Assertion `path' failed. Aborted /etc/mtab: /dev/sda3 / ext4 rw,errors=remount-ro,commit=0 0 0 proc /proc proc rw,noexec,nosuid,nodev 0 0 none /sys sysfs rw,noexec,nosuid,nodev 0 0 fusectl /sys/fs/fuse/connections fusectl rw 0 0 none /sys/kernel/debug debugfs rw 0 0 ... Instead of this assert on NULL we can simply return NULL and let mnt_pretty_path do the work. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* libmount: update list of pseudo-filesystemsKarel Zak2011-08-081-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix compiler warnings [-Wunused-parameter -Wsign-compare]Karel Zak2011-08-025-14/+20
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: remove and ignore generated filesKarel Zak2011-07-282-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: fix gtk-doc distcleanKarel Zak2011-07-271-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: remove 'seclabel' on remount, improve for 2.6.39Karel Zak2011-07-252-9/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: improve apply_fstab debuggingKarel Zak2011-07-251-4/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add MOUNT_2.20 version to the APIKarel Zak2011-07-251-13/+16
| | | | | | The API is officially stable since 2.20. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: remove unnecessary includes, mask API as stableKarel Zak2011-07-2517-112/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: clean up docsKarel Zak2011-07-255-20/+70
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup docsKarel Zak2011-07-2313-153/+206
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix mtab update for "none" sourceKarel Zak2011-07-201-11/+13
| | | | | | | | | | | | | tab_parse.c:mnt_parse_mountinfo_line parses "none" in src as NULL, tab_update.c:fprintf_mtab_fs sets m1 to NULL instead of "none" and returns -ENOMEM tab_update.c:update_table says "write entry failed: Success", as errno hasn't been set, and gotos to leave, leaving mtab not updated. Addresses-debian-bug: 634871 Reported-by: Tomas Janousek <tomi@nomi.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup code for "none" source and fstype, fix mem leakKarel Zak2011-07-202-11/+8Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: minor fixesKarel Zak2011-06-272-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allow to convert /dev/loopN to backing filenameKarel Zak2011-06-234-3/+58
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup return codes in mount sampleKarel Zak2011-06-231-18/+9Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add support for mount -aKarel Zak2011-06-236-42/+287
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix fstype cachingKarel Zak2011-06-231-15/+27
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rename in cache.cKarel Zak2011-06-231-16/+16
| | | | | | * don't use mnt_ prefix for static functions Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: clean up cache.cKarel Zak2011-06-231-50/+51
| | | | | | * rename fields in the cache entry to be more readable... Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add generic function to read table for contextKarel Zak2011-06-223-1/+55
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allow to set parser callback to contextKarel Zak2011-06-215-7/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mountpoint: add new commandKarel Zak2011-06-213-176/+1Star
| | | | | | | | | | This is libmount based re-implementation of the mountpoint(1) command. The original implementation is maintained in sysvinit suite. The mountpoint(1) in util-linux is not enabled by default (for now) -- use --enable-mountpoint to enable the util. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mount support for loopdevsKarel Zak2011-06-107-26/+261
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: minor changes in sample programKarel Zak2011-06-091-6/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libmount rather than shlibs/mountKarel Zak2011-06-0935-0/+14266
Signed-off-by: Karel Zak <kzak@redhat.com>