Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d This script just makes sure that the ZFS module loa...



details:   https://anonhg.NetBSD.org/src/rev/bab37297b865
branches:  trunk
changeset: 847072:bab37297b865
user:      sevan <sevan%NetBSD.org@localhost>
date:      Mon Dec 09 00:11:32 2019 +0000

description:
This script just makes sure that the ZFS module loads and unloads, mountall
script takes care of mounting filesystems.
Don't try to unmount all file systems before unloading the ZFS module, leave
that to the operator in preperation or the mountall script to take care
of. Module will of course fail to unload then if file systems are still
mounted.

diffstat:

 etc/rc.d/zfs |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r b906b123d55a -r bab37297b865 etc/rc.d/zfs
--- a/etc/rc.d/zfs      Sun Dec 08 23:49:16 2019 +0000
+++ b/etc/rc.d/zfs      Mon Dec 09 00:11:32 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: zfs,v 1.4 2019/12/08 00:58:16 sevan Exp $
+# $NetBSD: zfs,v 1.5 2019/12/09 00:11:32 sevan Exp $
 #
 
 # PROVIDE: zfs
@@ -29,7 +29,6 @@
 zfs_stop()
 {
        if [ -x /sbin/zfs ]; then
-               zfs unmount -a
                modunload zfs
        fi
        return 0;



Home | Main Index | Thread Index | Old Index