1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-04-01 20:05:19 +00:00

storage: conf: Correctly calculate exabyte unit

We were using 'Y' to mean exabyte, when the correct abbreviation would be
'E' ('Y' is yettabyte, which is exabyte * 1024 * 1024). While it isn't
strictly backwards compatible, I highly doubt anyone was actually using
this broken behavior, so I don't see any harm in in dropping 'Y' handling.
This commit is contained in:
Cole Robinson 2010-02-22 15:49:27 -05:00
parent dca81d0472
commit 67b44811af

@ -980,8 +980,8 @@ virStorageSize(const char *unit,
mult = 1024ull * 1024ull * 1024ull * 1024ull * 1024ull;
break;
case 'y':
case 'Y':
case 'e':
case 'E':
mult = 1024ull * 1024ull * 1024ull * 1024ull * 1024ull *
1024ull;
break;