1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/storages/api
catborise 470cc9860e fix(api): a volume's size is GiB to create and bytes to read, each documented
One serializer created volumes and read them: size was GiB in a request
and bytes in an answer, the same field in the schema. A client that sent
back a size it read asked for a volume 2**30 times as large. A new
volume is CreateVolumeSerializer (size in GiB); a volume read is
VolumeSerializer (allocation and size in bytes), and the schema says so,
as for the pools' size and free space.
2026-11-07 13:29:46 +03:00
..
serializers.py fix(api): a volume's size is GiB to create and bytes to read, each documented 2026-11-07 13:29:46 +03:00
viewsets.py fix(api): a volume's size is GiB to create and bytes to read, each documented 2026-11-07 13:29:46 +03:00