1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

change messages about libblkid features

remove message about missing libblkid features

change message recommending resize_fsadm when libblkid
features are not available.
This commit is contained in:
David Teigland 2022-09-27 15:10:04 -05:00
parent 3ca44e13be
commit 50281e5710
2 changed files with 1 additions and 10 deletions

View File

@ -948,15 +948,6 @@ int fs_get_blkid(const char *pathname, struct fs_info *fsi)
blkid_free_probe(probe);
/* We don't expect to get this info for luks */
if (strcmp(fsi->fstype, "crypto_LUKS") && (no_block_size || no_fslastblock || no_fsblocksize)) {
log_print("Missing libblkid %s%s%sfor %s",
no_block_size ? "BLOCK_SIZE " : "",
no_fslastblock ? "FSLASTBLOCK " : "",
no_fsblocksize ? "FSBLOCKSIZE " : "",
pathname);
}
if (fslastblock && fsblocksize)
fsi->fs_last_byte = fslastblock * fsblocksize;

View File

@ -6024,7 +6024,7 @@ static int _fs_reduce_allow(struct cmd_context *cmd, struct logical_volume *lv,
display_lvname(lv), fsi->mount_dir);
if (!fsi->fs_last_byte) {
log_error("File system size unknown: update libblkid for FSLASTBLOCK, or see --fs resize_fsadm.");
log_error("File system device usage not available from libblkid, see --fs resize_fsadm.");
return 0;
}