Commit Graph

156037 Commits

Author SHA1 Message Date
ad c18c0d2eaa Eliminate a couple of reference count and mutex leaks. 2007-02-11 17:16:08 +00:00
ad 6fa495aa59 Note that device drivers should not (in general) use these interfaces. 2007-02-11 16:36:06 +00:00
ad 6f86141195 Add mb/rwlock/condvar/mutex section 9 manual pages. 2007-02-11 16:16:09 +00:00
pooka 1bcabb4452 pass real fuse_file_info to rest of fuse ops instead of a memset-to-zero one 2007-02-11 16:06:52 +00:00
ad b52b3eb8ff Mark these interfaces obsolete. 2007-02-11 16:05:08 +00:00
pooka d2895ac61d sprinkle some KNF
agc ok
2007-02-11 16:02:24 +00:00
yamt 0844695f78 unwrap short lines. 2007-02-11 15:41:53 +00:00
ad 6511d52f7d inline -> __inline 2007-02-11 15:41:31 +00:00
yamt f39831ee99 workqueue_exit: update a comment. 2007-02-11 15:37:20 +00:00
yamt be27733fd7 use cv_signal rather than cv_broadcast where appropriate. 2007-02-11 15:36:35 +00:00
apb 339d48d326 Run pwd_mkdb before running mtree.
Reported by Hauke Fath in PR 35570.
2007-02-11 15:04:17 +00:00
pooka dccec0f03b fuse directory fillers return opposite truth values from puffs_nextdent,
so invert return value to make readdir callers which check the return
value work.
2007-02-11 14:38:00 +00:00
yamt 8721382dee remove a duplicated inclusion of sleepq.h. 2007-02-11 14:29:01 +00:00
degroote fb66d23b5f fixed a unexpected addr/port matching failure in SA management
From cvs rev 1.127 of netkey/key.c
2007-02-11 13:35:00 +00:00
degroote 97d02ceb4b reqid (for unique policy) is u_int16_t quantity.
from rev 1.125 of netkey/key.c
2007-02-11 13:32:18 +00:00
hannken 2913e5b9ef newlock2: add include files mutex.h and rwlock.h 2007-02-11 12:15:07 +00:00
pooka 85a3d9279a Allocate refuse private data, refusenode, for all nodes. Currently it
carries fuse_file_info.

.. and lo, cddafs works
2007-02-11 12:12:39 +00:00
pooka f3a3462b84 implement getdir, used by some older fuse file systems instead of readdir 2007-02-11 11:57:41 +00:00
pooka 8343e96869 Don't release nodes in _remove or _rmdir, implement reclaim
where to do it.
2007-02-11 10:58:43 +00:00
pooka 7d7c04f43a * sprinkle some comments to obvious XXX places
* remove outdated #ifdef from write
* return 0 if unmount is not supported instead of ENOSYS
2007-02-11 10:51:53 +00:00
yamt fb8ab06b18 remove a forward decl of sa_emul. 2007-02-11 10:47:38 +00:00
tsutsui a5c3cb6b54 Note news68k generic softintr(9). 2007-02-11 10:39:31 +00:00
agc 992d360ec2 Note the librefuse addition, adding compatibility with the file system
in userspace, layered on top of libpuffs.
2007-02-11 10:35:09 +00:00
agc 4cccedc203 Add an implementation of the file system in userspace functionality,
based on top of libpuffs.  This version is still barebones and
incomplete, but will benefit from others working on it, rather than
just me.

The option code has still to be implemented, but this gets far enough
to run hellofs (from the fuse web page):

	% priv ./hellofs ~/hellofs/mnt &
	% l ~/hellofs/mnt
	total 2
	drwxr-xr-x  2 root  wheel    0 Jan  1  1970 .
	drwxr-xr-x  4 agc   agc    512 Feb  9 18:05 ..
	-r--r--r--  1 root  wheel   13 Jan  1  1970 hello
	% cat ~/hellofs/mnt/hello
	Hello World!
	% df ~/hellofs/mnt
	Filesystem           1K-blocks      Used     Avail Capacity  Mounted on
	/dev/dk0              28101396  18946682   7749646    70%    /
	kernfs                       1         1         0   100%    /kern
	procfs                       4         4         0   100%    /proc
	ptyfs                        1         1         0   100%    /dev/pts
	puffs:refuse:hellofs  28101396  18946682   7749646    70%    /home/agc/hellofs/mnt
	% mount -v -v
	...
	mount: mount_puffs not found for /home/agc/hellofs/mnt
	puffs:refuse:hellofs on /home/agc/hellofs/mnt type puffs (nosuid, nodev, fsid: 0xcb01/0x6acb, reads: sync 0 async 0, writes: sync 0 async 0)
	%

