peter
7d519e2203
Make sure we go a nfs_fsinfo() in get/putpages before calling
...
readrpc/writerpc, since they assume it's already been done. This could
break if the first read/write access to a nfs filesystem was an exec() or
mmap() instead of a read(), write() syscall. (or statfs()).
nfs_getpages() could return an errno (EOPNOTSUPP) instead of a VM_PAGER_*
return code. Some layout tweaks for the get/putpages code.
1998-06-01 11:32:53 +00:00
peter
b1ce849a05
Fix post-test pre-commit cleanup typo.
1998-06-01 11:07:16 +00:00
peter
d2ca298269
readlink() returns EINVAL rather than EPERM if called on a non-symlink.
1998-06-01 10:59:23 +00:00
peter
c0e6bda9ea
Preset the maximum file size before we get to nfs_fsinfo(), based on
...
an (over?) conservative assumption about what the client can store in it's
buffer cache using a signed 32-bit 512-byte block number index. Otherwise
it's possible for some file access when maxfilesize = 0 (eg: /usr is nfs
mounted and doing an execve())
Pointed out by: bde
XXX It might make sense to do a preemptive nfs_fsinfo() call at mount time.
1998-06-01 10:01:31 +00:00
amurai
e9e82fc544
Trim a domain part for wtmp as same as showed by "netstat -r".
...
Here is a some example for avoiding a confusion.
It asssumes a logged host domain is "spec.co.jp". All
example is longer than UT_HOSTNAMELEN value.
1) turbo.tama.spec.co.jp: 192.19.0.2 -> trubo.tama
2) turbo.tama.foo.co.jp : 192.19.0.2 -> 192.19.0.2
3) specgw.spec.co.jp : 202.32.13.1 -> specgw
Submitted by: Atsushi Murai <amurai@spec.co.jp>
1998-06-01 08:47:04 +00:00
peter
682c401d51
Remove bogus #defines and redefintions for KERNEL, mount, nfs_init, the
...
beastie builds just fine without them and gets less warnings.
1998-06-01 07:36:20 +00:00
peter
5923055e9d
Hide more kernel stuff from userland. This stops nethostaddr etc being
...
wanted by mount_nfs.c.
1998-06-01 07:23:26 +00:00
gibbs
30c207b3a3
Add sctargattach that initializes the bufq data structure.
1998-06-01 03:44:56 +00:00
jb
7ed9f54ed8
I shouldn't do things early in the morning.
...
I shouldn't do things early in the morning.
[...]
I shouldn't do things early in the morning.
1998-06-01 02:14:34 +00:00
jb
3471037447
send and recv are wrappered in libc, so they shouldn't appear here.
1998-06-01 02:12:15 +00:00
jb
d2ff0eca37
Remove some syscalls that should have been renamed (libc_r doesn't need
...
to wrapper them) and add a couple that should have been there.
1998-05-31 23:53:50 +00:00
jb
fd7b156bcf
Add some missing syscall wrappers.
1998-05-31 23:48:30 +00:00
jb
6300fc7538
Remove some stale code.
...
Pointed out by: Amancio
1998-05-31 23:47:06 +00:00
jb
1108c05c3a
Don't restart a syscall when a SIGCHLD is received by a thread waiting
...
on a child process.
1998-05-31 23:46:01 +00:00
steve
f356ebeb4b
Clarify the example a bit.
...
PR: 6801
Reviewed by: David Kelly <dkelly@hiwaay.net>
1998-05-31 22:43:57 +00:00
steve
829948edd9
Make this ${.OBJDIR} and ${.CURDIR} aware.
...
PR: 2565
1998-05-31 22:40:49 +00:00
steve
f37d064a38
Allow this to include from C++ programs.
...
PR: 2382
Submitted by: Peter Jeremy <perer.jeremy@alcatel.com.au>
1998-05-31 20:12:06 +00:00
peter
f74a201183
For the on-the-wire protocol, u_long -> u_int32_t; long -> int32_t;
...
int -> int32_t; u_short -> u_int16_t. Also, use mode_t instead of u_short
for storing modes (mode_t is a u_int16_t).
Obtained from: NetBSD
1998-05-31 20:09:01 +00:00
peter
692d47eec9
Support 'mount -u' remounts. This may require disconnecting and rebinding
...
the socket. Certain mode changes are not allowed.
Obtained from: NetBSD
1998-05-31 19:49:31 +00:00
peter
f7131f63ee
Cut-n-paste glitch
1998-05-31 19:43:34 +00:00
peter
ff45fa255d
xdr encode -1 properly.
...
Obtained from: NetBSD
1998-05-31 19:29:28 +00:00
peter
2987193b30
Fully fill in nfsv2 write rpc requests rather than leaving garbage.
...
Obtained from: NetBSD
1998-05-31 19:28:15 +00:00
peter
9a4322a2d0
Don't silently fail to set file flags.
...
Obtained from: NetBSD
1998-05-31 19:24:19 +00:00
peter
c531dc87c6
Don't blindly accept the server's preferences if they are too small.
...
Obtained from: NetBSD
1998-05-31 19:20:44 +00:00
peter
d46a21d4ce
Prototype support for selectively allowing non-reserved ports on a per
...
export basis. Needs userland support yet.
Obtained from: NetBSD
1998-05-31 19:16:08 +00:00
peter
f7e39af2b6
Hide whiteouts from NFS, since the protocol doesn't support them.
...
Obtained from: NetBSD
1998-05-31 19:10:52 +00:00
peter
09ad045909
NetBSD has a comment that Solaris 2.5 doesn't do verifiers correctly,
...
we have weakened this test already for Digital Unix, so it may be enough
for Solaris. It needs to be checked again.
Obtained from: NetBSD
1998-05-31 19:07:47 +00:00
peter
8eceafffb2
Don't pass a second copy of the uid/gid in with the v2/v3 sattr structures,
...
it just makes more work. We pass a copy of the uid/gid with the
credentials. (although, this may need to be revisited if a non AUTHUNIX
authentication method (such as NFSKERB) ever gets implemented).
Obtained from: NetBSD
1998-05-31 19:00:19 +00:00
peter
434d53c8c0
Use the new SB_UPCALL flag,
...
Obtained from: NetBSD (but I changed the flag clear order in case).
1998-05-31 18:46:06 +00:00
peter
839822c9ad
Let the sowwakeup macro decide when to call sowakeup rather than have
...
tcp "know" about it. A pending upcall would be missed, eg: used by NFS.
Obtained from: NetBSD
1998-05-31 18:42:49 +00:00
peter
0f0f042f22
Have the wakeup routine do the upcall if needed.
...
Obtained from: NetBSD
1998-05-31 18:38:43 +00:00
peter
28d39a9db5
Have the sorwakeup and sowwakeup check the upcall flags.
...
Obtained from: NetBSD
1998-05-31 18:37:22 +00:00
peter
f7f311c40b
NFS_SMALLFH is defined in nfsproto.h, not sys/mount.h
...
Obtained from: NetBSD
1998-05-31 18:32:23 +00:00
peter
624a676561
Don't let the user try "rmdir ."
...
Obtained from: NetBSD
1998-05-31 18:30:42 +00:00
peter
cc573f4f48
Don't let the user try and unlink() a directory on a NFS server.
...
Obtained from: NetBSD
1998-05-31 18:28:45 +00:00
peter
6bcfa0ac79
When a write rpc returns an error, break the loop.
...
Obtained from: NetBSD
1998-05-31 18:27:07 +00:00
peter
695d7683f9
Don't leak an mbuf when a write rpc returns zero bytes written.
...
Obtained from: NetBSD
1998-05-31 18:25:32 +00:00
peter
5c3c04f77a
#ifdef a diagnostic printf
...
Obtained from: NetBSD
1998-05-31 18:23:24 +00:00
peter
c16cfc54ff
Don't try and free mrep twice on some error conditions.
...
Obtained from: NetBSD
1998-05-31 18:19:43 +00:00
peter
5223619fcd
#ifdef a diagnostic panic, plus another missed costmetic change.
...
Obtained from: NetBSD
1998-05-31 18:11:03 +00:00
peter
e6c2fb9a1e
We have gained 2 more errno's, add them to the NFSv2 mapping table.
1998-05-31 18:09:18 +00:00
peter
63de139aff
Missed a cosmetic change that the other BSD's have.
1998-05-31 18:08:09 +00:00
peter
2929d04ecf
oops, nfs_msg() is called from client code too.
1998-05-31 18:06:07 +00:00
peter
a6a122d71b
When we can't reconnect a socket, don't forget to unlock before retrying
...
or we can deadlock.
Obtained from: NetBSD
1998-05-31 18:02:56 +00:00
peter
76064558f0
Don't log zero length reads, this can happen during normal operation.
...
Obtained from: NetBSD
1998-05-31 18:00:46 +00:00
peter
4183d70dd3
Consider for readdir chunk sizes when tuning socket buffer reservations.
...
Obtained from: NetBSD
1998-05-31 17:57:43 +00:00
peter
db9cb16b7c
Refuse READDIR / READDIRPLUS rpc's for non-directories
...
Obtained from: NetBSD
1998-05-31 17:54:18 +00:00
peter
353bcc0c75
Some const's
...
Obtained from: NetBSD
1998-05-31 17:48:07 +00:00
peter
cbaa5d2256
NFS Jumbo commit part 1. Cosmetic and structural changes only. The aim
...
of this part of commits is to minimize unnecessary differences between
the other NFS's of similar origin. Yes, there are gratuitous changes here
that the style folks won't like, but it makes the catch-up less difficult.
1998-05-31 17:27:58 +00:00
des
d74a70b214
Add a FILES section which references /etc/group
...
Suggested by: Masafumi NAKANE <max@wide.ad.jp>
1998-05-31 17:24:25 +00:00