ANDROID: Incremental fs: Initialize mount options correctly

report_uid was not being initialized, leading to random behavior

Bug: 172480517
Test: incfs_test passes
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: Ib121136d6f570f99e9060bdde9aa43ff2995514e
This commit is contained in:
Paul Lawrence
2020-10-27 07:43:06 -07:00
parent 0f4869e93e
commit 65a0f002c0

View File

@@ -181,12 +181,13 @@ static int parse_options(struct mount_options *opts, char *str)
if (opts == NULL)
return -EFAULT;
opts->read_timeout_ms = 1000; /* Default: 1s */
opts->readahead_pages = 10;
opts->read_log_pages = 2;
opts->read_log_wakeup_count = 10;
opts->no_backing_file_cache = false;
opts->no_backing_file_readahead = false;
*opts = (struct mount_options) {
.read_timeout_ms = 1000, /* Default: 1s */
.readahead_pages = 10,
.read_log_pages = 2,
.read_log_wakeup_count = 10,
};
if (str == NULL || *str == 0)
return 0;