]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcdf0ce268db9c4ea70b90c0bcc56088ead536665
tree9225eeb1ab4c1fa1282fdf73857f969ea3ea7594
parentd69c9e12fdee0b7d0aab1dda6f3bc780304a3b74
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