diff options
author | Brian Behlendorf <[email protected]> | 2011-01-05 16:38:30 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2011-02-10 09:27:20 -0800 |
commit | acb53769403aa896b022129f1bdb3d845a4d0201 (patch) | |
tree | b5e6aabfda36694dd6f859c6bb33f5e87274323a /module/zfs | |
parent | cb28b3494e88e0e43c43588fccfa6526344b9a64 (diff) |
Disable Shutdown/Reboot
This support has been disable with HAVE_SHUTDOWN. We can support
this at some point by adding the needed reboot notifiers.
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zfs_vfsops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/module/zfs/zfs_vfsops.c b/module/zfs/zfs_vfsops.c index c138b6ffe..a602c5d62 100644 --- a/module/zfs/zfs_vfsops.c +++ b/module/zfs/zfs_vfsops.c @@ -66,7 +66,6 @@ #include "zfs_comutil.h" #ifdef HAVE_ZPL -extern int sys_shutdown; /*ARGSUSED*/ int @@ -89,14 +88,19 @@ zfs_sync(vfs_t *vfsp, short flag, cred_t *cr) ZFS_ENTER(zfsvfs); dp = dmu_objset_pool(zfsvfs->z_os); +#ifdef HAVE_SHUTDOWN /* * If the system is shutting down, then skip any * filesystems which may exist on a suspended pool. + * + * XXX: This can be implemented using the Linux reboot + * notifiers: {un}register_reboot_notifier(). */ if (sys_shutdown && spa_suspended(dp->dp_spa)) { ZFS_EXIT(zfsvfs); return (0); } +#endif /* HAVE_SHUTDOWN */ if (zfsvfs->z_log != NULL) zil_commit(zfsvfs->z_log, 0); |