[pve-devel] [PATCH qemu-server 01/13] blockdev: cmdline: add blockdev syntax support
DERUMIER, Alexandre
alexandre.derumier at groupe-cyllene.com
Wed Jun 11 08:37:14 CEST 2025
>>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.
More information about the pve-devel
mailing list