summaryrefslogtreecommitdiff
path: root/mount
AgeCommit message (Collapse)AuthorFilesLines
2012-06-26build-sys: convert mount/ to module, rename to mount-deprecated/Karel Zak19-8868/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-06-11build: fix redundant redeclaration warningsSami Kerola1-0/+2
env.c:24:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] su.c:81:15: warning: redundant redeclaration of 'environ' [-Wredundant-decls] fstab.c:581:14: warning: redundant redeclaration of 'strsignal' [-Wredundant-decls] kill.h:1:13: note: previous declaration of 'get_pids' was here kill.c:152:13: warning: redundant redeclaration of 'get_pids' [-Wredundant-decls] kill.c:142:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] getopt.c:89:5: warning: redundant redeclaration of 'main' [-Wredundant-decls] agetty.c:536:15: warning: redundant redeclaration of 'optarg' [-Wredundant-decls] agetty.c:537:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] script.c:161:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] wall.c:96:13: warning: redundant redeclaration of 'optind' [-Wredundant-decls] libmount.h:362:26: note: previous declaration of 'mnt_update_get_fs' was here libmount.h:454:26: note: previous declaration of 'mnt_context_get_fs' was here mountP.h:383:26: warning: redundant redeclaration of 'mnt_context_get_fs' [-Wredundant-decls] mountP.h:398:26: warning: redundant redeclaration of 'mnt_update_get_fs' [-Wredundant-decls] Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-06-02docs: fix all man page groff warningsSami Kerola1-1/+1
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-05-28mount: (old) fix encryption= usageKarel Zak2-5/+26
Addresses: https://github.com/karelzak/util-linux/issues/12 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-27build-sys: add fsprobe.h to distPetr Uzel1-1/+1
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-04-23Fix typos found by misspellingsBernhard Voelker1-1/+1
The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * isosize: Fix typo in usage string. * configure.ac: Fix typo in help string of --enable-most-builds option. * fdisk: Fix typo in man page. * libblkid, blkid, mount: Likewise. * Fix various typos in docs and in source code comments. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
2012-04-19docs: move fstab.5 to sys-utils (mount/ dir is deprecated)Karel Zak2-261/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-18mount: fix man page typo s/reatime/relatime/Karel Zak1-1/+1
Reported-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-04-04mount: verify writing to streams was successfulSami Kerola3-2/+8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-04-02mount: (old) check for LD_FLAGS_AUTOCLEAR more carefullyKarel Zak1-10/+12
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=803799 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-27build-sys: move obsolete lib/fsprobe to mount/Karel Zak3-1/+170
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-03-21mount: fix recursively propagation mountingDong Hao1-2/+3
Provide the recursive flag of propagation mounting. Recursive flag could be used together with propagation flag. [kzak@redhat.com: - add MS_SILENT to acceptable propagation flags, - fix new code in libmount too] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Dong Hao <haodong@linux.vnet.ibm.com>
2012-03-12fstab.5: fix misspelling of deprecatedDave Reisner1-1/+1
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-02-28build-sys: enhance readability of the autotools filesSami Kerola1-18/+30
Several horizontal lists are turned to vertical, and sorted to alphabetical order. Additionally spaces are converted to tabs where ever possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-24docs: corrections to FSF license files, and postal addressSami Kerola2-8/+6
The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-02-24umount: respect fs search pathMike Frysinger1-3/+10
This brings search path support to umount to match existing behavior in fsck and mount. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-02-23mount: distinguish between MS_COMMENT flags (netdev, nofail, ...)Karel Zak1-4/+15
Since util-linux 2.12h (year 2004) there is only one flag for all dummy options like _netdev or nofail. Unfortunately it means that when mount(8) composes the final mount options string for mtab (or for mount.<type> helpers) the string is generated incorrectly. Reported-by: Dave Reisner <d@falconindy.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2012-02-23mount: clear flags before options parsingKarel Zak1-2/+9
for example "mount -a" calls the mount options parser more than once Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-24Revert "mount: enable fstab.d"Karel Zak3-63/+10
See discussion at https://lkml.org/lkml/2012/1/20/104 This reverts commit d8ebc83ff2e9f879ac60a663c1685011a048f603.
2012-01-17mount: fix __attribute__ keywordKarel Zak1-11/+11
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-11build-sys: move swapon from mount/ to sys-utils/Karel Zak5-1108/+1
... to make it independent on mount stuff. Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-11swapon: merge swap_constants.h into swapon.cKarel Zak2-16/+12
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-10mount: add hint that context= has to be quotedKarel Zak1-1/+16
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=747038 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-10mount: update info about check= mount optionKarel Zak1-2/+4
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=770172 Signed-off-by: Karel Zak <kzak@redhat.com>
2012-01-02mount: don't canonicalize the source of a pseudofsDave Reisner1-2/+3
In line with previous patches, the source of a pseudofs is strictly semantic; do not attempt to resolve it to a filesystem path. As a side effect of this, nspec needs to be initialized to NULL since it may not be assigned null by spec_to_devname when the FS is deemed a pseudofs. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-01-02mount: append inverting options for mount.<type>Karel Zak1-7/+24
fstab: server://foo /mnt/foo nfs user,exec The mount(8) does not append the option "exec" to /sbin/mount.<type> helper's command line. This is no problem when executed by non-root user as it reads the options from fstab only. .. but when executed by root (UID=0) then the mount.<type> helper follows the command where the "exec" option is missing. This is bug. original version (strace output): execve("/sbin/mount.nfs", ["/sbin/mount.nfs", "sr.net.home:/mnt/store", "/mnt/store", "-o", "rw,nosuid,nodev,noauto,user"], [/* 21 vars */]) = 0 fixed version: execve("/sbin/mount.nfs", ["/sbin/mount.nfs", "sr.net.home:/mnt/store", "/mnt/store", "-o", "rw,nosuid,nodev,noauto,user,exec"], [/* 21 vars */]) = 0 ^^^^^ Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: move to sys-utils directoryKarel Zak4-1333/+2
Now losetup(8) is independent on mount/ stuff at all. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: remove mount-specific headersKarel Zak2-28/+27
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: remove unnecessary header filesKarel Zak3-77/+7
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: remove 32-bit ioctlsKarel Zak2-96/+4
... kernel 2.4 ?! Who cares? Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: remove #ifdef LOOP_SET_FD nonsenseKarel Zak1-52/+0
It's build-system task to enable/disable utils according to accessible system features. Signed-off-by: Karel Zak <kzak@redhat.com>
2011-12-20losetup: remove obsolete #ifdef MAINKarel Zak2-12/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-22mount: enable fstab.dMasatake YAMATO3-10/+63
This patch makes mount command read fstab.d/*.fstab if the command is built with --enable-libmount-mount. [kzak@redhat.com: - add some info to fstab.5 and mount.8 man pages - use error callback for tab parser] Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-09mount: fix buildDavidlohr Bueso1-1/+1
With the new build changes when libmount is not defined the compilation breaks: fstab.c:440: undefined reference to `streq_except_trailing_slash' collect2: ld returned 1 exit status make[2]: *** [mtab_lock_test] Error 1 make[2]: Leaving directory `/home/dave/projects/ut/mount' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/dave/projects/ut' make: *** [all] Error 2 This patch adds strutils to the fstab.c rule. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-11-08libmount: ignore tailing slash in netfs source pathsPetr Uzel1-1/+2
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=728480 Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-04build-sys: remove redundant flags from mount/Makefile.amKarel Zak1-2/+2
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-11-03build-sys: cleanup BUILD_MOUNTKarel Zak1-8/+3
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-17mount: remounting tmpfs read-write hangs (selinux)Karel Zak1-0/+1
Reported-by: Petr Pisar <ppisar@redhat.com> Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=746705 Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-03losetup: new -D option to delete all used loop devicesPetr Uzel2-4/+47
Signed-off-by: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-10-03losetup: print verbose messages if requestedPetr Uzel1-2/+2
verbose can't be > 1 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-09-30umount: add warningKarel Zak1-3/+3
It's better to inform users about reason why their request does not makes sense :-) Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-30umount: use new lib/loopdev.c codeKarel Zak2-30/+29
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-30mount: fix loopdev deinitializationKarel Zak1-7/+10
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-30mount: use new lib/loopdev.c codeKarel Zak2-45/+85
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-27misc: use %m in format string instead of %s and strerror(errno)Petr Uzel4-13/+9
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2011-09-27mount: use common libsDavidlohr Bueso9-69/+7
Get rid of the local xmalloc.[c/h] files by using the global xalloc and strutils libraries. Signed-off-by: Davidlohr Bueso <dave@gnu.org>
2011-09-13mount: check for target before source on remountKarel Zak1-2/+7
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=737091 Reported-by: Eric Paris <eparis@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2011-09-09mount: remove superfluous "an" under ext4 mount options in mount.8Frederik \"Freso\" S. Olesen1-1/+1
Signed-off-by: Frederik "Freso" S. Olesen <freso@freso.dk>
2011-09-08mount: fix compiler warning [-Wunused-parameter]Karel Zak2-8/+37
Signed-off-by: Karel Zak <kzak@redhat.com>
2011-08-31Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2-19/+0
* '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