lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 31 Mar 2022 18:24:21 +0530 From: Ritesh Harjani <ritesh.list@...il.com> To: fstests <fstests@...r.kernel.org> Cc: linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org, "Darrick J . Wong" <djwong@...nel.org>, Ritesh Harjani <riteshh@...ux.ibm.com> Subject: [PATCHv3 2/4] common/punch: Add block_size argument to _filter_fiemap_** From: Ritesh Harjani <riteshh@...ux.ibm.com> Add block_size paramter to _filter_fiemap_flags() and _filter_hole_fiemap(). This is used in next patches Also this fixes some of the end of line whitespace issues while we are at it. Signed-off-by: Ritesh Harjani <riteshh@...ux.ibm.com> --- common/punch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/common/punch b/common/punch index b6b8a0b9..706e7c11 100644 --- a/common/punch +++ b/common/punch @@ -109,6 +109,7 @@ _filter_fiemap() _filter_fiemap_flags() { + block_size=$1 $AWK_PROG ' $3 ~ /hole/ { print $1, $2, $3; @@ -135,19 +136,19 @@ _filter_fiemap_flags() } print $1, $2, flag_str }' | - _coalesce_extents + _coalesce_extents $block_size } -# Filters fiemap output to only print the +# Filters fiemap output to only print the # file offset column and whether or not # it is an extent or a hole _filter_hole_fiemap() { $AWK_PROG ' $3 ~ /hole/ { - print $1, $2, $3; + print $1, $2, $3; next; - } + } $5 ~ /0x[[:xdigit:]]+/ { print $1, $2, "extent"; }' | -- 2.31.1
Powered by blists - more mailing lists