Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8548894 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: be forgiving in the absence of the recovery directory



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: default avatarLior <lior@tonian.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent aec39680
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;