aboutsummaryrefslogtreecommitdiff
path: root/lib/mount_bsd.c
Commit message (Collapse)AuthorAge
* fuse_kern_unmount(): close fd before calling umountGravatar Nikolaus Rath2017-09-11
| | | | | | This is what the Linux version does, and it fixes a timeout under FreeBSD when the kernel sends a FUSE_DESTROY request that is never answered.
* fuse_kern_unmount(): fix variable type.Gravatar Nikolaus Rath2017-08-11
|
* Fix unused variable warnings under FreeBSD.Gravatar Nikolaus Rath2017-08-11
|
* Simply #ifdefsGravatar Nikolaus Rath2017-08-03
| | | | | | mount_bsd.c is only used when compiling for *BSD, and FreeBSD is the only BSD that supports FUSE. So there really is no need to check if this file is compiled under FreeBSD.
* FreeBSD: use unmount(2) and add missing FreeBSD mount optionGravatar Baptiste Daroussin2017-08-03
|
* Memory leak fixed in file : mount_bsd.cGravatar itsdeepak2016-12-23
|
* 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.
* 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.
* 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
|
* Dropped fuse_unmount_compat22Gravatar Nikolaus Rath2016-09-27
| | | | | This function was for backwards compatibility in FUSE 2.x, and is no longer exposed by FUSE 3.
* 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.
* Print help on stdout instead of stderrGravatar Miklos Szeredi2013-07-26
|
* libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pcGravatar Miklos Szeredi2013-07-24
| | | | add AC_SYS_LARGEFILE to your configure.ac instead.
* 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
* Remove old symbol versionsGravatar Miklos Szeredi2012-07-19
|
* Add support for atomic open(O_TRUNC)Gravatar Miklos Szeredi2008-02-08
|
* lib/mount_bsd.c: fix typoGravatar Csaba Henk2008-02-05
|
* lib/mount_bsd.c: add "-onosync_unmount" kernel optionGravatar Csaba Henk2008-02-05
|
* lib/mount_bsd.c: prettify option specificationsGravatar Csaba Henk2008-02-03
|
* lib/mount_bsd.c: get rid of all the hacks, we really need nothing just a ↵Gravatar Csaba Henk2008-02-03
| | | | forced unmount
* lib/mount_bsd.c: ditch the kvm(8) stuff and fix unmounting in a simple and ↵Gravatar Csaba Henk2008-02-03
| | | | sensible way
* lib/mount_bsd.c: string formatting fixes, exit if mounting has failedGravatar Csaba Henk2008-02-03
|
* lib/mount_bsd.c: add support for the subtype optionGravatar Csaba Henk2008-01-07
|
* lib/mount_bsd.c: fix up/refine device closing vs. unmountGravatar Csaba Henk2008-01-06
|
* lib/mount_bsd.c: Close device before unmount.Gravatar Csaba Henk2008-01-03
| | | | Cf. lib/mount.c rev. 1.43.
* lib/mount_bsd.c: fix some warningsGravatar Csaba Henk2008-01-03
|
* 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
|
* run mount util foregrounded on FreeBSD if kernel features backgrounded initGravatar Csaba Henk2006-04-22
|
* More "no" prefixes for FreBSD mount routineGravatar Csaba Henk2006-04-06
|
* fixGravatar Miklos Szeredi2006-03-17
|
* pass device file descriptor to fuse_unmountGravatar Csaba Henk2006-03-01
|
* merge fuse_2_5_bugfixGravatar Miklos Szeredi2006-02-02
|
* whitespace fixesGravatar Miklos Szeredi2006-01-09
|
* fixGravatar Miklos Szeredi2006-01-09
|
* fixGravatar Miklos Szeredi2005-11-17
|
* merge FreeBSD stuffGravatar Miklos Szeredi2005-11-16