From: Dobrica Pavlinusic Date: Thu, 26 Jun 2014 11:52:53 +0000 (+0200) Subject: fix adopt script X-Git-Url: http://git.rot13.org/?p=ganeti-extstorage-zfs;a=commitdiff_plain;h=a7dcb8c5451d92fc3224f65aba53749b59c17a7b fix adopt script --- diff --git a/bin/adopt b/bin/adopt index 490464a..7de0f50 100755 --- a/bin/adopt +++ b/bin/adopt @@ -1,7 +1,5 @@ - #!/bin/sh . /usr/share/ganeti/extstorage/zfs/defaults.sh -./bin/snap | iselect -p 2 -a -n 'adopt snapshot' | awk '{ print $1 }' | xargs -i sh -cx \ -'zfs clone {} '$EXTP_ZFS'/adopt && zfs set ganeti:originstname=`zfs get ganeti:originstname -o value -p -H {}`+adopt '$EXTP_ZFS'/adopt' +./bin/snap | iselect -p 2 -a -n 'adopt snapshot' | awk '{ print $1 }' | xargs -i sh -cx 'zfs clone {} '$EXTP_ZFS'/adopt && zfs set ganeti:originstname=`zfs get ganeti:originstname -o value -p -H {}`+adopt '$EXTP_ZFS'/adopt'