Connor Taffe
f62d4c4143
9pfuse: support MacFUSE >=4
...
MacFUSE 4 removes support for passing device fd to the mount command. Adds
support for the receiving the fd over a socket instead, and updates command paths
and filesystem name.
2021-01-31 20:52:49 -05:00
Russ Cox
b3a20a96eb
libthread: add threadmaybackground
...
Programs that want to background themselves now need
to define threadmaybackground returning 1.
This avoids a confusing (to people and debuggers)
extra parent process for all the threaded programs
that will never want to background themselves.
2020-12-30 00:12:14 -05:00
Oleg Nemanov
dc24d309d5
9pfuse: update errortab
2020-01-15 08:32:00 -05:00
Russ Cox
fa588406f0
9pfuse: do not fswalk("..")
...
f is open, so walk will fail.
The comments say we only need one directory anyway.
Fixes #277 .
2020-01-13 17:07:44 -05:00
Nicola Girardi
93f9789c04
cmd/9pfuse: ignore FMODE_EXEC open flag
...
Improved error message in case of unexpected open flags. The message
unexpected open flags requested=0100040 unhandled=040
prompted me to clear the FMODE_EXEC flag, although I wonder if I
shouldn't have set OEXEC (0x3) instead.
2020-01-13 16:56:57 -05:00
Dan Cross
fa325e9b42
Trivial changes: whitespace and modes.
...
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.
Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00
Xiao-Yong Jin
a5b24c22a8
mount, 9pfuse: detect macports installed osxfuse
...
MacPorts installs osxfuse under /opt/local.
2018-03-27 15:01:46 +02:00
Xiao-Yong Jin
112744e54b
9pfuse: retries read(3) upon EINTR
...
read(3) sometimes errors with EINTR on macOS over slow connections.
9pfuse(1) now retries read(3) instead of sysfatal(3)ing.
2018-03-23 10:36:08 +01:00
David du Colombier
4798a8a556
9pfuse: fix handling of access mode (thanks Kenji Arisawa)
...
Fixes #81 .
2018-02-05 21:14:32 +01:00
James Porter
9f34853f7c
9pfuse: support osxfuse>=3.3.0
...
Change-Id: Ibca68261016b0f588e169e9f319748b5ba7d15ac
Reviewed-on: https://plan9port-review.googlesource.com/2700
Reviewed-by: michaelian ennis <michaelian.ennis@gmail.com>
Reviewed-by: Russ Cox <rsc@swtch.com>
2017-02-10 13:37:44 +00:00
Merlijn Wajer
9bcee1f034
9pfuse: Disable glibc workaround for O_LARGEFILE on ARM
...
9pfuse fails on ARM when O_LARGEFILE is supported.
glibc does define O_LARGEFILE properly on ARM,
and the value is different than what that this workaround suggests,
causing it to wrongly detect bad flags.
Change-Id: I02b0cc222ca7785c4b1739c3df3caa17cf7bc265
Reviewed-on: https://plan9port-review.googlesource.com/1094
Reviewed-by: Russ Cox <rsc@swtch.com>
2014-12-02 01:46:43 +00:00
Ties Bos
d4ccb0a943
9pfuse: fix memory leak, avoid memory explosion
...
Change is to handle FUSE_FORGET in main loop instead of separate thread for each as 10s of thousands can come in at once.
Fixes issue 104.
R=0intro, rsc
http://codereview.appspot.com/6498081
2012-09-10 22:07:26 -04:00
Russ Cox
d905d2f5fe
9pfuse: osxfuse support
...
R=rsc
http://codereview.appspot.com/6503093
2012-09-08 12:49:19 -04:00
Russ Cox
f9c8cdb5a6
semicolons!
2011-10-07 11:41:04 -04:00
Russ Cox
281ca361d3
9pfuse: handle two more flags
2011-10-05 16:20:25 -04:00
David Jeannot
48107872ba
devdraw: update Lion cocoa
...
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5015042
2011-09-19 08:58:59 -04:00
Russ Cox
4a34106c7d
merge
2009-06-16 07:16:25 -07:00
Russ Cox
7a61658daa
9pfuse: fix mkfile for people without . in their paths
2009-05-17 10:28:01 -07:00
Russ Cox
d439750308
merge
2009-04-30 08:01:33 -07:00
Russ Cox
e10a834215
9pfuse: clear O_EXCL too
2009-04-30 07:22:17 -07:00
Jeff Sickel
f0cd09f352
MacFUSE 2.0 updates
2008-12-10 13:26:16 -06:00
Russ Cox
e465991ea6
9pfuse: allow O_APPEND in open and create (Roman Shaposhnik)
2008-12-30 14:27:30 -08:00
Jeff Sickel
fd997ef09f
updates to support current MacFUSE
2008-08-19 09:24:54 -05:00
Russ Cox
6f61477d26
9pfuse: ignore write errors on fusefd
...
FUSE makes a reply write fail if the reply is no
longer wanted.
2008-07-24 07:59:58 -07:00
Russ Cox
77fb6ec713
9pfuse: convert "invalid" to EINVAL
2008-07-24 07:59:25 -07:00
Russ Cox
9ec57f8b9e
9pfuse: always return . and ..
2008-07-04 12:16:53 -04:00
Russ Cox
869875b48b
9pfuse: better handling of SETXATTR (sqweek)
2008-07-04 03:41:19 -04:00
Russ Cox
d07db89b00
9pfuse: add symlink support
2008-07-04 02:52:01 -04:00
Russ Cox
7dc6d2444c
9pfuse: "fix" O_LARGEFILE on x86_64 linux (sqweek)
2008-06-19 18:56:56 -04:00
Russ Cox
3c8afaf281
9pfuse: bug fix in error case
2008-05-05 23:05:56 -04:00
Russ Cox
e63025d094
9pfuse: accept - for stdin, try to hang up cleanly
2008-04-17 16:03:49 -04:00
Russ Cox
29770b4f21
9pfuse: use intptr to silence 64-bit warning (Michael Teichgräber)
2008-03-06 15:21:09 -05:00
Russ Cox
83ab7d8896
merge
2007-11-27 15:39:06 -05:00
Russ Cox
ebda53e16b
merge
2007-08-22 09:00:26 -04:00
rsc
9ec386fef4
add -a aname
2007-06-21 02:11:21 +00:00
rsc
6654bd74cb
more macfuse path nonsense
2007-06-20 00:10:03 +00:00
rsc
e54f9a4ad2
Unswap perm and omode in fsfcreate call (Michael Teichgräber)
2007-05-09 00:06:11 +00:00
rsc
d7158243a6
Better flag handling in fusecreate (Michael Teichgräber)
2007-05-09 00:05:06 +00:00
rsc
cd2bb6ce1d
propagate offset in reads and writes (Michael Teichgräber)
2007-05-04 19:15:39 +00:00
rsc
4c65127bbe
google moved the fusefs.kext path
2007-01-24 16:24:04 +00:00
rsc
357cecc163
Minor FUSE bug fixes (found mount_fusefs!)
2007-01-18 13:02:52 +00:00
rsc
9b3fcf01c5
Mac FUSE support (thanks to Jeff Sickel)
2007-01-18 12:52:54 +00:00
rsc
6007b4d97b
avoid EPROTO in case not there (Tim Wiess)
2006-10-12 01:55:09 +00:00
rsc
ca6a2d95ac
break from readdir properly (Lou Kamenov)
2006-08-01 14:38:30 +00:00
rsc
be8b4b397a
free fuse messages
2006-08-01 03:19:53 +00:00
rsc
9c15a45673
use better O_LARGEFILE
2006-07-27 22:36:00 +00:00
rsc
a83ccf38d7
wait for mount to complete before exiting
2006-07-27 05:14:16 +00:00
rsc
143cdf5758
FreeBSD fixes (Lou Kamenov)
2006-07-26 15:54:41 +00:00
rsc
604b5fcda4
add stat.h
2006-07-23 14:21:45 +00:00
rsc
c135352562
fix emalloc prototype
2006-07-23 05:13:56 +00:00