Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6814374rwr; Tue, 2 May 2023 06:04:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5z9hSggsSkjVarywaMLPRwg0kWI5oBcFgYxQTcnIr2mFHauZKPUYldVYZTrKAC8Y/i6W09 X-Received: by 2002:a17:903:188:b0:1a1:c7b2:e7c7 with SMTP id z8-20020a170903018800b001a1c7b2e7c7mr19560294plg.49.1683032658913; Tue, 02 May 2023 06:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683032658; cv=none; d=google.com; s=arc-20160816; b=vphwLq152XRDvYbg3sE6U13sLrLcS3tuH1cglUckm7udsK6M1767Iwh8+Tp+Vq2PFe B+Conj5cYZB8bLfulrU9gdz6w9MxM8UmYHMW+s1dJJVm+wse8EvaDEkkvccQULYk7flA FRR4uXcSYRnN8ptkQyoMuYT3cYfrKebeEc4jPaJyNqiCtVCFJcHyzLNWQ5SecBG3YnY5 dEPVbS5bZowGKXXSt9fvhG8ndyNpzRuvyucyyqEltRQWW1Zf/w0CORYgep1bUT+juGKx LgXkAsebdycElFSR0DmkBZRp7hR6WoaSgJvH4hk/M+uu8rfbg6undbUkLfD03dWFbBd/ PXPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=KbeXHGKWj2YyZ1B4O+LLJ0cAowHX1KL4MZ0ye5IodE0=; b=GDaqe+ZeGDYkF/X31m8hbGsnc/OAbgCCvFMbHi/AWWVSAGzXbnGMT2EYQs7Bpdl+gF 4OpTfYzOvtb7jfTr55rjfQ2PmCFaNhepHxpx20mgJOOVfUehO1oB3UP0uAOKIqSxlViX 9xo9WIkttq/z5ArfvMNb+L6s3P1D36owOHrkdfeaAmKRTMwFasb4rkw6wtzd7BLCskVR 1i5DVv9d/HrpFTE9Rdep6iTAvVHjGehrzgslkQOM3Us1DRHBnbYQgdDb7Z4n9ewwMZYH uciXiXLE511eQYNB+RMeNTceTNVBqScb7Bh0V9rr6mKs+f3TioO88cVsEiv5x9Gxvn6D 2SqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=agtIXfyi; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a170902eb8f00b0019e272a22c7si24902581plg.53.2023.05.02.06.03.46; Tue, 02 May 2023 06:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=agtIXfyi; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233930AbjEBMzG (ORCPT + 99 others); Tue, 2 May 2023 08:55:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234300AbjEBMyz (ORCPT ); Tue, 2 May 2023 08:54:55 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11C7E526B; Tue, 2 May 2023 05:54:54 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id C75D81F8D6; Tue, 2 May 2023 12:54:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683032092; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KbeXHGKWj2YyZ1B4O+LLJ0cAowHX1KL4MZ0ye5IodE0=; b=agtIXfyiT/A60NnvYLWabSU43bc+veyerxOHpQdJC/Nx8hJZsVnRQALybNg0BKE3chUKb8 AvudVQ3Qp6zlEBK6dN8EQzfp0jq104A5DIjFWmMm5CkvP63GQ2doPWvUqGL9aCCzkdgwgN CWpyj18S8I0y4CdDcnmtbG6G7ElShnA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683032092; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KbeXHGKWj2YyZ1B4O+LLJ0cAowHX1KL4MZ0ye5IodE0=; b=NU92dZ2HIKWCyjU+aPZkQuFndzCN85HxRWzQL6ZGDZ9r2jmNrpOywKjDNCGG2K8K/SU1v/ UtMoZRj69Ia0emDA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B9C2F134FB; Tue, 2 May 2023 12:54:52 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GxJWLRwIUWQDSQAAMHmgww (envelope-from ); Tue, 02 May 2023 12:54:52 +0000 Date: Tue, 2 May 2023 14:54:52 +0200 From: Daniel Wagner To: Shinichiro Kawasaki Cc: "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , Chaitanya Kulkarni , Shin'ichiro Kawasaki Subject: Re: [PATCH REPOST blktests v2 2/9] nvme: Do not hard code device size for dd test Message-ID: References: <20230421060505.10132-1-dwagner@suse.de> <20230421060505.10132-3-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > - dd if=/dev/urandom of="/dev/${nvmedev}n1" count=128000 bs=4k status=none > > + size="$(blockdev --getsize64 "/dev/${nvmedev}n1")" > > + bs="$(blockdev --getbsz "/dev/${nvmedev}n1")" > > + count=$((size / bs - 1)) > > Do we need -1? Not really. My aim was to just to make it test case a bit more reliable. The original test didn't fill up the disk either. I am going to drop it.