Merge "Rectify Boottime property"

This commit is contained in:
David Anderson 2022-05-24 22:19:29 +00:00 committed by Gerrit Code Review
commit 7397fa566f

View file

@ -849,8 +849,10 @@ static int __mount(const std::string& source, const std::string& target, const F
if ((ret == 0) && (mountflags & MS_RDONLY) != 0) {
fs_mgr_set_blk_ro(source);
}
android::base::SetProperty("ro.boottime.init.mount." + Basename(target),
std::to_string(t.duration().count()));
if (ret == 0) {
android::base::SetProperty("ro.boottime.init.mount." + Basename(target),
std::to_string(t.duration().count()));
}
errno = save_errno;
return ret;
}