wrapfs )
runcmd lsof $TMP_DIR
runcmd umount $TMP_DIR
- runcmd rmmod wrapfs
;;
bind )
runcmd umount $TMP_DIR
runcmd umount $LOWER_DIR
;;
wrapfs )
- runcmd lsof $LOWER_DIR
- runcmd umount $LOWER_DIR
runcmd lsof $SCRATCH_DIR
runcmd umount $SCRATCH_DIR
+ runcmd lsof $LOWER_DIR
+ runcmd umount $LOWER_DIR
esac
+if test $type == "wrapfs"; then
+ runcmd rmmod wrapfs
+fi
}
-dirs="$TMP_DIR $LOWER_DIR $SCRATCH_DIR"
+dirs="$TMP_DIR $SCRATCH_DIR $LOWER_DIR"
for d in $dirs; do
if cat /proc/mounts | grep $d; then
runcmd umount $d