Register .sync_fs handler
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 19:03:42 +0000 (12:03 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 15 Mar 2011 20:33:29 +0000 (13:33 -0700)
commit03f9ba9d990efb911026ebee0902671915db01a3
tree00fd8410150d211ebf99fe5ccec8d7effc3a1d92
parent3aff775555a40fe3e5193f1309ba6e80312be5ff
Register .sync_fs handler

Register the missing .sync_fs handler.  This is a noop in most cases
because the usual requirement is that sync just be initiated.  As part
of the DMU's normal transaction processing txgs will be frequently
synced.  However, when the 'wait' flag is set the requirement is that
.sync_fs must not return until the data is safe on disk.  With the
addition of the .sync_fs handler this is now properly implemented.
include/sys/zfs_znode.h
module/zfs/zfs_vfsops.c
module/zfs/zpl_super.c