blymn
4a065f3379
Clean up bogus whitespace
2006-05-28 13:23:08 +00:00
yamt
3ef3d785cc
nfs_request: use kauth_cred_free rather than kauth_cred_destroy.
2006-05-28 06:47:58 +00:00
yamt
16dbcd1c54
mountnfs: reject wrongly-sized filehandle for nfsv2.
2006-05-20 07:42:02 +00:00
yamt
eb04c18e83
nqsrv_getlease: call nfs_init() to fix NFSSERVER && !NFS case.
2006-05-20 07:40:56 +00:00
yamt
b245701ca1
- fix compilation problem for !NFSSERVER && NFS.
...
pointed by Tom Spindler on source-changes@.
- make nfs_srvdesc_pool static.
2006-05-19 13:53:11 +00:00
yamt
b861e24c71
- fix some leaks in nfsd, introduced by kauth changes.
...
- simplify code.
- add some assertions.
- wrap some long lines.
- remove an unnecessary ";".
2006-05-18 12:44:45 +00:00
yamt
635dba4477
- nfs_export_unmount: don't forget to free exports.
...
- rename clear_exports for consistency.
2006-05-18 10:07:34 +00:00
elad
fc9422c9d9
integrate kauth.
2006-05-14 21:31:52 +00:00
christos
c0fdc5190f
XXX: GCC uninitialized
2006-05-14 05:42:43 +00:00
mrg
084c052803
quell GCC 4.1 uninitialised variable warnings.
...
XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..
2006-05-10 21:53:14 +00:00
blymn
10df330c85
Prefix iostat structure elements with io_
2006-04-20 12:13:51 +00:00
christos
de6470e701
m_freem takes one arg.
2006-04-15 02:49:25 +00:00
christos
2fd9c5d744
s/mfree/m_freem/
2006-04-15 02:48:32 +00:00
dogcow
bbfbd3e91f
#if -> #ifdef
2006-04-15 02:46:39 +00:00
christos
f540054634
Coverity CID 735: Remove duplicate code.
2006-04-15 01:58:44 +00:00
christos
0b55b29a78
Coverity CID 734: Define NFS_TEST_HEAVY for testing nfsds, and use this to
...
ifdef out dead code. XXX: Why is this turned on by default?
2006-04-15 01:57:36 +00:00
christos
4ea21306a7
Coverity CID 736: Comment out dead code.
2006-04-15 01:54:46 +00:00
christos
0016be6042
Coverity CID 1175: Remove dead code.
2006-04-15 01:52:44 +00:00
christos
1ee078d67e
Coverity CID 744: Conditionally define out dead code (only if it is dead)
2006-04-15 01:51:47 +00:00
christos
35829d71d3
Coverity CID 1141: Add a KASSERT before deref.
2006-04-15 01:45:15 +00:00
christos
c3a65fd394
Coverity CID 1142: Add a KASSERT before deref.
2006-04-15 01:41:46 +00:00
christos
d008757117
Coverity CID 1143: Prevent NULL deref.
2006-04-15 01:39:15 +00:00
christos
09436af99e
Coverity CID 1144: Protect against NULL deref.
2006-04-15 01:37:46 +00:00
christos
6668c9c154
Coverity CID 1162: Prevent NULL deref.
2006-04-15 01:35:12 +00:00
christos
b31d7b8b49
Coverity CID 1165: Cannot have nfsiod without an lwp, so remove the superfluous
...
test.
2006-04-15 01:31:11 +00:00
christos
b2bd561652
Coverity CID 2445: Only set from_p if we succeed so that we free it on error.
2006-04-15 01:25:54 +00:00
christos
bd57687667
Don't leak mbufs on error.
2006-04-15 01:25:01 +00:00
christos
6555ff0ad3
From my posting of April 3 to tech-kern:
...
My understanding is that the CLRSIG() is supposed to clear the signal
that was sent to the syncer process to prevent it from being delivered
to the syncer process in case unmounting fails, so that the syncer process
does not die while the filesystem is still mounted. The typical scenario
is, the syncher process is tsleep()ing in the kernel, and waking up when
it needs to do work. If someone sends a signal to it, eg. kill -TERM
the mfs process, then the kernel will try to unmount the mfs filesystem
before delivering the signal to the process. If that unmount fails, then
we should not really kill the process because that will hang the mount.
So we call CLRSIG() to stop the signal from being delivered.
So the first call to issignal() will return the signal number that was
sent to the syncer process (unless someone malicious was able to send
a lower numbered signal between the time tsleep() returned and we called
issignal()... something that is not really easy to do). But you are
right, we should not be calling it many times as a side effect of this
macro.
Rewrite CLRSIG() clear all the signals and call issignal() the correct
number of times.
2006-04-15 01:16:40 +00:00
christos
881fbaa328
Coverity CID 2509: Initialize cache
2006-04-15 00:45:49 +00:00
christos
ff33272e7b
Coverity CID 2510-2514: Always initialize cache.
2006-04-15 00:44:18 +00:00
christos
4c9d749d77
Coverity CID 2515-2519: Initialize rexmit on error path.
2006-04-15 00:40:20 +00:00
christos
1099609bd0
Coverity CID 2520: rexmit can be uninitialized on error path.
2006-04-15 00:36:23 +00:00
blymn
3c0adb7d99
Make i/o statistics collection more generic, include tape drives and
...
nfs mounts in the set of devices that statistics will be reported on.
2006-04-14 13:09:05 +00:00
yamt
c5fcdd1719
some cleanups after the introduction of GOP_SIZE_MEM flag.
...
- remove GOP_SIZE_READ/GOP_SIZE_WRITE flags.
they have not been used since the change.
- ufs_balloc_range: remove code which has been no-op since the change.
thanks Konrad Schroder for explaining the original intention of the code.
- ffs_gop_size: don't extend past eof, in the case of GOP_SIZE_MEM.
otherwise genfs_getpages end up to allocate pages past eof unnecessarily.
2006-03-30 12:40:06 +00:00
martin
d6d75eaf5d
KASSERT that the returned file id length from VPTOFH is <= the
...
maximum allowed value (_VFS_MAXFIDSZ).
2006-03-27 20:20:45 +00:00
christos
c92b23ffa8
Don't use DEBUG, add a new DEBUG_NFS_BOOT_DHCP variable to provide more
...
information. Print more information about what fails.
2006-03-16 15:55:20 +00:00
yamt
6bf35dc8ec
bump NFS_MAXDGRAMDATA from 32k to 60k. (ie. near the protocol limit of udp.)
...
- it can help performance for some environments.
- administrators should be free to do silly things. :-)
2006-03-14 03:23:23 +00:00
rpaulo
5bb59eeab9
Back out revision 1.125 and 1.124. The code for checking if
...
slp->ns_reclen == 0, was already there since "Linux sometimes
generates 0-lenght records.".
Bad Rui...
2006-03-01 21:31:00 +00:00
rpaulo
52dc289cfd
In nfsrv_getstream(), ns_reclen will never be negative due to the
...
previous assignment (recmark & ~0x80000000).
Pointed out by Christos.
2006-03-01 19:38:29 +00:00
rpaulo
b948e12637
From FreeBSD SA-06:10
...
Correct a remote kernel panic when processing zero-length RPC records
via TCP.
2006-03-01 15:30:12 +00:00
yamt
ec5a93183a
merge yamt-uio_vmspace branch.
...
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
thorpej
58853410ae
Use device_class() instead of accessing dv_class directly.
2006-02-21 04:32:38 +00:00
yamt
dae53410a7
- tweak RUN_ONCE api to allow init_func returns an error.
...
- physio: handle failure of workqueue_create.
2006-01-16 21:45:38 +00:00
yamt
cabee93abb
nfs_doio_read: clear uio_resid when filling a hole.
2006-01-14 08:57:40 +00:00
yamt
24c6af7659
mountd_set_exports_list: check if VFS_VPTOFH actually works.
2006-01-05 12:21:00 +00:00
yamt
28b96a0b9d
ensure the export list is not changed during nfsd operations.
2006-01-05 11:22:56 +00:00
yamt
789fa21531
fix a deadlock due to a spl problem.
2006-01-03 22:25:48 +00:00
yamt
463bed6af1
de-__P.
2006-01-03 12:59:49 +00:00
yamt
dbf3dbe4b0
don't install nfs_var.h.
2006-01-03 12:47:51 +00:00
yamt
27dc8f3f48
move function prototypes from nfs.h to nfs_var.h.
2006-01-03 12:30:46 +00:00