[Drbd-dev] [PATCH] drbd-utils: Add disable-write-same as a drbd.conf option

Eric Wheeler drbd-dev at lists.ewheeler.net
Sat Apr 7 01:07:44 CEST 2018


Author: Eric Wheeler <drbd at linux.ewheeler.net>
Date:   Fri Apr 6 16:04:26 2018 -0700

    drbd-utils: Add disable-write-same as a drbd.conf option
    
    This patch updates the grammar parser so that disable-write-same can be
    used in drbd.conf
    
    Signed-off-by: Eric Wheeler <drbd at linux.ewheeler.net>

diff --git a/user/v84/drbdadm_scanner.fl b/user/v84/drbdadm_scanner.fl
index 633b1bc..541e754 100644
--- a/user/v84/drbdadm_scanner.fl
+++ b/user/v84/drbdadm_scanner.fl
@@ -145,6 +145,7 @@ csums-after-crash-only  { DP; CP; return TK_NET_FLAG; }
 al-extents		{ DP; CP; RC(AL_EXTENTS); return TK_SYNCER_OLD_OPT | TK_DISK_OPTION;}
 al-updates		{ DP; CP; return TK_DISK_FLAG; 	}
 discard-zeroes-if-aligned { DP; CP; return TK_DISK_FLAG; 	}
+disable-write-same { DP; CP; return TK_DISK_FLAG; 	}
 cpu-mask		{ DP; CP; return TK_SYNCER_OLD_OPT | TK_RES_OPTION;	}
 use-rle			{ DP; CP; return TK_SYNCER_OLD_OPT | TK_NET_FLAG;	}
 delay-probe-volume	{ DP; CP; return TK_DEPRECATED_OPTION;  }


More information about the drbd-dev mailing list