Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753182AbbHUDZf (ORCPT ); Thu, 20 Aug 2015 23:25:35 -0400 Received: from relay2.provo.novell.com ([137.65.250.214]:46868 "EHLO relay2.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbbHUDZe convert rfc822-to-8bit (ORCPT ); Thu, 20 Aug 2015 23:25:34 -0400 Message-Id: <55D70AD10200007000065BF8@relay2.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.0.2 Date: Thu, 20 Aug 2015 21:26:09 -0600 From: "Nick Wang" To: "Lars Ellenberg" Cc: "Philipp Reisner" , , Subject: =?UTF-8?Q?=E7=AD=94=E5=A4=8D=EF=BC=9A=20Re:=20[PATCH]=20drbd:=20?= =?UTF-8?Q?Support=20zeroout=20device=20instead=20of=20initial=20full=20s?= =?UTF-8?Q?ync?= References: <1950665.2mvfrclfR5@fat-tyre> <1438855462-3757-1-git-send-email-nwang@suse.com> <1438855462-3757-2-git-send-email-nwang@suse.com> <20150818150319.GL19958@soda.linbit> In-Reply-To: <20150818150319.GL19958@soda.linbit> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1454 Lines: 39 Hi Lars, > I still think this does not belong into the kernel at all. > I may not yet have properly explained why. > Thanks for your information. I tried blkdiscard on my test machine, but unfortunately the underlying block device i used doesn't support discard... (/sys/block//queue/discard_max_bytes == 0) However, i think blkscard could work well for SSDs and thinly-provisioned support storage as a workaround. > This is a lot of stuff to add to the DRBD module, > introducing write protocol incompatibility/protocol version bump. > > For no good reason. > Yes, it is not a mandatory feature, more like a enhancement "convenience patch" for some edge cases. User can choose zeroout/discard devices via drbd tools, in case the storage does not support discard, it will using zeroout instead of only throw an "not support" error to output. Implement this function to drbd also help to sync the status between nodes, convenience for auto deploy or monitor by admin. Also have the possibility to implement a resume broken zeroout/discard in future. And i can understand your concern and any decision, many thanks for your and Philipp's help and review:) Best regards, Nick -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/