Skip to content

Commit dca55ac

Browse files
author
Pavithra
committed
Test ti verify data persistency on vpmem device across reboot
This test verifies that data written to a vpmem. device persists across system reboots. Test steps: 1. Check for vpmem device availability 2. Create namespace using ndctl 3. Create file system with DAX support 4. Mount the vpmem device with DAX option 5. Create a test file with unique content 6. Reboot the system 7. Remount the vpmem device 8. Verify the test file still exists with correct content Signed-off-by: Pavithra <pavrampu@linux.ibm.com>
1 parent b46a1b4 commit dca55ac

2 files changed

Lines changed: 394 additions & 0 deletions

File tree

OpTestConfiguration.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,20 @@ def get_parser():
463463
misc_group.add_argument("--bisect-flag",
464464
help="Specify if bisection is to be done or not")
465465

466+
vpmem_group = parser.add_argument_group("VPMEM", "VPMEM/NVDIMM test configuration")
467+
vpmem_group.add_argument("--vpmem-device",
468+
help="Path to vpmem device (default: /dev/pmem0)",
469+
default="/dev/pmem0")
470+
vpmem_group.add_argument("--vpmem-mount-point",
471+
help="Mount point for vpmem device (default: /pmem0)",
472+
default="/pmem0")
473+
vpmem_group.add_argument("--vpmem-namespace",
474+
help="Namespace name (default: namespace0.0)",
475+
default="namespace0.0")
476+
vpmem_group.add_argument("--vpmem-region",
477+
help="Region name (default: region0)",
478+
default="region0")
479+
466480
return parser
467481

468482

0 commit comments

Comments
 (0)