summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* libmount: improve function for work with mtab pathsKarel Zak2011-01-032-112/+122
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix comment for mnt_unlock_file()Karel Zak2011-01-031-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add functions get mtab/utab pathsKarel Zak2011-01-031-37/+46
|
* tests: add libmount mtab update testKarel Zak2011-01-038-0/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allow to overwrite mtab/fstab pathsKarel Zak2011-01-037-62/+140
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add quoted optstrKarel Zak2011-01-032-2/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: improve subtests initializationKarel Zak2011-01-031-9/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add LIBMOUNT_{MTAB,FSTAB}Karel Zak2011-01-032-11/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount lock testKarel Zak2011-01-034-9/+83
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount utils.c testsKarel Zak2011-01-0321-5/+100
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount tags testsKarel Zak2011-01-037-0/+122
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount mtab testsKarel Zak2011-01-034-0/+81
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount tab_parse.c testsKarel Zak2011-01-0312-12/+501
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup fstab parser, improve mnt_tab errcb usageKarel Zak2011-01-034-20/+51
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add libmount optstr.c testsKarel Zak2011-01-0320-0/+111
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix mnt_optstr_apply_flags() to work with optional variablesKarel Zak2011-01-031-5/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: use {src,build}dir variables for testsKarel Zak2011-01-032-35/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: improve assert() and DBG() usageKarel Zak2011-01-035-31/+99
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add umount(2) supportKarel Zak2011-01-036-91/+709
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_context_get_{fstab,mtab}()Karel Zak2011-01-033-40/+91
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_tab_find_pair()Karel Zak2011-01-033-16/+85
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: allows to swap source and targetKarel Zak2011-01-033-164/+149Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup mount.hKarel Zak2011-01-031-38/+33Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: split context.cKarel Zak2011-01-035-834/+909
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup helpers supportKarel Zak2011-01-031-114/+117
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rewrite mountinfo/fstab parsers to use sscanf()Karel Zak2011-01-033-212/+93Star
| | | | | | | | The old solution (without scanf()) was based on old code from mount(8). It seems that the modern libc is able to provide all necessary functionality by sscanf() and %ms directive. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: fix mount helpers callKarel Zak2011-01-031-24/+115
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: update mtab after mount(2)Karel Zak2011-01-031-7/+52
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: always store rw/ro flags to mtabKarel Zak2011-01-031-15/+52
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: update mount.symKarel Zak2011-01-032-4/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: extend mnt_update_* APIKarel Zak2011-01-033-1/+61
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mount(2) and /sbin/mount.<type> supportKarel Zak2011-01-034-41/+281
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mtab managment to context APIKarel Zak2011-01-033-7/+77
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: use attribute __format__ for debug routinesKarel Zak2011-01-034-6/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add FS detectionKarel Zak2011-01-035-29/+151
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: better permissions and optstr evaliationKarel Zak2011-01-031-67/+155
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add DBG() to optstr.cKarel Zak2011-01-031-3/+25
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: minor cleanup in optstr.cKarel Zak2011-01-031-7/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_optstr_fix_userKarel Zak2011-01-033-1/+43
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: clean up mountflags usageKarel Zak2011-01-034-56/+178
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: improve parsers return codesKarel Zak2011-01-034-142/+191
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: rewrite optstr translationKarel Zak2011-01-035-139/+268
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: implement mnt_context_subst_optstr()Karel Zak2011-01-032-25/+66
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add routines for uid=, git= and context= translationKarel Zak2011-01-033-0/+205
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add utils for work with uid/gidKarel Zak2011-01-032-0/+46
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add first part of high-level APIKarel Zak2011-01-032-0/+1128
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: cleanup mount.symKarel Zak2011-01-031-38/+3Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_contextKarel Zak2011-01-031-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add mnt_optstr_get_userspace_mountflags()Karel Zak2011-01-034-26/+86
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add MNT_FS_SWAP flagKarel Zak2011-01-034-11/+24
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>