Source-Changes-HG archive

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

[src/trunk]: src/etc/rc.d We don't need to require the presence of /etc/zfs/z...



details:   https://anonhg.NetBSD.org/src/rev/57fe6232d0fb
branches:  trunk
changeset: 1005439:57fe6232d0fb
user:      sevan <sevan%NetBSD.org@localhost>
date:      Sun Dec 08 00:58:16 2019 +0000

description:
We don't need to require the presence of /etc/zfs/zpool.cache to unmount &
unload the module, just like for the start target.

diffstat:

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

diffs (20 lines):

diff -r 6baf41af0ccd -r 57fe6232d0fb etc/rc.d/zfs
--- a/etc/rc.d/zfs      Sun Dec 08 00:12:20 2019 +0000
+++ b/etc/rc.d/zfs      Sun Dec 08 00:58:16 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: zfs,v 1.3 2019/12/04 16:46:50 jmcneill Exp $
+# $NetBSD: zfs,v 1.4 2019/12/08 00:58:16 sevan Exp $
 #
 
 # PROVIDE: zfs
@@ -28,7 +28,7 @@
 
 zfs_stop()
 {
-       if [ -x /sbin/zfs -a -f /etc/zfs/zpool.cache ]; then
+       if [ -x /sbin/zfs ]; then
                zfs unmount -a
                modunload zfs
        fi



Home | Main Index | Thread Index | Old Index