]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd4: enforce rd_dircount
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 21 Mar 2014 01:20:26 +0000 (21:20 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 May 2014 18:52:57 +0000 (14:52 -0400)
commit1eeb0548a6944f1be111d8fc1fbad662cba7dd00
tree7e322819257d5da12768891d25d2b2e93bdc7c0f
parent842a8bbb3324b9b1cb004091e7935bde8365b357
nfsd4: enforce rd_dircount

As long as we're here, let's enforce the protocol's limit on the number
of directory entries to return in a readdir.

I don't think anyone's ever noticed our lack of enforcement, but maybe
there's more of a chance they will now that we allow larger readdirs.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c