• NeilBrown's avatar
    NFSDv4: use export cache flushtime for changeid on V4ROOT objects. · b8800921
    NeilBrown authored
    If you change the set of filesystems that are exported, then
    the contents of various directories in the NFSv4 pseudo-root
    is likely to change.  However the change-id of those
    directories is currently tied to the underlying directory,
    so the client may not see the changes in a timely fashion.
    
    This patch changes the change-id number to be derived from the
    "flush_time" of the export cache.  Whenever any changes are
    made to the set of exported filesystems, this flush_time is
    updated.  The result is that clients see changes to the set
    of exported filesystems much more quickly, often immediately.
    Signed-off-by: default avatarNeilBrown <neilb@suse.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    b8800921
nfs4xdr.c 115 KB