]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfsidmap: Purge the keyring when its full.
authorSteve Dickson <steved@redhat.com>
Thu, 12 Jan 2012 20:09:49 +0000 (15:09 -0500)
committerSteve Dickson <steved@redhat.com>
Mon, 16 Jan 2012 19:30:19 +0000 (14:30 -0500)
When a key can not be added to a keyring because
the keyring is full or there is no memory for
the playload, keyctl_instantiate() will fail
and set the errno to -EDQUOT, -ENFILE or
-ENOMEM

When this happens, purge the keyring to
free things up and then try to re-add
the key.

Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found