Commit Graph

158443 Commits

Author SHA1 Message Date
dsl
ad5f09d13c Having removed all the CHECK_ALT_XXX() none of these syscall functions
do anything except call a standard function.  Nuke them all.
2007-04-23 21:22:29 +00:00
pooka
c65d708ad2 adjust misleading comment: PGO_SYNCIO does not depend on PGO_CLEANIT 2007-04-23 20:10:50 +00:00
christos
135e711f26 bump date. 2007-04-23 18:41:11 +00:00
christos
702d1ca548 PR/36194: Greg A. Woods: add a '-V' flag to pax for verbose summary without
listing (and other minor fixes)
2007-04-23 18:40:22 +00:00
tron
e848cdf438 Terminate amd(8) gracefully during system shutdown.
This should avoid occasional problems with syncing or unmounting
filesystems on machines which use the automounter. Tested
successfully under NetBSD-i386 3.1_STABLE and 4.0_BETA2.
2007-04-23 14:27:30 +00:00
manu
262a61f00a Linux's uname should return x86_64 as machine_arch 2007-04-23 12:45:42 +00:00
tron
b25d1b890f Correct documentation:
NetBSD 4.0 will be the first release which supports digital transfer
mode. The feature made it into this release because of the rebranch.

This fixes PR bin/36199 by Andreas Burghardt.
2007-04-23 11:47:55 +00:00
dsl
0182ef09da When we return the real root instead of the emulated root, we may
not have the parent vnode for the emulated root - so dont vput() it.
May fix PR kern/36197.
2007-04-23 07:04:30 +00:00
skrll
51fbac1d39 Spoke too soon for hppa on yamt-idlelwp - the SYSCALLGATE issues remain. 2007-04-23 06:16:13 +00:00
dyoung
7ff356f18d Free route cache after detaching an etherip(4) instance. 2007-04-23 05:05:03 +00:00
dyoung
c89841d199 Add ATADEBUG so that a person can patch atadebug without having to
recompile the kernel.
2007-04-23 04:55:07 +00:00
christos
92ae584013 avoid zerodivide. 2007-04-23 00:13:14 +00:00
macallan
074456ba26 build sunffb and xf8_32wid on sparc 2007-04-22 23:42:38 +00:00
pooka
8689b1a6b2 Now that puffs_park is allocated from the heap and actually freed
by the userdead routine, don't do a TAILQ_FOREACH but rather an
honest for loop.
2007-04-22 21:52:37 +00:00
christos
30921e7925 fix typo. 2007-04-22 20:06:07 +00:00
pooka
0809789ff9 Use PUFFS_KFLAG_WTCACHE to avoid the need to do a sync(8) on the
client host to get all the data onto the server.
2007-04-22 20:03:26 +00:00
christos
08cd17ec8b Disable processing of routing header type 0 packets since they can be used
of DoS attacks. Provide a sysctl to re-enable them (net.inet6.ip6.rht0).

Information from:
	http://www.secdev.org/conf/IPv6_RH_security-csw07.pdf
2007-04-22 19:47:41 +00:00
dyoung
1a779e29db Delete noisy diagnostic printf. 2007-04-22 19:26:25 +00:00
pooka
6770f9f87e Issue close to the file server asynchronously. We're not interested
in the return value.
2007-04-22 18:50:28 +00:00
dsl
2ad47f228f I'm not sure why I decided that cwdinit() shouldn't copy cwd_edir.
Since this is called in fork() it does rather need to give the child
process the parent's emulation root.
This means that (for example) an emulated shell will, by default, run
programs from the emulation root.
2007-04-22 18:41:49 +00:00
dsl
b2f88bd6f4 Add missing name and date 2007-04-22 18:29:22 +00:00
pooka
436cfd0df4 Alter the strategy for reading/writing a bit. First of all, use
PUFFS_KFLAG_WTCACHE.  Second, create separate fids for reading and
writing.  If opening for read, open a read-only fid and for write
a write-only fid; use these for reading and writing.  When the
open-count for a node drops to zero, clunk both.  This avoids hitting
the fid limit when accessing large directory hierarchies.

Two problems remain:
* does not take credentials into account, although we can only mount
  the remote 9P file server with one set of credentials, so not a
  huge worry
* doesn't work for the open/mmap/close/access_memory_window case, but
  that will require some further kernel changes
