Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Add zfs volinit command, suggested by tnn@ this wil...
details: https://anonhg.NetBSD.org/src/rev/9543ed4f2b5c
branches: trunk
changeset: 748269:9543ed4f2b5c
user: haad <haad%NetBSD.org@localhost>
date: Sun Oct 18 21:58:37 2009 +0000
description:
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.
diffstat:
etc/rc.d/mountall | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r f01739bb0130 -r 9543ed4f2b5c etc/rc.d/mountall
--- a/etc/rc.d/mountall Sun Oct 18 20:26:33 2009 +0000
+++ b/etc/rc.d/mountall Sun Oct 18 21:58:37 2009 +0000
@@ -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.
Home |
Main Index |
Thread Index |
Old Index