summaryrefslogtreecommitdiff
path: root/lib/metadata
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2022-09-09 15:16:56 -0500
committerDavid Teigland <teigland@redhat.com>2022-09-09 15:50:00 -0500
commitb869a6ff7a3d254a56ad78444e7d7f8af93d6844 (patch)
tree3015c69054e85dbe924e2d5eff95455f4cc0832e /lib/metadata
parent6b05d6bd833c463b9a2074b2aa2bdaa531e7ab01 (diff)
downloadlvm2-b869a6ff7a3d254a56ad78444e7d7f8af93d6844.tar.gz
fix fs block size detection
blkid_get_tag_value() is not a reliable way to query the fs BLOCK_SIZE, so use the "probe" functions instead.
Diffstat (limited to 'lib/metadata')
-rw-r--r--lib/metadata/integrity_manip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/metadata/integrity_manip.c b/lib/metadata/integrity_manip.c
index e053ac5f6..e9895b836 100644
--- a/lib/metadata/integrity_manip.c
+++ b/lib/metadata/integrity_manip.c
@@ -372,7 +372,7 @@ static int _set_integrity_block_size(struct cmd_context *cmd, struct logical_vol
}
/*
- * get_fs_block_size() returns the libblkid BLOCK_SIZE value,
+ * fs_block_size_and_type() returns the libblkid BLOCK_SIZE value,
* where libblkid has fs-specific code to set BLOCK_SIZE to the
* value we need here.
*
@@ -382,7 +382,7 @@ static int _set_integrity_block_size(struct cmd_context *cmd, struct logical_vol
* value the block size, but it's possible values are not the same
* as xfs's, and do not seem to relate directly to the device LBS.
*/
- rv = get_fs_block_size(pathname, &fs_block_size);
+ rv = fs_block_size_and_type(pathname, &fs_block_size, NULL, NULL);
if (!rv || !fs_block_size) {
int use_bs;