manila-test-image/server-files/usr/bin/manila-pre-extend
Ben Swartzlander ec4efbe1bb Add shell scripts for use by nextgen generic driver
Change-Id: I96c10740f299ddc4bccdd7f538cf1417c8a09ea2
2017-10-26 18:14:44 +00:00

11 lines
152 B
Bash
Executable File

#!/bin/sh -e
# manila-pre-extend <cookie>
NUM=$1
UUID=$(cat /metadata/$NUM/UUID)
sed "/$UUID/d" -i /etc/fstab
MNT_PATH=/shares/$NUM
umount $MNT_PATH