summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* libmount: fix some typos and copy&paste mistakes in commentsPetr Uzel2011-03-313-20/+19Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* libmount: fix memory leak in cacheKarel Zak2011-03-301-2/+2
| | | | | Reported-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add phelper= supportKarel Zak2011-03-303-17/+45
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add phelper=Karel Zak2011-03-303-21/+42
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: small lock code cleanupKarel Zak2011-03-303-25/+29
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use chdir() and NOFOLLOW umount flag for umount operationKarel Zak2011-03-304-3/+114
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix testKarel Zak2011-03-302-2/+1Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup umount codeKarel Zak2011-03-301-38/+29Star
| | | | | | | This patch removes obsolete stuff. The minimal requirement for libmount umount code is Linux >= 2.4.11. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: block signals when writing to mtabKarel Zak2011-03-305-26/+73
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODOKarel Zak2011-03-301-5/+19
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODOKarel Zak2011-03-301-0/+10
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: small fix for safe_print()Sergey Gusarov2011-03-291-1/+1
| | | | | | | This small fix makes it possible to print the first unprintable character with code 128 from ASCII table. Signed-off-by: Sergey Gusarov <laborer2008@gmail.com>
* umount: use UMOUNT_NOFOLLOW for non-root usersKarel Zak2011-03-291-11/+87
| | | | | | The UMOUNT_NOFOLLOW umount2() flag is supported since kernel 2.6.34. Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: add -d option to print non-printable charsKarel Zak2011-03-292-9/+22
| | | | | Reported-by: laborer2008 laborer <laborer2008@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* partx: add fallback for openat() to be usable on old systemsKarel Zak2011-03-292-3/+8
| | | | | Reported-by: "Gabor Z. Papp" <gzp@papp.hu> Signed-off-by: Karel Zak <kzak@redhat.com>
* include: [c.h] add definition wrappers for old libc versionsDavidlohr Bueso2011-03-291-1/+11
| | | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix leak in sample programKarel Zak2011-03-281-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: create a default lock for mtab updateKarel Zak2011-03-281-1/+10
| | | | | | | | | Now it's necessary to explicitly create a lock for mnt_update_table(). It seems better to create the lock in mnt_update_table() by default to skip this extra step. Reported-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: do not ignore datarootdirSami Kerola2011-03-221-0/+5
| | | | | | | | | | Fix to the ./configure warning which has been printed since autotools version 2.59c (released at April 2006). WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: update TODOKarel Zak2011-03-221-17/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [fsprobe.c] fix blkid_evaluate_spec() callKarel Zak2011-03-221-1/+1
| | | | | | | lib/fsprobe.c:56:2: warning: passing argument 2 of ‘blkid_evaluate_spec’ from incompatible pointer type shlibs/blkid/src/blkid.h:189:14: note: expected ‘struct blkid_struct_cache **’ but argument is of type ‘blkid_cache’ Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: use ARRAY_SIZEKarel Zak2011-03-181-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* ddate: remove non-ascii chars from ddateKarel Zak2011-03-181-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tailf: support --lines 0Karel Zak2011-03-181-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rename mount option "quiet" to "silent"Karel Zak2011-03-182-3/+3
| | | | | | See commit 2ac1890aa0d8ce404528587134fcabe0e2834963. Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk: check index before access to array [coverity scan]Karel Zak2011-03-171-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add blkid_evaluate_spec()Karel Zak2011-03-174-28/+51
| | | | | | | | | | | | The function blkid_evaluate_tag() is useful for tags only (e.g. LABEL=foo). But we also need to address devices by tags OR paths in many utils. The function blkid_evaluate_spec() support this functionality without extra care about the way how device is addressed. The tags as well as paths are converted to the standardized device path. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [fsprobe.c] remove obsolete <blkid/blkid.h>Karel Zak2011-03-161-4/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't use HAVE_LIBBLKID_INTERNAL macroKarel Zak2011-03-163-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: clean up partx MakefileKarel Zak2011-03-163-17/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't support external (e2fsprogs) libblkidKarel Zak2011-03-166-49/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: include <uuid.h> rather than <uuid/uuid.h>Karel Zak2011-03-163-15/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: don't support external (e2fsprogs) libuuidKarel Zak2011-03-163-33/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [fsprobe.c] use internal libblkid onlyKarel Zak2011-03-161-101/+17Star
| | | | | | | | fsck, mount and swapon will be compilable with libblkid from util-linux package. The old libblkid from e2fsprogs will not be supported. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: use blkid_probe_get_buffer() more carefullyKarel Zak2011-03-163-8/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Revert "umount: call /sbin/umount.<uhelper> for root user too"Karel Zak2011-03-152-16/+21
| | | | This reverts commit c56226697342ddd663492f77768e7a7cb8e579a1.
* umount: call /sbin/umount.<uhelper> for root user tooKarel Zak2011-03-152-21/+16Star
| | | | | | | | | | | | | | | | | Originally the "uhelper=" was ignored for root, now the umount command calls /sbin/umount.<uhelper> always. This change is necessary for things like pam_mount where a device has to be uninitialized by uhelper rather than directly umounted by umount(2). Note that all uhelpers has to be linked with libmount or execute umount -fake -i /mountpoint to remove mountpoint entry from /etc/mtab or /dev/.mount/utab. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup *_do_[u]mount() return codes and docsKarel Zak2011-03-143-11/+38
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: rename "quiet" to "silent" (MS_SILENT)Karel Zak2011-03-113-3/+9
| | | | | | | | | | The quiet mount option was in collision with vfat and hfs mount options. The option was also undocumented -- so it's probably safe to rename the option than add some ugly hacks or exceptions for vfat/hfs to the mount(8) code. Reported-by: https://bugzilla.redhat.com/show_bug.cgi?id=622089 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update GPT testKarel Zak2011-03-111-5/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* blkid: fix double free [coverity scan]Karel Zak2011-03-111-3/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] use mbs_truncate() from mbsalign.cKarel Zak2011-03-114-66/+7Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lib: [tt.c] dereferencing data before a null check [coverity scan]Karel Zak2011-03-111-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tailf: fix open() return value check [coverity scan]Karel Zak2011-03-111-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fsck.minix: use lib/ismounted.cKarel Zak2011-03-112-23/+5Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: keep code more readable for analyzers [coverity scan]Karel Zak2011-03-111-3/+3
| | | | | | | This is not a bug ('ent' is always non-NULL is 'm' is non-NULL), but let's keep static analyzes and humans who read the code happy. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: fix typo in *_to_cpu() usage in raid detection [coverity scan]Karel Zak2011-03-111-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: fix strtoul() usage [coverity scan]Karel Zak2011-03-111-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: add PART_ENTRY_* to docsKarel Zak2011-03-112-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: check mnt_tab_next_fs() return code [coverity scan]Karel Zak2011-03-111-1/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>