mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
Improve debug stack trace
dm_check_version reports log_error() - so use return_NULL.
This commit is contained in:
parent
a2222288b5
commit
7c626d5c9a
@ -1,5 +1,6 @@
|
||||
Version 1.02.64 -
|
||||
===================================
|
||||
Improve stack debug reporting in dm_task_create().
|
||||
Fallback to control node creation only if node doesn't exist yet.
|
||||
Change dm_hash API for binary data to accept const void *key.
|
||||
Fix memory access of empty params string in _reload_with_suppression_v4().
|
||||
|
@ -965,8 +965,10 @@ int dm_check_version(void)
|
||||
if (_check_version(dmversion, sizeof(dmversion), _dm_compat))
|
||||
return 1;
|
||||
|
||||
if (!_dm_compat)
|
||||
if (!_dm_compat) {
|
||||
log_error("Support for older device-mapped version is disabled.");
|
||||
goto bad;
|
||||
}
|
||||
|
||||
log_verbose("device-mapper ioctl protocol version %u failed. "
|
||||
"Trying protocol version 1.", _dm_version);
|
||||
|
@ -183,7 +183,7 @@ struct dm_task *dm_task_create(int type)
|
||||
|
||||
if (!dm_check_version()) {
|
||||
dm_free(dmt);
|
||||
return NULL;
|
||||
return_NULL;
|
||||
}
|
||||
|
||||
dmt->type = type;
|
||||
|
Loading…
Reference in New Issue
Block a user