Commit graph

30 commits

Author SHA1 Message Date
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
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
David du Colombier
4798a8a556 9pfuse: fix handling of access mode (thanks Kenji Arisawa)
Fixes #81.
2018-02-05 21:14:32 +01: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
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
Russ Cox
e10a834215 9pfuse: clear O_EXCL too 2009-04-30 07:22:17 -07:00
Russ Cox
e465991ea6 9pfuse: allow O_APPEND in open and create (Roman Shaposhnik) 2008-12-30 14:27:30 -08:00
Russ Cox
9ec57f8b9e 9pfuse: always return . and .. 2008-07-04 12:16:53 -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
83ab7d8896 merge 2007-11-27 15:39:06 -05:00
rsc
9ec386fef4 add -a aname 2007-06-21 02:11:21 +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
ca6a2d95ac break from readdir properly (Lou Kamenov) 2006-08-01 14:38:30 +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
07ef704cab remove debug print 2006-07-23 05:13:23 +00:00
rsc
a695bc7db9 better errstr 2006-07-23 03:33:00 +00:00
rsc
0d7fd01125 better open mode 2006-07-23 03:08:51 +00:00
rsc
05f50fe6bf gnuisms 2006-07-23 03:05:22 +00:00
rsc
5551e51d2b 9pfuse 2006-07-23 03:02:03 +00:00