• Chuck Lever's avatar
    NFS: Add nfs4_update_server · 32e62b7c
    Chuck Lever authored
    New function nfs4_update_server() moves an nfs_server to a different
    nfs_client.  This is done as part of migration recovery.
    
    Though it may be appealing to think of them as the same thing,
    migration recovery is not the same as following a referral.
    
    For a referral, the client has not descended into the file system
    yet: it has no nfs_server, no super block, no inodes or open state.
    It is enough to simply instantiate the nfs_server and super block,
    and perform a referral mount.
    
    For a migration, however, we have all of those things already, and
    they have to be moved to a different nfs_client.  No local namespace
    changes are needed here.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    32e62b7c
internal.h 19.7 KB