summaryrefslogtreecommitdiffstats
path: root/src/H5FDvfd_swmr.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-02-12 19:10:23 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-02-12 19:28:33 (GMT)
commitec6919449be00e93ba95ce9abdde2cd6429160dc (patch)
treef02e0c28c3bcc26791119b4084f1ee2477ab38c6 /src/H5FDvfd_swmr.c
parent2b7347d5773fc91475ce6a18e0e96b40f0b8cb94 (diff)
downloadhdf5-ec6919449be00e93ba95ce9abdde2cd6429160dc.zip
hdf5-ec6919449be00e93ba95ce9abdde2cd6429160dc.tar.gz
hdf5-ec6919449be00e93ba95ce9abdde2cd6429160dc.tar.bz2
Delete misleading "Programmer:" field and excessive decoration from the
H5FD_vfd_swmr_write() comment header. Delete a superfluous comment. Delete some whitespace at EOL. NFCI.
Diffstat (limited to 'src/H5FDvfd_swmr.c')
-rw-r--r--src/H5FDvfd_swmr.c39
1 files changed, 17 insertions, 22 deletions
diff --git a/src/H5FDvfd_swmr.c b/src/H5FDvfd_swmr.c
index 56ffb32..8ed760b 100644
--- a/src/H5FDvfd_swmr.c
+++ b/src/H5FDvfd_swmr.c
@@ -871,7 +871,7 @@ done:
} /* end H5FD_vfd_swmr_read() */
-/*-------------------------------------------------------------------------
+/*
* Function: H5FD_vfd_swmr_write
*
* Purpose: Writes SIZE bytes of data to FILE beginning at address ADDR
@@ -879,18 +879,13 @@ done:
* DXPL_ID.
*
* Return: SUCCEED/FAIL
- *
- * Programmer: Robb Matzke
- * Thursday, July 29, 1999
- *
- *-------------------------------------------------------------------------
*/
static herr_t
-H5FD_vfd_swmr_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id,
- haddr_t addr, size_t size, const void *buf)
+H5FD_vfd_swmr_write(H5FD_t *_file, H5FD_mem_t type,
+ hid_t H5_ATTR_UNUSED dxpl_id, haddr_t addr, size_t size, const void *buf)
{
H5FD_vfd_swmr_t *file = (H5FD_vfd_swmr_t *)_file;
- herr_t ret_value = SUCCEED; /* Return value */
+ herr_t ret_value = SUCCEED;
FUNC_ENTER_NOAPI_NOINIT
@@ -1014,34 +1009,34 @@ done:
*
* In H5FD__vfd_swmr_load_hdr_and_idx(), we follow this protocol for reading
* the shadow file:
- *
+ *
* 0 If the maximum number of retries have been attempted, then exit
* with an error.
- *
+ *
* 1 Try to read the shadow file *header*. If successful, continue to 2.
- *
+ *
* If there is a hard failure, then return an error. If there is a failure
* that may be transient, then sleep and retry at 0.
- *
- * 2 If the tick number in the header is less than the tick last read by the VFD,
- * then return an error.
- *
+ *
+ * 2 If the tick number in the header is less than the tick last read by the
+ * VFD, then return an error.
+ *
* 3 If the tick number in the header is equal to the last tick read by the
* VFD, then exit without doing anything.
- *
+ *
* 4 Try to read the shadow file *index*. If successful, continue to 5.
- *
+ *
* If there is a hard failure, then return an error. If there is a failure
* that may be transient, then sleep and retry at 0.
- *
+ *
* 5 If a different tick number was read from the index than from the index,
* then continue at 0.
- *
+ *
* 6 Try to *re-read* the shadow file *header*. If successful, continue to 7.
- *
+ *
* If there is a hard failure, then return an error. If there is a failure
* that may be transient, then sleep and retry at 0.
- *
+ *
* 7 Compare the header that was read previously with the new header. If
* the new header is different than the old, then we may not have read
* the index at the right shadow-file offset, or the index may have been