Commit Graph

14166 Commits

Author SHA1 Message Date
christos fda2d7ca9f deal with infinity on the vax. 2010-09-20 17:51:38 +00:00
christos c80a34bc23 no more ieee ifdefs 2010-09-20 16:55:20 +00:00
christos 0a9ef41cbe get rid of ieee dependencies. 2010-09-20 16:53:30 +00:00
christos 852d033d43 shouldn't need ieee.h here. 2010-09-20 15:38:48 +00:00
manu 3d6861b56c - performance improvement for read, readdir and write. Now we use
SOCK_DGRAM, we can send many pages at once without hitting any bug

- when creating a file, it is open for FUSE, but not for the kernel.
If the kernel does not do a subsequent open, we have a leak. We fight
against this by trying to close such file that the kernel left unopen
for some time.

- some code refactoring to make message exchange debug easier (more to come)
2010-09-20 07:00:21 +00:00
jym f0583e593c KNF 2010-09-19 11:37:40 +00:00
jym 6dc46b923b Ansify and KNF all functions within kvm(3). No objection on current-users@.
Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
2010-09-19 02:07:00 +00:00
christos 92da7545e1 don't compile long double support for the havenots. 2010-09-17 20:39:39 +00:00
drochner de41a05aef fix an obvious botch which made eg conjl(3) a no-op 2010-09-16 20:39:50 +00:00
christos b354315033 unbreak readline history. 2010-09-16 20:08:51 +00:00
yamt 53cf9ce3be - remove a wrong _DIAGASSERT
- update comments
- whitespace
2010-09-16 02:38:50 +00:00
wiz 0d8d67869e Remove trailing whitespace. 2010-09-15 18:40:27 +00:00
christos 98b923b685 commit long double SoC code from Stathis Kamperis 2010-09-15 16:12:05 +00:00
christos e2a86dd3c7 Commit SoC long double support from Stathis Kamperis 2010-09-15 16:11:28 +00:00
yamt f15acd14df remove RESTRICTIONS section, which seems unrelated to our implementation 2010-09-15 07:28:46 +00:00
manu e9a8a6acc0 - Use SOCK_DGRAM instead of SOCK_STREAM, as the filesystem seems to
assume datagram semantics: when using SOCK_STREAM, if perfused sends
frames faster than the filesystem consumes them, it will grab multiple
frames at once and discard anything beyond the first one. For now the
code can work both with SOCK_DGRAM and SOCK_STREAM, but SOCK_STREAM
support will probably have to be removed for the sake of readability.

- Remeber to sync parent directories when moving a node

- In debug output, display the requeue type (readdir, write, etc...)
2010-09-15 01:51:43 +00:00
matt 8e09c95f97 Resurrect this for MIPS softfloat. 2010-09-10 16:32:35 +00:00
drochner 927f8fc1e3 apply an 11 years old fix from FreeBSD:
if EBADF is returned due to a read from a write-only stream, also
set ferror()
found by a selftest of Python-2.6.6, thanks to obache for pointing
out the details
2010-09-10 10:29:23 +00:00
skrll 2a4732aadc Only do the __libc_init hack in libc, i.e. remove it from ld.elf_so.
This fixes hppa ld.elf_so by reducing the number of PLABELs required to
the number before the hack was applied.

Hi Joerg!
2010-09-09 10:19:31 +00:00
manu 17ce0ff611 - call FSYNCDIR for directories
- directories can be open R/W (for FSYNCDIR)
- do not skip calls to FSYNC or FSYNCDIR if the filesystem returned ENOSYS:
it may change its mind, and it may also actually do something when retunring
ENOSYS
- When FSYNC and FSYNCDIR return ENOSYS, do not report it to kernel (silent
failure)
2010-09-09 09:12:35 +00:00
pooka d33a80444e Simplify now that ukfs deals with being called from a thread which
already has a rump lwp context.
2010-09-07 17:22:53 +00:00
pooka 607d9b612a Migrate from rump private interfaces to syscalls. 2010-09-07 17:16:18 +00:00
manu fac2d0c060 Mode argument must contain the file type (S_* items) for create and mknod 2010-09-07 16:58:13 +00:00
manu 1e672db8d2 - Do not checkfor peer credentials when perfused is autostarted and
therefore runs with filesystem privileges

- shut up warnings and debug messages when perfused is autostarted

- make perfused patch modifiable with CFLAGS for easier pkgsrc integration

