RPC: fix rpc hang on large ios

Signed-off-by: Fred Isaman <iisaman@netapp.com>
SRVR: add [r|w]size attributes to root fs

Without this, the linux client ignores [r|w] size atributes on
child filesystems, instead using a default of 1024.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
XDR: Fix bug in xdrgen __repr__ generation

If an enum type is defined as opaque the generated __repr__ function raises
an exception trying to use the list as a key for a dict.get() lookup.

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
SRVR: use requested iomode on layoutget

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Fred Isaman <iisaman@netapp.com>
4.0 server tests: test 4.0 xid-based reply cache

The other replay tests all test the stateowner-based reply caching; we
need at least one test for the traditional xid-based cache.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: fix wait display in sub-second case

The delay doesn't have to be an integer.  Without this we display "0"
for any delay less than a second.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
todo
4.0 server tests: don't try to set mode on symlink

Unix tradition is not to allow setting mode on symlink, no point running
this test by default.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: failing on underspecified behavior

What's the argument that it's wrong to fail this test?

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: relax seqid requirement in new lockowner case

I can't see any justification in the spec for the requirement that the
server return bad_seqid in this case.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: don't run lock fairness tests by default

These are useful tests, but I don't want to warn by defaul about
something that isn't actually required of a server.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: testing downgrade on non-files is pointless

INVAL probably is the right response to an open downgrade of a non-file,
but this is a buggy client case, and I'm not convinced testing for this
has any value.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: allow server short reads

It's perfectly legal for the server to return fewer bytes.  And the
client is likely actually requesting more than the maximum io size in
this case.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: testing downgrade of non-files is pointless

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: fix error when stateid used on expired client

The error expected here is clearly wrong; OLD_STATEID is for stateid
that's no longer current, not for stateid from client that's expired.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: allow another error on use of unconfirmed client

Actually more errors would probably be OK here too.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: try two writes in a compound

Not checking the result other than to make sure it doesn't fail.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
nfsd4: don't run write delegation tests by default

It's legal for a server to not support write delegations, and I want
results from a default pynfs run to be clean.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: accept NO_GRACE on OPEN16

I can't see the justification for preferring one of these errors over
the other.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
4.0 server tests: LINK4a should allow SYMLINK error

In facat, the object in question is the current filehandle, so the
client should already know the object type--so INVAL might also be a
reasonable return.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>