[dm-devel] [PATCH 2/5] multipath-tools: Clarify template rules of hwtable
Xose Vazquez Perez
xose.vazquez at gmail.com
Sat Jul 23 00:29:09 UTC 2016
Cc: Christophe Varoqui <christophe.varoqui at opensvc.com>
Cc: device-mapper development <dm-devel at redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez at gmail.com>
---
libmultipath/hwtable.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/libmultipath/hwtable.c b/libmultipath/hwtable.c
index 8eec209..6f9adc9 100644
--- a/libmultipath/hwtable.c
+++ b/libmultipath/hwtable.c
@@ -762,7 +762,8 @@ static struct hwentry default_hw[] = {
* Copy this TEMPLATE to add new hardware.
*
* Keep only mandatory and modified attributes.
- * Standard attributes must be removed.
+ * Attributes with default values must be removed.
+ * .vendor and .product are mandatory, all other are optional.
*
* COMPANY_NAME
*
@@ -770,8 +771,8 @@ static struct hwentry default_hw[] = {
* Mail : XXX
*/
{
- .vendor = "VENDOR", (Mandatory)
- .product = "PRODUCT", (Mandatory)
+ .vendor = "VENDOR",
+ .product = "PRODUCT",
.revision = "REVISION",
.bl_product = "BL_PRODUCT",
.pgpolicy = GROUP_BY_PRIO,
--
2.7.4
More information about the dm-devel
mailing list