7de0f50b04b8efac8614b54fdd668c65587c6308
[ganeti-extstorage-zfs] / bin / adopt
1 #!/bin/sh
2
3 . /usr/share/ganeti/extstorage/zfs/defaults.sh
4
5 ./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'