From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0056.outbound.protection.outlook.com [207.46.100.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail09.linbit.com (LINBIT Mail Daemon) with ESMTPS id D13471056332 for ; Mon, 25 Apr 2016 17:51:05 +0200 (CEST) To: Philipp Reisner , Jens Axboe , "linux-kernel@vger.kernel.org" References: <1461586077-11581-1-git-send-email-philipp.reisner@linbit.com> <1461586077-11581-6-git-send-email-philipp.reisner@linbit.com> From: Bart Van Assche Message-ID: <571E393E.1010003@sandisk.com> Date: Mon, 25 Apr 2016 08:35:26 -0700 MIME-Version: 1.0 In-Reply-To: <1461586077-11581-6-git-send-email-philipp.reisner@linbit.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: "drbd-dev@lists.linbit.com" Subject: Re: [Drbd-dev] [PATCH 05/30] drbd: Introduce new disk config option rs-discard-granularity List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 04/25/2016 05:10 AM, Philipp Reisner wrote: > As long as the value is 0 the feature is disabled. With setting > it to a positive value, DRBD limits and aligns its resync requests > to the rs-discard-granularity setting. If the sync source detects > all zeros in such a block, the resync target discards the range > on disk. Hello Phil, Can you explain why rs-discard-granularity is configurable instead of e.g. setting it to the least common multiple of the discard granularities of the underlying block devices at both sides? Thanks, Bart.