[lvm-devel] LVM2/libdm/ioctl libdm-iface.c
agk at sourceware.org
agk at sourceware.org
Fri Feb 4 21:26:33 UTC 2011
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2011-02-04 21:26:33
Modified files:
libdm/ioctl : libdm-iface.c
Log message:
Warn if secure data flag requested but not supported by kernel.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/ioctl/libdm-iface.c.diff?cvsroot=lvm2&r1=1.91&r2=1.92
--- LVM2/libdm/ioctl/libdm-iface.c 2011/02/04 19:33:53 1.91
+++ LVM2/libdm/ioctl/libdm-iface.c 2011/02/04 21:26:33 1.92
@@ -1541,8 +1541,12 @@
dmi->flags |= DM_READONLY_FLAG;
if (dmt->skip_lockfs)
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;
+ }
if (dmt->query_inactive_table) {
if (_dm_version_minor < 16)
log_warn("WARNING: Inactive table query unsupported "
More information about the lvm-devel
mailing list