install: mkfs.f2fs: specify sector size for target image size

The total sectors that we want to format is used in different meanings from
various users. This notifies its size based on 512 bytes explicitly.

Bug: 76407663
Change-Id: I20687b40a1733d3b459a45f8b64a338c37a7bc95
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
Jaegeuk Kim
2018-04-04 21:14:01 -07:00
parent 81c3c4a319
commit fc66f3fbc6

View File

@@ -548,6 +548,8 @@ Value* FormatFn(const char* name, State* state, const std::vector<std::unique_pt
"encrypt",
"-O",
"quota",
"-w",
"512",
location.c_str(),
(size < 512) ? nullptr : num_sectors.c_str(),
nullptr };