HomeFreeBSD

Implement .commit_metadata hook for NFS export

Description

Implement .commit_metadata hook for NFS export

In order to implement synchronous NFS metadata semantics ZFS
needs to provide the .commit_metadata hook. All it takes there
is to make sure changes are committed to ZIL. Fortunately
zfs_fsync() does just that, so simply calling it from
zpl_commit_metadata() does the trick.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #969

Details

Provenance
Cyril Plisko <cyril.plisko@mountall.com>Authored on Sep 16 2012, 6:03 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Oct 3 2012, 5:49 PM
Parents
rG23a61ccc1b89: zvol_probe should return NULL when the device isn't found.
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG393b44c71128: Implement .commit_metadata hook for NFS export (authored by Cyril Plisko <cyril.plisko@mountall.com>).Oct 3 2012, 5:49 PM