提交 67b44811 编写于 作者: C Cole Robinson

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.
上级 dca81d04
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册