From: Alexander Barton Date: Fri, 26 Dec 2014 23:54:44 +0000 (+0100) Subject: btrfs-mksnapshot: Allow much more characters in subvolume names X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-linux.git;a=commitdiff_plain;h=8a95a29f8fbdaf1458a46988980337b4cd53227b btrfs-mksnapshot: Allow much more characters in subvolume names --- diff --git a/btrfs/mksnapshot/btrfs-mksnapshot b/btrfs/mksnapshot/btrfs-mksnapshot index f380fef..f173cbf 100755 --- a/btrfs/mksnapshot/btrfs-mksnapshot +++ b/btrfs/mksnapshot/btrfs-mksnapshot @@ -69,7 +69,7 @@ fi VOLUME_NAME=`grep " btrfs " /etc/fstab \ | grep "subvol=" \ | grep " $VOLUME_PATH " \ - | sed -r 's|.*subvol=([[:alnum:]]*).*|\1|'` + | sed -r 's|.*subvol=([^, \t]*).*|\1|'` if [ -z "$VOLUME_NAME" -a "$VOLUME_PATH" = "/" ]; then VOLUME_NAME=`btrfs subvolume get-default / | cut -d' ' -f9` fi