From f20ddf9fea84c6cd96d9bb4c7d2b795b80ef5ca1 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Dec 2023 22:54:12 +0000 Subject: [PATCH] Committing clang-format changes --- src/H5FDsubfiling/H5FDsubfiling.c | 6 ++--- testpar/t_subfiling_vfd.c | 41 +++++++++++-------------------- 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/src/H5FDsubfiling/H5FDsubfiling.c b/src/H5FDsubfiling/H5FDsubfiling.c index f0645cabed7..239d5082c15 100644 --- a/src/H5FDsubfiling/H5FDsubfiling.c +++ b/src/H5FDsubfiling/H5FDsubfiling.c @@ -3170,8 +3170,7 @@ translate_io_req_to_iovec(subfiling_context_t *sf_context, size_t iovec_idx, siz * |___________|___________|___________|___________| * (thin) (thin) */ - thin_uniform_section = (subfile_idx > last_subfile_idx) || - (subfile_idx < first_subfile_idx); + thin_uniform_section = (subfile_idx > last_subfile_idx) || (subfile_idx < first_subfile_idx); } else { /* last_subfile_idx < first_subfile_idx */ /* @@ -3180,7 +3179,8 @@ translate_io_req_to_iovec(subfiling_context_t *sf_context, size_t iovec_idx, siz * subfile with the first data segment and the current * subfile index falls between the two. */ - thin_uniform_section = ((last_subfile_idx < subfile_idx) && (subfile_idx < first_subfile_idx)); + thin_uniform_section = + ((last_subfile_idx < subfile_idx) && (subfile_idx < first_subfile_idx)); } if (thin_uniform_section) { diff --git a/testpar/t_subfiling_vfd.c b/testpar/t_subfiling_vfd.c index b04588f0682..d24730c2e3d 100644 --- a/testpar/t_subfiling_vfd.c +++ b/testpar/t_subfiling_vfd.c @@ -927,8 +927,7 @@ test_iovec_translation(void) * environment variables have been set since we * want to use fixed configurations for testing. */ - if (getenv(H5FD_SUBFILING_STRIPE_SIZE) || - getenv(H5FD_SUBFILING_IOC_PER_NODE)) + if (getenv(H5FD_SUBFILING_STRIPE_SIZE) || getenv(H5FD_SUBFILING_IOC_PER_NODE)) skip = true; /* I/O only needs to be done from a single rank */ @@ -940,7 +939,7 @@ test_iovec_translation(void) num_digits = (int)(log10(num_subfiles) + 1); /* Allocate enough buffer space for up to 2 "subfile blocks" of I/O */ - buf_size = (size_t)(2 * stripe_size * num_subfiles); + buf_size = (size_t)(2 * stripe_size * num_subfiles); write_buf = malloc(buf_size); VRFY(write_buf, "malloc succeeded"); read_buf = malloc(buf_size); @@ -1008,8 +1007,7 @@ test_iovec_translation(void) write_addr = 0; /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1024,8 +1022,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf); @@ -1116,8 +1113,7 @@ test_iovec_translation(void) write_addr = (haddr_t)stripe_size; /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1132,8 +1128,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf); @@ -1214,8 +1209,7 @@ test_iovec_translation(void) write_addr = (haddr_t)(2 * stripe_size); /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1230,8 +1224,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf); @@ -1304,8 +1297,7 @@ test_iovec_translation(void) write_addr = (haddr_t)1; /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1320,8 +1312,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf); @@ -1400,8 +1391,7 @@ test_iovec_translation(void) write_addr = (haddr_t)(stripe_size - 1); /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1416,8 +1406,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf); @@ -1495,8 +1484,7 @@ test_iovec_translation(void) write_addr = (haddr_t)0; /* Set EOA for following write call */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Write according to the above pattern */ status = H5FDwrite(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, c_write_buf); @@ -1511,8 +1499,7 @@ test_iovec_translation(void) * Set EOA for following read call (since we wrote over any * superblock information in the file) */ - VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), - "H5FDset_eoa succeeded"); + VRFY((H5FDset_eoa(file_ptr, H5FD_MEM_DEFAULT, write_addr + nbytes) >= 0), "H5FDset_eoa succeeded"); /* Read the written bytes and verify */ status = H5FDread(file_ptr, H5FD_MEM_DRAW, dxpl_id, write_addr, nbytes, read_buf);