From 904c2efddec9a99a68e799b28a9f2e9381c86f0b Mon Sep 17 00:00:00 2001 From: myang6 Date: Wed, 1 Dec 2021 16:52:28 -0600 Subject: Add some comments. --- test/vfd_swmr_indep_rw_writer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/vfd_swmr_indep_rw_writer.c b/test/vfd_swmr_indep_rw_writer.c index 3aa8a2e..9f7fda7 100644 --- a/test/vfd_swmr_indep_rw_writer.c +++ b/test/vfd_swmr_indep_rw_writer.c @@ -616,6 +616,7 @@ main(int argc, char **argv) TEST_ERROR; } + /* The first process writes a dataset in the first file and then reads a dataset from the second file.*/ if (s.first_proc) { writer = true; @@ -685,6 +686,9 @@ main(int argc, char **argv) } else { + /* The second process reads the dataset of the first file generated by the first process, + * then writes a dataset in the second file for the first process to read. + */ writer = false; if (false == indep_init_vfd_swmr_config_plist(&s, writer, "./file1-shadow")) { HDfprintf(stderr, "Reader: Cannot initialize file property lists for file %s\n", s.filename[0]); -- cgit v0.12