- Fix build warnings
2010-09-07 02:11:04 +00:00
wiz f1ecb8cf31 O_NOFOLLOW is not a non-standard extension any longer (2, 6 years? who counts). 2010-09-06 19:48:38 +00:00
wiz c70635ec83 I assume "POSIX 200805" is IEEE Std 1003.1-2008 (POSIX.1), so use
appropriate .St.
2010-09-06 19:47:37 +00:00
jakllsch a34ac1b5ed New vdprintf needs "namespace protection". 2010-09-06 17:49:56 +00:00
wiz 4dd873e1cd Note a difference to IEEE Std 2003.1-2008. Bump date. 2010-09-06 15:22:09 +00:00
christos 4ddc2fb37c add dprintf and vdprintf 2010-09-06 14:52:55 +00:00
christos 7d79ab9567 Add GLOB_STAR support from Greg Dionne. 2010-09-06 14:40:24 +00:00
manu 5536686b23 More LP64 fixes 2010-09-06 01:40:24 +00:00
manu 6f8501feb8 build fixes for LP64 2010-09-06 01:17:05 +00:00
wiz d9898a950b Explain how O_NOFOLLOW may cause EFTYPE. From joerg.
While here, sort errors. Bump date.
2010-09-05 22:44:15 +00:00
manu 374c4263ae - correctly set flags for CREATE
- after a node is deleted, some operations should return ENOENT, some
should be ignored. Fixed it for ACCESS, SETATTR and GETATTR. Other
operation may also need a fix.

- At reclaim time, there is no need to wait for READDIR and READ
completion, since the caller will never close a file before getting
readir() and read() replies. Waiting for WRITE completion is still
mandatory, but we must ensure that no queued WRITE is awaiting to
be scheduled. Once the queue is drained, we must check that the
reclaim operation was not canceled by a new file LOOKUP.

- At reclaim time, fixed a mix up between read and write fh to close

- Fixed permission checks for RENAME (it tested the node itself
instead of the source)

- When seting file mode, only MKNOD needs the filetype (S_* fields).
It is probably a bug to set it for other operations.
2010-09-05 06:49:13 +00:00
ahoka 82e82fca50 Add libc glue for libtre.
tre will be compiled without approx and wchar/mulibyte support to
only match the minimum requirement to replace our spencer regex.

This needs a lot of testing.

Only enabled when USE_LIBTRE is set to `yes'.
2010-09-04 12:17:58 +00:00
matt 015f9bbf7a Pullup fixes from matt-nb5-mips64.
This makes setjmp/longjmp work again.
2010-09-03 17:22:51 +00:00
manu 1eb23a5f2b Fix reference count bug introduced by previous commit 2010-09-03 14:32:50 +00:00
manu 28d5b6408e - Postpone file close at reclaim time, since NetBSD sends fsync and
setattr(mtime, ctime) after close, while FUSE expects the file
to be open for these operations

- remove unused argument to node_mk_common()

- remove requeued requests when they are executed, not when they
are tagged for schedule

- try to make filehandle management simplier, by keeping track of only
one read and one write filehandle (the latter being really read/write).

- when CREATE is not available, we use the MKNOD/OPEN path. Fix a
bug here where we opened the parent directory instead of the node:
add the missing lookup of the mknod'ed node.

- lookup file we just created: glusterfs does not really see them
otherwise.

- open file when doing setattr(mtime, ctime) on non open files, as
some filesystems seems to require it.

- Do not flush pagecache for removed nodes

- Keep track of read/write operations in progress, and at reclaim
time, make sure they are over before closing and forgeting the file.
2010-09-03 07:15:18 +00:00
wiz b5ec94d2d1 Fix a typo, uppercase UID/GID. 2010-09-03 07:12:51 +00:00
pooka 0a85e62a45 xfer rump_lwproc 2010-09-02 15:24:34 +00:00
pooka 0bd39d154c document rump_lwproc 2010-09-02 12:29:49 +00:00
manu 518513ec60 - only remove queued requests once they are executed, not when they
are set to be scheduled later
- remove an unused argument to make lint happy
2010-09-02 08:58:06 +00:00
pooka cd52561abe update to new rump proc/lwp interfaces 2010-09-01 19:40:34 +00:00
agc b0615b5bcb Add a .WAIT statement after libmj, should fix a transient problem observed
by moof.
2010-09-01 16:01:27 +00:00
manu ef7e1877ae Build fixes for LP64 2010-09-01 14:57:24 +00:00
wiz 0584bf10ba Some fixes. Comment out ERRORS section until it has content. 2010-09-01 13:04:11 +00:00
drochner 1a2acb81f4 EDOM should not be set on atan2(0,0) in POSIX mode, found by
Stathis Kamperis' testsuite
2010-09-01 10:44:28 +00:00
enami 8713952936 Move prototype of isrmt() to rmt.h. It is a public interface
described in rmtops(3).
2010-08-31 05:12:35 +00:00
wiz 1d743f8e48 Add some commas. 2010-08-30 11:37:52 +00:00
christos 33434557c9 dprintf is claimed by posix. 2010-08-29 15:40:35 +00:00