This code is not enabled by default. Yet.
2007-02-11 10:31:37 +00:00
mlelstv 8d08c62fcc Make setsockopt return compatible error codes for AF_UNIX sockets. 2007-02-11 08:00:59 +00:00
ad 6bcf70b518 - Add/correct comments.
- Print correct function name when an assertion triggers.
2007-02-10 21:07:52 +00:00
reed b173114f5c Fix typo/mispelling in comment. 2007-02-10 19:40:58 +00:00
reed 5e11b7d474 Fix spelling/typo. 2007-02-10 19:40:10 +00:00
reed ed94d203e5 Fix mispelling in comment. 2007-02-10 19:39:02 +00:00
reed a5a4385fd4 Fix typo/mispelling in comment. 2007-02-10 19:36:56 +00:00
reed a87b66bd95 Add "catman" to the SEE ALSO. 2007-02-10 19:27:39 +00:00
macallan ba96662cde add missing defflags from previous commits 2007-02-10 19:10:24 +00:00
reed ab2b69b1e9 Remove sentence that says variables can be set to NO to
disable the test. There is no "test". So it is confusing.

Instead say:

  The variables described below can be set to ``YES'' or ``NO'' in the
  /etc/weekly.conf file.  The default settings are in the
  /etc/defaults/weekly.conf file.  (Note that you should never edit
  /etc/defaults/weekly.conf directly, as it is often replaced during system
  upgrades.)

(I don't suggest that all are YES because of a possible upcoming
addition.)
2007-02-10 18:27:28 +00:00
ad 8966ad6a93 Further changes to use compat process flags mapped by sysctl. To be
revisited soon.
2007-02-10 18:20:12 +00:00
hannken 39aa6289a6 newlock2: curproc->p_sigctx.ps_sigmask -> curlwp->l_sigmask.
Ok: Andrew Doran <ad@netbsd.org>
2007-02-10 18:16:18 +00:00
xtraeme b42a191f38 Add pseudo-device cmos - see cmos(4)
Remove unit number in pseudo-device swwdog, by default it is 1.
2007-02-10 18:00:59 +00:00
nakayama f7be5e7f25 s/___asm/__asm/ 2007-02-10 17:34:46 +00:00
ad 5df226f2ad NSPR builds seem to choke on 'inline'. Replace it with __inline. 2007-02-10 16:19:39 +00:00
ad 2b0ac2e782 Fix a pasto (mutex_exit -> mutex_enter). 2007-02-10 16:08:16 +00:00
hannken 9c928583f1 newlock2: syncer_lock is now a mutex. 2007-02-10 15:51:02 +00:00
salo 1e8bf357a2 regen. 2007-02-10 14:30:38 +00:00
salo 9cc3a93f72 Add support for CDMA modems sold by Eurotel (now O2) in .cz
From Dan Bilik <dan at mail dot neosystem dot cz> via private mail.
2007-02-10 14:28:55 +00:00
yamt 997a2a3c4f remove function prototypes of sa_awaken. 2007-02-10 14:02:01 +00:00
skrll 1472d08a88 Fix a label. 2007-02-10 13:21:52 +00:00
pooka cd66766e1a * in write, do sync pageflush for the ubc case every 64k, otherwise
the user file server can't really keep up and just writing and writing
  may result in kernel memory exhaustion.  this lossage is also partially
  due to the stupid way mtime + size info is handled currently, but that
  should change soon (*knock knock* ;)
* score a few debug printfs
2007-02-10 13:12:43 +00:00
tsutsui 67b858ce4e - fix prototype for ctrl_int2 port (u_char -> uint8_t) in intr.h
- use proper macro to assert/clear ctrl_int2 port for softintr
- use KDASSERT() rather than #ifdef DEBUG + assert()
- don't count uvmexp.softs twice in softintr_dispatch()

XXX: Maybe we should have common m68k/softintr.c like mips ports.
2007-02-10 13:08:30 +00:00
tsutsui 6da4c2af88 Clear IFF_OACTIVE in re_txeof() only if there are more than RE_TXDESC_RSVD
free TXDESCs. From FreeBSD, but I'm still wondering why we have to reserve
some free TXDESCs even on re_start().
2007-02-10 12:46:29 +00:00
dsl cb94bcc573 Remove some ancient debugging leftovers left in by Michael Lorenz. 2007-02-10 12:22:26 +00:00
skrll de10cef758 Destroy a mutex correctly. That is, overright the owner and don't set
mtx_waiters.
2007-02-10 12:15:24 +00:00
ad 7fba50c03c A quick hack to get things building again: put back the SA system calls
with no arguments, and alias them to sys_nosys. To be revisited.
2007-02-10 11:55:23 +00:00