6d13f1540c
- Bump portrevision PR: ports/150150 Submitted by: Janne Snabb <snabb _at_ epipe.com> Approved by: Graham Todd <gtodd _at_ bellanet.org> (maintainer)
30 lines
966 B
Text
30 lines
966 B
Text
--- 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
|