mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
debug: trace result failure
This commit is contained in:
parent
670d982568
commit
d34d1f0173
@ -2352,7 +2352,8 @@ void device_ids_validate(struct cmd_context *cmd, struct dm_list *scanned_devs,
|
|||||||
if ((du->idtype == DEV_ID_TYPE_SYS_SERIAL) && du->pvid &&
|
if ((du->idtype == DEV_ID_TYPE_SYS_SERIAL) && du->pvid &&
|
||||||
memcmp(dev->pvid, du->pvid, ID_LEN)) {
|
memcmp(dev->pvid, du->pvid, ID_LEN)) {
|
||||||
log_debug("suspect device id serial %s for %s", du->idname, dev_name(dev));
|
log_debug("suspect device id serial %s for %s", du->idname, dev_name(dev));
|
||||||
str_list_add(cmd->mem, &cmd->device_ids_check_serial, dm_pool_strdup(cmd->mem, du->idname));
|
if (!str_list_add(cmd->mem, &cmd->device_ids_check_serial, dm_pool_strdup(cmd->mem, du->idname)))
|
||||||
|
stack;
|
||||||
*device_ids_invalid = 1;
|
*device_ids_invalid = 1;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -274,7 +274,8 @@ int fs_mount_state_is_misnamed(struct cmd_context *cmd, struct logical_volume *l
|
|||||||
continue;
|
continue;
|
||||||
if (stme.st_dev != st_lv.st_rdev)
|
if (stme.st_dev != st_lv.st_rdev)
|
||||||
continue;
|
continue;
|
||||||
dm_strncpy(mtab_mntpath, me->mnt_dir, sizeof(mtab_mntpath));
|
if (!dm_strncpy(mtab_mntpath, me->mnt_dir, sizeof(mtab_mntpath)))
|
||||||
|
continue; /* Ignore too long unsupported paths */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
endmntent(fme);
|
endmntent(fme);
|
||||||
|
Loading…
Reference in New Issue
Block a user