dholland
481fee3913
description:
...
Don't assign ni_vp until namei_oneroot() returns.
2011-04-11 02:18:07 +00:00
dholland
1101db58b6
description:
...
Make sure namei_oneroot leaves ni_dvp and ni_vp NULL on error.
2011-04-11 02:17:54 +00:00
dholland
40026ffa1a
description:
...
Cosmetic: names of scratch vnodes.
2011-04-11 02:17:41 +00:00
dholland
2c90c42da2
description:
...
Remove state->lookup_alldone. Don't need it any more; it's set
precisely when succeeding with a null result vnode and it now works to
just check for that case.
(also, when "error" is already 0 we don't need to assign another 0 to
it, even as a precaution.)
2011-04-11 02:17:28 +00:00
dholland
92d2421f6e
description:
...
Pass foundobj to namei_follow() instead of fishing in the global state.
2011-04-11 02:17:14 +00:00
dholland
9a0bbd245c
description:
...
Fix lookup_for_nfsd_index() -- it wasn't locking the directory it was
searching. I'm not sure if this is something I introduced or if it's
just been wrong for ages; the code path is used only for serving
index.html in WebNFS and probably just ought to be removed.
2011-04-11 02:17:01 +00:00
dholland
6207f76d3e
description:
...
Ensure we don't leak stale pointers out in ni_dvp or ni_vp on error return.
2011-04-11 02:16:27 +00:00
dholland
77d9b86dde
description:
...
In the test where we check if searchdir is NULL and fail if we needed
to return ni_dvp, also check if searchdir is on a different volume
from foundobj. I believe the NULL test was meant to encompass this
situation, but it definitely doesn't in some cases related to
emulroots. This appears to be a bug, and I'm pretty sure it's not one
I introduced.
(The search directory and result are on different volumes if we
crossed a mount point.)
2011-04-11 02:16:07 +00:00
dholland
59d384dbad
description:
...
Don't assign ni_dvp until the end of namei_oneroot().
2011-04-11 02:15:54 +00:00
dholland
14eb7d8f01
description:
...
Improve previous by manipulating ni_dvp more intelligently.
2011-04-11 02:15:38 +00:00
dholland
b2a0943b93
description:
...
Don't bother conditionally doing vput(ndp->ni_dvp) where it's always null.
(and don't bother testing for null where it never is)
2011-04-11 02:15:21 +00:00
dholland
2261559e9e
description:
...
In lookup_once(), assign newsearchdir_ret when searchdir is updated,
instead of upon return.
2011-04-11 02:15:09 +00:00
dholland
9a8d924b56
description:
...
vref new vnodes before vrele'ing old vnodes, just in case.
2011-04-11 02:14:57 +00:00
dholland
63328123b6
description:
...
state->namei_startdir has no further reason to exist.
2011-04-11 02:13:22 +00:00
dholland
dec6f9dee3
description:
...
namei_end() doesn't really do anything useful at this point, so get
rid of it.
2011-04-11 02:13:10 +00:00
dholland
32feec0843
description:
...
As ndp->ni_dvp is also assigned to the updated search dir on every
return from lookup_once(), pass it back instead and update ni_dvp in
the caller.
2011-04-11 02:12:58 +00:00
dholland
8afbcdea2f
description:
...
lookup_once() on success always sets ni_vp to the same thing as the
returned foundobj, so do that in the caller instead.
2011-04-11 02:12:42 +00:00
dholland
8edb736bad
description:
...
In lookup_once(), move the assignments to ni_dvp and ni_vp to just
before function return.
2011-04-11 02:11:32 +00:00
sjg
b446ef338f
Add :localtime and :gmtime which use value as format string for strftime.
2011-04-11 01:44:15 +00:00
dholland
e10d3f7144
Use locals/args instead of state->dp in namei_once(). Remove
...
state->dp.
2011-04-11 01:40:13 +00:00
dholland
bc3fd6e03b
Split the variable that replaced state->dp into two, to reflect its
...
actual usage.
2011-04-11 01:40:01 +00:00
dholland
a3df1e234e
In namei_oneroot(), use a local in place of state->dp.
...
state->dp is now only used by/in lookup_once().
2011-04-11 01:39:46 +00:00
dholland
2a77039908
Improve namei_atsymlink to take the found object as an argument
...
instead of fetching it from the global state.
2011-04-11 01:39:28 +00:00
dholland
0f3ea0df8e
Move unrelated error handling logic out of namei_parsepath.
2011-04-11 01:39:13 +00:00
dholland
33debd39c2
Move assignment of search directory from ni_dvp outside namei_follow.
2011-04-11 01:38:47 +00:00
dholland
f47ba9711d
Improve namei_follow to handle the search dir as an argument instead
...
of in the global state.
2011-04-11 01:38:24 +00:00
dholland
9147816ce5
Improve namei_start to pass back its result instead of updating the
...
global state.
2011-04-11 01:38:10 +00:00
dholland
54d3dd621f
Simplify.
2011-04-11 01:37:43 +00:00
dholland
bea472a444
Fold do_lookup into namei.
2011-04-11 01:37:14 +00:00
dholland
eaad94e4e9
Split TRYEMULROOT handling into its own function.
2011-04-11 01:36:59 +00:00
dholland
bd6bd58186
Cut and paste and simplify code used by the other nfsd entry point, so
...
it won't get in the way.
2011-04-11 01:36:28 +00:00
dholland
7f3a76e260
Merge nfsd's cut&paste copy of namei with the master one.
2011-04-11 01:35:55 +00:00
dholland
8d22bcb871
More cleanup.
2011-04-11 01:35:00 +00:00
dholland
b01a92ff1d
5.99.49: you need a new nfsd module.
2011-04-11 01:33:46 +00:00
dholland
87f3ba8ed6
Clean up. Move some more code across from nfsd's private entry points.
2011-04-11 01:33:04 +00:00
wiz
a4af43db58
exec is on a higher plane of existence.
2011-04-11 00:21:45 +00:00
dholland
cdadb9ea2e
Fix obvious bug.
...
(note: this file still doesn't build on amd64)
2011-04-10 23:31:30 +00:00
pgoyette
4516c056be
Synchronize -N option name in Synopsis with that in the Description
2011-04-10 22:49:52 +00:00
dholland
e23caa73d0
Update this weekend's note on cleaning gcc: you need to clean binutils too.
2011-04-10 22:46:09 +00:00
joerg
c5c155b784
Add back a stylish new line.
2011-04-10 21:25:56 +00:00
joerg
31ba4e2954
Use ?: operator to determine when to add --sysroot. Unbreaks clang
...
bootstrap.
2011-04-10 21:03:17 +00:00
christos
2a672d40b3
Add:
...
usage: show proc [/a] [/p] address|pid
/a == argument is an address of any lwp
/p == argument is a pid [default]
From: Vladimir Kirillov proger at wilab dot org dot ua
2011-04-10 20:59:22 +00:00
christos
bee149d152
- amd64 support
...
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua
2011-04-10 20:39:42 +00:00
christos
7e80a5d1f8
something ate my /
2011-04-10 20:38:37 +00:00
christos
a640264e31
Merge db_trace for x86. From: Vladimir Kirillov proger at wilab dot org dot ua
2011-04-10 20:36:48 +00:00
joerg
29f33e6b4e
Add a generic note about GCC's error on changed variables and a specific
...
entry for the sysroot related changes breaking MKUPDATE.
2011-04-10 20:22:32 +00:00
joerg
c28ff146c9
For USETOOLS=yes, use the --sysroot support of the compiler to cut down
...
the number of hard-coded pathes and magic invocations.
2011-04-10 16:52:36 +00:00
joerg
63235c7b3d
Reduce difference between src/tools/gcc and src/gnu/usr.bin/gcc4
...
configuration. All but the target to helper programs should be the same.
Mark include directories as sysroot-relative.
2011-04-10 16:50:18 +00:00
joerg
6d711022e5
Don't install limits.h.
2011-04-10 16:48:51 +00:00
joerg
61ae1a1c52
Define _REENT. Extend CPPFLAGS.
2011-04-10 16:47:39 +00:00