From 528381607441226c813081ba15f1cd0ecab09f1b Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Mon, 24 Feb 2020 19:58:22 -0800 Subject: [PATCH] fs_mgr: use "-T now" for tune2fs No functional change. Bug: 149039306 Signed-off-by: Jaegeuk Kim Change-Id: Ic9dd04f268fcd949ee2e9b30b1598f35ef37b5bf --- fs_mgr/fs_mgr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs_mgr/fs_mgr.cpp b/fs_mgr/fs_mgr.cpp index aad9f77be..bd35815ba 100644 --- a/fs_mgr/fs_mgr.cpp +++ b/fs_mgr/fs_mgr.cpp @@ -573,9 +573,8 @@ static void tune_metadata_csum(const std::string& blk_device, const FstabEntry& // requires to give last_fsck_time to current to avoid insane time. // otherwise, tune2fs won't enable metadata_csum. - std::string now = std::to_string(time(0)); const char* tune2fs_args[] = {TUNE2FS_BIN, "-O", "metadata_csum,64bit,extent", - "-T", now.c_str(), blk_device.c_str()}; + "-T", "now", blk_device.c_str()}; const char* resize2fs_args[] = {RESIZE2FS_BIN, "-b", blk_device.c_str()}; if (!run_command(tune2fs_args, ARRAY_SIZE(tune2fs_args))) {