nfsd: pass info about the legacy recoverydir in environment variables
authorJeff Layton <jlayton@redhat.com>
Mon, 12 Nov 2012 20:00:50 +0000 (15:00 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 12 Nov 2012 23:55:10 +0000 (18:55 -0500)
commitf3aa7e24c91ee3fd387150c2c5a9934b09f44ec5
tree9225eeb1ab4c1fa1282fdf73857f969ea3ea7594
parent2d77bf0a55d64559adb2d48a37bc7e876d6adc11
nfsd: pass info about the legacy recoverydir in environment variables

The usermodehelper upcall program can then decide to use this info as
a (one-way) transition mechanism to the new scheme. When a "check"
upcall occurs and the client doesn't exist in the database, we can
look to see whether the directory exists. If it does, then we'd add
the client to the database, remove the legacy recdir, and return
success to the kernel to allow the recovery to proceed.

For gracedone, we simply pass the v4recovery "topdir" so that the
upcall can clean it out prior to returning to the kernel.

A module parm is also added to disable the legacy conversion if
the admin chooses.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4recover.c