Skip to content

Commit

Permalink
nfsd4: be forgiving in the absence of the recovery directory
Browse files Browse the repository at this point in the history
If the recovery directory doesn't exist, then behavior after a reboot
will be suboptimal.  But it's unnecessarily harsh to then prevent the
nfsv4 server from working at all.  Instead just print a warning
(already done in nfsd4_init_recdir()) and soldier on.

Tested-by: Lior <lior@tonian.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jan 5, 2012
1 parent aec3968 commit b854889
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fs/nfsd/nfs4recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,11 @@ nfsd4_create_clid_dir(struct nfs4_client *clp)

dprintk("NFSD: nfsd4_create_clid_dir for \"%s\"\n", dname);

if (!rec_file || clp->cl_firststate)
if (clp->cl_firststate)
return 0;

clp->cl_firststate = 1;
if (!rec_file)
return -ENOENT;
status = nfs4_save_creds(&original_cred);
if (status < 0)
return status;
Expand Down

0 comments on commit b854889

Please sign in to comment.