--- Begin Message ---
>>Also, while the use case here shouldn't be cryptographically
>>sensitive,
>>you never know, so I'll just use a different hash function than sha1.
>>I'll cut off the result from that hash to 30 hex digits. Then we
>>still
>>have one letter for the prefix of the node name.
so, maybe something like :
$digest = substr(sha256_hex("${volname}+${snap}"),0,30);
?
I still unsure how to handle same volume multiple time (if we really
want it). I was thinking to use the deviceid in the name (virtio0,..),
but it don't work when you unplug/replug to a deviceid.
Maybe some kind of slot number like fabian have suggested, but I think
it'll need some kind of lookup.
or maybe, if we want same volume multiple volume, we just keep
autogenerated qemu blockdev for this specific case, as anyway, we can't
do snapshot, unplug, or other dynamic features.
--- End Message ---
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel