summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-06-06 14:31:37 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2017-06-29 22:08:30 +0530
commitc0ef98774c3e0f3e365c745f0b82ec0b8739ca47 (patch)
tree126e7eff3d56d711ea12d52b70792b831dd53921 /test
parentb0327581344ffba6cb53fca87d386cbf567986e9 (diff)
downloadphosphor-mboxd-c0ef98774c3e0f3e365c745f0b82ec0b8739ca47.tar.gz
phosphor-mboxd-c0ef98774c3e0f3e365c745f0b82ec0b8739ca47.zip
Read/write window property defines FFS partition file location.
The BMC loads the PNOR partitions in a read-only volume. So after that there are following two cases: Read: Tries to open the file in read only mode from the partition(READONLY/READWRITE/PRESERVED), Partition Table tells the partition type depends on the offset. if file is not there in the mapped partition then tries to open the file from the read only partition. Write: Tries to open the file in write mode from the partition(READWRITE/PRESERVED), if file is not there in the mapped partition then mailbox daemon will copy the requested partition to the read-write volume to make changes to it. Change-Id: Ic0ef882380b56536ac55feae3ec563de95fdd4a6 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/create_read_window_vpnor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/create_read_window_vpnor.cpp b/test/create_read_window_vpnor.cpp
index 855d88d..8121498 100644
--- a/test/create_read_window_vpnor.cpp
+++ b/test/create_read_window_vpnor.cpp
@@ -66,6 +66,8 @@ int main()
struct mbox_context *ctx = mbox_create_test_context(N_WINDOWS, WINDOW_SIZE);
strcpy(ctx->paths.ro_loc,tmpdir);
+ strcpy(ctx->paths.rw_loc,tmpdir);
+ strcpy(ctx->paths.prsv_loc,tmpdir);
vpnor_create_partition_table_from_path(ctx, tmpdir);
OpenPOWER on IntegriCloud