]> arthur.barton.de Git - ax-linux.git/commitdiff
btrfs-mksnapshot: Allow much more characters in subvolume names
authorAlexander Barton <alex@barton.de>
Fri, 26 Dec 2014 23:54:44 +0000 (00:54 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 26 Dec 2014 23:54:44 +0000 (00:54 +0100)
btrfs/mksnapshot/btrfs-mksnapshot

index f380fef5dbfb58d5608876860f32c43cc94b2882..f173cbfa5e3055787a10e94a4691f510913402cc 100755 (executable)
@@ -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