From patchwork Tue Oct 27 19:38:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomohiro Kusumi X-Patchwork-Id: 7501651 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: X-Original-To: patchwork-dm-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 795BF9F36A for ; Tue, 27 Oct 2015 19:32:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9C01D20951 for ; Tue, 27 Oct 2015 19:32:48 +0000 (UTC) Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 021C020950 for ; Tue, 27 Oct 2015 19:32:46 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t9RJT8UV019990; Tue, 27 Oct 2015 15:29:08 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id t9RJT66S010871 for ; Tue, 27 Oct 2015 15:29:06 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9RJT6fu022969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Oct 2015 15:29:06 -0400 Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx1.redhat.com (Postfix) with ESMTPS id 7CB40C0B592C; Tue, 27 Oct 2015 19:29:05 +0000 (UTC) Received: by pacfv9 with SMTP id fv9so241371969pac.3; Tue, 27 Oct 2015 12:29:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VVBNJNGfddieNqVmZbxCVe8aOXHOFQIwSQtI7/sDLN0=; b=IBJQXInscZsopd+tBoe/BAkwilzUmATAQyTTTS1Zq5sHfTD1TQqxSjfd9b6u4R/E9g H7sbRPZ+kdHT8DQmpI2agiN01fWumk76DZGmOwvUqz1Bp+Rcao+bMdsRLXWKBlSrCVT8 TYkFQbZSsjoU9FgTaQfU6YLgCrx3i6IhTdsCxqQnO+0yIRYiLkzdnT2NGpTXEIBAvOZo s1p+42ftD5koBtctONjGlBy7SXaiQzyOk+YsppNMqNLaogVJxuAUVKaxVZ2xbAZqo71E 2QFIYovO5DFTugu3ShWoqNdOZl8VscrcHq3z+oX45iymQrcolDRwaUm4UzapwWFosr85 bJuA== X-Received: by 10.68.57.238 with SMTP id l14mr49278040pbq.150.1445974144783; Tue, 27 Oct 2015 12:29:04 -0700 (PDT) Received: from localhost.localdomain (i121-116-94-155.s41.a013.ap.plala.or.jp. [121.116.94.155]) by smtp.gmail.com with ESMTPSA id hl2sm15653052pbb.58.2015.10.27.12.29.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Oct 2015 12:29:04 -0700 (PDT) From: Tomohiro Kusumi To: snitzer@redhat.com, mpatocka@redhat.com Date: Wed, 28 Oct 2015 04:38:56 +0900 Message-Id: <1445974740-8362-2-git-send-email-kusumi.tomohiro@gmail.com> In-Reply-To: <1445974740-8362-1-git-send-email-kusumi.tomohiro@gmail.com> References: <1445974740-8362-1-git-send-email-kusumi.tomohiro@gmail.com> X-RedHat-Spam-Score: -0.12 (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 209.85.220.45 mail-pa0-f45.google.com 209.85.220.45 mail-pa0-f45.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-loop: dm-devel@redhat.com Cc: Tomohiro Kusumi , dm-devel@redhat.com Subject: [dm-devel] [PATCH 2/6] dm-delay: Update documentation for offsets (resend) X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Only delay params are mentioned in delay.txt. Mention offsets just like documents for linear and flakey do. Signed-off-by: Tomohiro Kusumi --- Documentation/device-mapper/delay.txt | 1 + drivers/md/dm-delay.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Documentation/device-mapper/delay.txt b/Documentation/device-mapper/delay.txt index 15adc55..a07b592 100644 --- a/Documentation/device-mapper/delay.txt +++ b/Documentation/device-mapper/delay.txt @@ -8,6 +8,7 @@ Parameters: [ ] With separate write parameters, the first set is only used for reads. +Offsets are specified in sectors. Delays are specified in milliseconds. Example scripts diff --git a/drivers/md/dm-delay.c b/drivers/md/dm-delay.c index e10f69a..772b720 100644 --- a/drivers/md/dm-delay.c +++ b/drivers/md/dm-delay.c @@ -122,6 +122,7 @@ static void flush_expired_bios(struct work_struct *work) * [ ] * * With separate write parameters, the first set is only used for reads. + * Offsets are specified in sectors. * Delays are specified in milliseconds. */ static int delay_ctr(struct dm_target *ti, unsigned int argc, char **argv)