[pve-devel] ZFSPlugin snapshot question
Dietmar Maurer
dietmar at proxmox.com
Fri Aug 28 16:35:25 CEST 2015
> Yes, i guess so. It also has other problems, because not all storage type
> supports
> cloning from snapshots ...
> So it was an interesting idea, but does not really solve all problems :-/
To solve the problem for the ZFSPlugin, I think it may help to
introduce another storage API call to activate/deactivate snapshots:
sub activate_snapshot($cfs, $volid, $snapname);
sub deactivate_snapshot($cfs, $volid, $snapname);
Or simply extend the existing API and pass a 'snapname' parameter:
sub activate_volumes($cfg, $vollist, $exclusive, $snapname);
sub deactivate_volumes($cfg, $vollist, $snapname);
For the ZFSPoolPlugin, this can mount/umount snapshot
subvolumes (which are not mounted by default).
For the ZFSPlugin, this can create and activate a clone (or something similar)?
More information about the pve-devel
mailing list