Unmount and unconfigure in the reverse order that they were done. Fixes
problem with leaving a dangling snapshot configured.
This commit is contained in:
parent
57e3a030a7
commit
f5add44d28
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: t_fss.sh,v 1.3 2017/03/15 10:53:15 martin Exp $
|
# $NetBSD: t_fss.sh,v 1.4 2021/01/14 04:30:40 simonb Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
# Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -74,9 +74,9 @@ basic_body() {
|
||||||
|
|
||||||
basic_cleanup() {
|
basic_cleanup() {
|
||||||
# Unmount our temporary stuff
|
# Unmount our temporary stuff
|
||||||
umount ${vnd} || true
|
|
||||||
fssconfig -u fss0 || true
|
|
||||||
umount /dev/fss0 || true
|
umount /dev/fss0 || true
|
||||||
|
fssconfig -u fss0 || true
|
||||||
|
umount ${vnd} || true
|
||||||
vndconfig -u ${vnddev} || true
|
vndconfig -u ${vnddev} || true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue