diff mbox

[2/5] multipath-tools: Clarify template rules of hwtable

Message ID 1469233752-11708-2-git-send-email-xose.vazquez@gmail.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Xose Vazquez Perez July 23, 2016, 12:29 a.m. UTC
Cc: Christophe Varoqui <christophe.varoqui@opensvc.com>
Cc: device-mapper development <dm-devel@redhat.com>
Signed-off-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
---
 libmultipath/hwtable.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff mbox

Patch

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,