aboutsummaryrefslogtreecommitdiff
path: root/lib/mount.c
Commit message (Collapse)AuthorAge
* Fix compiler warnings of gcc-5.4.xGravatar Banglang2017-08-01
| | | | Signed-off-by: Banglang <banglang.huang@foxmail.com>
* Set IGNORE_MTAB when running under NetBSDGravatar Nikolaus Rath2016-12-23
| | | | | | | Apparently, NetBSD does not have /etc/mtab. Setting IGNORE_MTAB in this case makes the code a little nicer. See also https://github.com/libfuse/libfuse/pull/123
* Improve documentation of fuse_session_unmountGravatar Nikolaus Rath2016-11-29
|
* Rename more things from fuse to fuse3Gravatar Przemysław Pawełczyk2016-11-28
|
* Make handling of -oallow_root easier to understandGravatar Nikolaus Rath2016-11-22
| | | | | | -oallow_root is handled in userspace, and requires passing -oallow_other to the kernel. This patch should make the code easier to understand and avoid the confusion that gave rise to issue #86.
* Renamed fusermount / mount.fuse to fusermount3 / mount.fuse3Gravatar Nikolaus Rath2016-10-28
|
* Add max_read to fuse_conn_infoGravatar Nikolaus Rath2016-10-27
| | | | | | | | | | Eventually, this setting should be negotiated in the filesystem's init() handler (like e.g. max_write). However, this requires corresponding changes in the FUSE kernel module. In preparation for this (and to allow a transition period) we already allow (and require) filesystems to set the value in the init() handler in addition to the mount option. The end-goal is tracked in issue #91.
* Inlined fuse_mount_help() into fuse_lowlevel_help().Gravatar Nikolaus Rath2016-10-16
| | | | | | | | | Both the BSD and Linux implementation actually accept mostly the same FUSE-specific mount options. Up to now, the BSD help function appended the output of ``mount_fusefs --help``, but looking at http://www.unix.com/man-page/freebsd/8/mount_fusefs/ this is likely more confusing than helpful (since the user is not actually invoking mount_fusefs directly, most of the options don't make sense).
* Make --help output more suitable for end-userGravatar Nikolaus Rath2016-10-15
| | | | | | | We now only list options that are potentially useful for an end-user (and unlikely to accidentally break a file system). The full list of FUSE options has been moved to the documentation of the fuse_new() and fuse_session_new() functions.
* Removed -o nonempty optionGravatar Nikolaus Rath2016-10-15
| | | | | This brings the default behavior in-line with that of the regular `mount` command.
* Drop -o large_read mount optionGravatar Nikolaus Rath2016-10-15
| | | | This was only relevant for 2.4 kernels. Fixes #92.
* fuse_mount_help(): clarify that listed options are FUSE specificGravatar Nikolaus Rath2016-10-04
| | | | | We also accept a number of mount options that are common to all file systems (nosuid, nodev, ro, etc).
* Extended per-file comments.Gravatar Nikolaus Rath2016-10-02
| | | | | This should make more clear what file contains code for what purpose.
* fuse_mount_opts: don't keep max_read= option.Gravatar Nikolaus Rath2016-10-02
| | | | There is no consumer of it down the line.
* Add section headings for --help outputGravatar Nikolaus Rath2016-10-02
| | | | Also, do not include "General options" in usage message.
* Turn struct fuse_chan into an implementation detailGravatar Nikolaus Rath2016-10-02
| | | | | | | | | | | | | | | | | | | | | The only struct fuse_chan that's accessible to the user application is the "master" channel that is returned by fuse_mount and stored in struct fuse_session. When using the multi-threaded main loop with the "clone_fd" option, each worker thread gets its own struct fuse_chan. However, none of these are available to the user application, nor do they hold references to struct fuse_session (the pointer is always null). Therefore, any presence of struct fuse_chan can be removed without loss of functionality by relying on struct fuse_session instead. This reduces the number of API functions and removes a potential source of confusion (since the new API no longer looks as if it might be possible to add multiple channels to one session, or to share one channel between multiple sessions). Fixes issue #17.
* Improve documentation of argument parsing.Gravatar Nikolaus Rath2016-10-01
|
* Whitespace cleanup.Gravatar Nikolaus Rath2016-03-29
| | | | | | Applied (whitespace-cleanup) to each file. Having whitespace changes in the VCS is ugly, but it ensures that in the future committers can run this function to *avoid* commiting any whitespace.
* libfuse: fix warning mount.c:receive_fd()Gravatar Miklos Szeredi2015-08-12
| | | | Reported by Albert Berger
* fusermount, libfuse: send value as unsigned in "user_id=" and "group_id="Gravatar Miklos Szeredi2014-07-15
| | | | | ...options. Uids/gids larger than 2147483647 would result in EINVAL when mounting the filesystem. This also needs a fix in the kernel.
* Print help on stdout instead of stderrGravatar Miklos Szeredi2013-07-26
|
* libfuse: set FD_CLOEXEC also when receiving device fd from fusermountGravatar Miklos Szeredi2013-06-21
|
* libfuse: fix multiple close of device fdGravatar Miklos Szeredi2013-06-20
| | | | | | | | | | | | - fuse_kern_unmount closes handle (e.g. 19) - a thread in my process opens a file - the OS assigns newly freed handle (i.e. 19) - fuse_kern_chan_destroy closes the same handle (i.e. 19) - a thread in my process opens another file - the OS assigns newly freed handle (i.e. 19) - * MAYHEM * Reported by Dan Greenfield
* libfuse: use O_CLOEXEC flag when opening /dev/fuse deviceGravatar Richard W.M. Jones2013-02-20
|
* libfuse: pass security context options to kernelGravatar Dalvik Khertel2013-02-08
| | | | | | | | | Mount can be used with an "-o context=" option in order to specify a mountpoint-wide SELinux security context different from the default context provided by the active SELinux policy. This is useful in order to enable users to mount multiple sshfs targets under distinct contexts, which is my main motivation for getting this patch mainlined.
* Remove compat functionsGravatar Miklos Szeredi2012-07-19
|
* Remove old symbol versionsGravatar Miklos Szeredi2012-07-19
|
* libfuse: mark some data constantGravatar Miklos Szeredi2012-07-04
|
* Don't ignore --disable-mtabGravatar Miklos Szeredi2011-08-31
| | | | | | | If configured with --disable-mtab then don't call mount(8) from libfuse to update the mtab. Reported by: James Sierp
* libfuse: Added support for auto_unmount optionGravatar Max Krasnyansky2011-04-15
| | | | | | | | | | | This change adds support for "auto_unmount" option to libfuse. auto_umount option unmounts the fs automatically on application termination, whether normal or not (segfault, etc). When auto_unmount option is specified libfuse will alway use fusermount for mounting the fs. This change is selfcontained but for complete functionaly it requires auto_unmount support in fusermount tool.
* Initialize the variable properly before passing to any functionGravatar Laszlo Papp2011-03-30
|
* Check the negative return value after an open syscallGravatar Laszlo Papp2011-03-30
|
* Fix option escaping for fusermount.Gravatar Miklos Szeredi2010-09-28
| | | | | | | | If the "fsname=" option contained a comma then the option parser in fusermount was confused (Novell bugzilla #641480). Fix by escaping commas when passing them over to fusermount. Reported by Jan Engelhardt
* Add NetBSD supportGravatar Miklos Szeredi2010-08-27
| | | | | | | | | | | | | | | | The bulk of it is just about adding ifdef __NetBSD__ where there is already an ifdef __FreeBSD__ Add a arch=netbsd to deal with NetBSD specifics. I suggests that arch=bsd could be renamed to arch=freebsd NetBSD specific linking with -lperfuse NetBSD patches to lib/mount.c. It turned to be less itrusive to patch mount;c than mount_bsd.c. I suggest mount_bsd.c could be renamed to mount_freebsd.c Patch from Emmanuel Dreyfus
* * Fix race if two "fusermount -u" instances are run in parallel.Gravatar Miklos Szeredi2010-01-26
| | | | | | | Reported by Dan Rosenberg * Make sure that the path to be unmounted doesn't refer to a symlink
* Fix mounting over symlinkGravatar Miklos Szeredi2008-06-09
|
* Update error message for missing mountpoint parameterGravatar Miklos Szeredi2008-04-08
|
* Fix memory leaks on mountGravatar Miklos Szeredi2008-03-25
|
* Add support for atomic open(O_TRUNC)Gravatar Miklos Szeredi2008-02-08
|
* change indentingGravatar Miklos Szeredi2007-12-12
|
* Disable old symbol versions if __UCLIBC__ is definedGravatar Miklos Szeredi2007-12-12
|
* Clarify licence version to be "LGPLv2" for the libraryGravatar Miklos Szeredi2007-10-16
|
* lib: fix locking when loading a filesystem moduleGravatar Miklos Szeredi2007-06-22
|
* Add fs subtype support to libfuse and fusermountGravatar Miklos Szeredi2007-06-20
|
* libfuse: call umount(8) directly...Gravatar Miklos Szeredi2007-04-27
|
* update copyright datesGravatar Miklos Szeredi2007-04-25
|
* *** empty log message ***Gravatar Miklos Szeredi2007-04-25
|
* *** empty log message ***Gravatar Miklos Szeredi2007-04-05
|
* Add support for direct mounting by libfuseGravatar Miklos Szeredi2007-03-30
|
* merge up to fuse_2_6_merge1Gravatar Miklos Szeredi2007-01-19
|