2007-04-22 18:10:48 +00:00
pooka
2878c03588 mount with write-through page cache if command line -t is given 2007-04-22 18:03:18 +00:00
pooka
9601d4d304 use more accurate flag masking 2007-04-22 18:02:44 +00:00
pooka
bc38632c58 define PUFFS_KFLAG_WTCACHE, which makes the page cache write-through 2007-04-22 18:02:05 +00:00
christos
a29785b911 mention new xargs 2007-04-22 15:23:47 +00:00
dsl
d0b9f67395 Delete a diagnostic printf and some unused 'stack gap' initialisation. 2007-04-22 14:10:30 +00:00
xtraeme
df40909241 rtcache_clear is defined as static void in route.c, but it's used
in netinet/in_route.c. Move the prototype into route.h to fix
the build.
2007-04-22 13:05:21 +00:00
yamt
1e244571b1 correct a section number. 2007-04-22 11:27:25 +00:00
yamt
8ad48713da correct function names. 2007-04-22 11:23:29 +00:00
dsl
313aae0af3 Actually report an error when sys__stat30() fails. 2007-04-22 10:54:43 +00:00
dsl
01dcedbe60 Add info on the SYSCALL_STATS and SYSCALL_TIMES options 2007-04-22 10:43:10 +00:00
plunky
e05c6c8d1e add xref for btuart(4) 2007-04-22 10:07:43 +00:00
dyoung
f9fbe1e642 Mention cmos(4). 2007-04-22 09:16:37 +00:00
dsl
c8da32a6c7 Add note about killing of CHECK_ALT_xxx and emul_find(). 2007-04-22 08:39:08 +00:00
dsl
95864e3e38 4.99.18 for changes to namei() and emulation roots 2007-04-22 08:34:48 +00:00
dsl
b8fbaf8c4b Change the way that emulations locate files within the emulation root to
avoid having to allocate space in the 'stackgap'
  - which is very LWP unfriendly.
The additional code for non-emulation namei() is trivial, the reduction for
  the emulations is massive.
The vnode for a processes emulation root is saved in the cwdi structure
  during process exec.
If the emulation root the TRYEMULROOT flag are set, namei() will do an initial
  search for absolute pathnames in the emulation root, if that fails it will
  retry from the normal root.
".." at the emulation root will always go to the real root, even in the middle
  of paths and when expanding symlinks.
Absolute symlinks found using absolute paths in the emulation root will be
  relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links
  inside the emulation root don't need changing).
If the root of the emulation would be returned (for an emulation lookup), then
  the real root is returned instead (matching the behaviour of emul_lookup,
  but being a cheap comparison here) so that programs that scan "../.."
  looking for the root dircetory don't loop forever.
The target for symbolic links is no longer mangled (it used to get the
  CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended).
CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding
  TRYEMULROOT to the flags to NDINIT().
A lot of the emulation system call stubs could now be deleted.
2007-04-22 08:29:55 +00:00
ragge
98e922db67 The alloca() arg type check is broken (cpp do not do string comparisions)
so make it marginally less broken so that it works with other compilers
than gcc.
Probably the check can be removed, I doubt anyone will try to use gcc1
anymore.
2007-04-22 08:21:50 +00:00
dyoung
1c9313a294 In in_rtflushall(), clear the route caches using rtcache_clear()
instead of rtcache_free().  It is not desirable to clear the cached
destination as well as the route, however, rtcache_free() will
eventually release all resources held by the cache, including the
destination.

Add some additional diagnostic assertions.
2007-04-22 06:01:57 +00:00
thorpej
6a3c5a3b1c Update thorpej-atomic. 2007-04-22 05:15:13 +00:00
mouse
2609539fc5 Per PR 36185, OKed by martin@ 2007-04-22 02:09:02 +00:00
plunky
a5eb343769 add compat_darwin(8) to build 2007-04-21 18:41:49 +00:00
pooka
4756a351eb note mount_9p 2007-04-21 18:19:27 +00:00
yamt
58f7ebf59b sync with the code. 2007-04-21 17:52:09 +00:00
kiyohara
29417afebc firewire.c sync to Rev.1.86 for FreeBSD.
firewirereg.h sync to Rev.1.41 for FreeBSD.
fwcrom.c sync to Rev.1.14 for FreeBSD.
fwdev.c sync to Rev.1.49 for FreeBSD.
fwmem.c sync to Rev.1.32 for FreeBSD.
fwohci.c sync to Rev.1.86 for FreeBSD.
fwohcivar.h sync to Rev.1.15 for FreeBSD.
if_fwip.c sync to Rev.1.14 for FreeBSD.
if_fwipvar.h sync to Rev.1.4 for FreeBSD.
sbp.c sync to Rev.1.89 for FreeBSD.
2007-04-21 15:27:43 +00:00
tron
01f7150efa The "routed" and "route6d" scripts must be run early during system startup
because they are part of the network initialization. Use similar
dependences as the "rtsold" script.

This should fix PR misc/36171.
2007-04-21 15:20:07 +00:00
pooka
5bed4b9c62 add mount_9p 2007-04-21 14:28:34 +00:00
pooka
46853cdc64 descend into mount_9p 2007-04-21 14:23:10 +00:00
pooka
e73a712f80 mount_9p: mount a file server using the Plan9 file sharing protocol
Works, but lots of little things to nibble on:
* fix permissions to work better
* limit the amount of open files required
* do constant folding with psshfs code
* support authentication
etcetc.
2007-04-21 14:21:42 +00:00
dsl
caf05d897b Add myself (finally). 2007-04-21 13:00:46 +00:00