mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Warn if secure data flag requested but not supported by kernel.
This commit is contained in:
parent
a1dbe74c4c
commit
fe7a45c331
@ -1541,8 +1541,12 @@ static struct dm_ioctl *_flatten(struct dm_task *dmt, unsigned repeat_count)
|
|||||||
dmi->flags |= DM_READONLY_FLAG;
|
dmi->flags |= DM_READONLY_FLAG;
|
||||||
if (dmt->skip_lockfs)
|
if (dmt->skip_lockfs)
|
||||||
dmi->flags |= DM_SKIP_LOCKFS_FLAG;
|
dmi->flags |= DM_SKIP_LOCKFS_FLAG;
|
||||||
if (dmt->secure_data)
|
if (dmt->secure_data) {
|
||||||
|
if (_dm_version_minor < 20)
|
||||||
|
log_warn("WARNING: Secure data flag unsupported by "
|
||||||
|
"kernel. Buffers will not be wiped after use.");
|
||||||
dmi->flags |= DM_SECURE_DATA_FLAG;
|
dmi->flags |= DM_SECURE_DATA_FLAG;
|
||||||
|
}
|
||||||
if (dmt->query_inactive_table) {
|
if (dmt->query_inactive_table) {
|
||||||
if (_dm_version_minor < 16)
|
if (_dm_version_minor < 16)
|
||||||
log_warn("WARNING: Inactive table query unsupported "
|
log_warn("WARNING: Inactive table query unsupported "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user