diff options
author | Ryan Moeller <[email protected]> | 2020-07-16 00:26:39 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-15 21:26:39 -0700 |
commit | 103bc5b957b0456814665947a5db7348dcd9d78a (patch) | |
tree | 23928efefce6b3ba15eaba52c5256f38131d290e /config/kernel-vfs-fsync.m4 | |
parent | 01a4852ecbe3fddd6e7dbab5b740a7871dcd7e8b (diff) |
ZTS: Fix nonportable use of stat in list_file_blocks
FreeBSD stat uses -f to specify the format string rather than -c.
list_file_blocks in blkdev.shlib uses stat -c %i to get a file's
object ID for zdb. We already have a library function to do this
portably.
Use get_objnum to get the file's object ID.
Take log_must off of the call to list_free_blocks in
corrupt_blocks_at_level, which had masked the error. It was not good
to pipe the output of log_must into the while-loop, anyway.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Alek Pinchuk <[email protected]>
Reviewed-by: John Kennedy <[email protected]>
Signed-off-by: Ryan Moeller <[email protected]>
Closes #10572
Diffstat (limited to 'config/kernel-vfs-fsync.m4')
0 files changed, 0 insertions, 0 deletions