vold2: Fix a mb -> sector conversion refactor bug
Signed-off-by: San Mehat <san@google.com>
This commit is contained in:
parent
c66770f4c0
commit
dfe79492a4
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ int CommandListener::CreateAsecCmd::runCommand(SocketClient *cli,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int numSectors = (atoi(argv[2]) * (1024 * 1024)) / 512;
|
unsigned int numSectors = (atoi(argv[2]) * (1024 * 1024)) / 512;
|
||||||
if (VolumeManager::Instance()->createAsec(argv[1], atoi(argv[2]),
|
if (VolumeManager::Instance()->createAsec(argv[1], numSectors,
|
||||||
argv[3], argv[4],
|
argv[3], argv[4],
|
||||||
atoi(argv[5]))) {
|
atoi(argv[5]))) {
|
||||||
cli->sendMsg(ResponseCode::OperationFailed, "Container creation failed", true);
|
cli->sendMsg(ResponseCode::OperationFailed, "Container creation failed", true);
|
||||||
|
|
Loading…
Reference in a new issue