FS_NAME=`grep " btrfs " /etc/fstab \
| grep "^LABEL=" \
| grep " $VOLUME_PATH " \
- | cut -d'"' -f2`
+ | cut -d'"' -f2 \
+ | cut -d'=' -f2- \
+ | cut -d' ' -f1`
if [ -z "$FS_NAME" ]; then
echo "$NAME: Failed to detect btrfs filesystem label for \"$VOLUME_PATH\"!"
exit 1