Module Name: src
Committed By: haad
Date: Sun Oct 18 21:58:37 UTC 2009
Modified Files:
src/etc/rc.d: mountall
Log Message:
Add zfs volinit command, suggested by tnn@ this will initialize all zvols
defined in a system. So they can be mounted from fstab as regular block
devices.
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/etc/rc.d/mountall
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/mountall
diff -u src/etc/rc.d/mountall:1.7 src/etc/rc.d/mountall:1.8
--- src/etc/rc.d/mountall:1.7 Mon Oct 5 22:39:27 2009
+++ src/etc/rc.d/mountall Sun Oct 18 21:58:37 2009
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: mountall,v 1.7 2009/10/05 22:39:27 haad Exp $
+# $NetBSD: mountall,v 1.8 2009/10/18 21:58:37 haad Exp $
#
# REQUIRE: mountcritremote named ypbind
@@ -18,6 +18,8 @@
if [ -f /etc/zfs/zpool.cache ]; then
# Get ZFS module loaded (and thereby, zvols created).
zfs list > /dev/null 2>&1
+ # Initialize zvols so they can be mounted
+ zfs volinit
# Mount file systems noted in fstab.
mount -a
# Mount ZFS file systems.