blob: fb2b13cc8bfba12a436ae3a3e8f4333bab260655 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- snapshot.orig 2009-12-08 20:14:13.000000000 +0000
+++ snapshot 2010-08-31 13:50:34.000000000 +0000
@@ -29,7 +29,9 @@
##
# make sure system tools are used first
-PATH="/bin:/usr/bin:/sbin:/usr/sbin:$PATH"
+PATH="/bin:/usr/bin:/sbin:/usr/sbin:%%PREFIX%%/sbin:$PATH"
+LC_ALL=C
+LANG=C
# option defaults
verbose=no
@@ -79,6 +81,7 @@
source_rc_confs; \
fi; \
. /etc/rc.subr; \
+ load_rc_config zfs; \
if checkyesno zfs_enable; then \
echo 'yes'; \
else \
@@ -491,7 +494,7 @@
echo "snapshot:ERROR: unable to create directory \"$mnt\"" 1>&2
exit 1
fi
- system mdconfig -a -t vnode -f $fs_dir/.snap/$fs_tag.$fs_gen -u $num
+ system mdconfig -a -t vnode -o readonly -f $fs_dir/.snap/$fs_tag.$fs_gen -u $num
if [ $? -ne 0 ]; then
echo "snapshot:ERROR: unable to attach \"$fs_dir/.snap/$fs_tag.$fs_gen\" to \"/dev/md$num\"" 1>&2
exit 1
|