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>
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 @@
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);