LVM2/libdm/ioctl libdm-iface.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2011-03-05 21:17:19
Modified files:
libdm/ioctl : libdm-iface.c
Log message:
Move secure flag warning to verbose level.
This feature is not yet upstream and becuase cryptsetup in next version uses this flag, it will cause a lot of noise on old kernels.
libdm/ioctl/libdm-iface.c +2 -2
@@ -1560,8 +1560,8 @@ dmi->flags |=DM_SKIP_LOCKFS_FLAG ;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." ); +log_verbose ("Secure data flag unsupported by kernel. " +"Buffers will not be wiped after use." ); dmi->flags |=DM_SECURE_DATA_FLAG ; }if (dmt->query_inactive_table) {
Quoted 2 lines · mbroz at sourceware.org
This feature is not yet upstream and becuase cryptsetup in next version uses this flag, it will cause a lot of noise on old kernels.
Let's take this as a temporary change then, and once the new code becomes reasonably widely used, revert this patch, OK?
Alasdair
Quoted 6 lines · Alasdair G Kergon
Quoted 2 lines · mbroz at sourceware.org
This feature is not yet upstream and becuase cryptsetup in next version uses this flag, it will cause a lot of noise on old kernels.
Let's take this as a temporary change then, and once the new code becomes reasonably widely used, revert this patch, OK?
IMHO that message should not be there at all. If application relies on it, then it must fail completely, warning is not enough. For other uses it is optional.
Anyway, we can revert it even now, I added version check into cryptsetup to detect kernel DM version and do not use that call if it is old. And the same change will be needed in RHEL or people will complain...
Milan
Quoted 2 lines · Milan Broz
IMHO that message should not be there at all. If application relies on it, then it must fail completely, warning is not enough.
Indeed - that should be the long-term change - to fail instead of warn, and let the application decide whether to retry less-securely.
Alasdair