Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6849861rwr; Tue, 2 May 2023 06:27:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42j0ZrVz0C3pa10A0EtYGa5aDnOzdUgDOOEbp+PP9Xttxc+sLam66jX/FnNMUiEe6xFoL/ X-Received: by 2002:a17:90b:4b06:b0:24e:1e2e:20ea with SMTP id lx6-20020a17090b4b0600b0024e1e2e20eamr3525067pjb.42.1683034052462; Tue, 02 May 2023 06:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683034052; cv=none; d=google.com; s=arc-20160816; b=Uh6ZeFY2QZS0IkMuD8E0wK2vumOh0kZxOJkqC/xNIfZut7UtrpHlVZNffjYvfbN8ji varfZVOsjWoA3fQpe9YA9zgZjSkaZ535Ohh2rJNGvjbgwFfateD2WrQNHW8KsFD8LHmq EHPjzbzO0qsvTpLqCeDF6PweY/zwSHb0jdXNS8FytZpQgIcTGwCNtok7GYfCTQk9Hfza 8DVblblwCmXMPO37TtvCuT4Otmn8N6m7MgFSmBlGGDMJF95oH6sn8XmHh5ugvgLWPPoi japghnD3ARvW8P+J4R0qEd/578DAFki0f7E9boNMoITAdSBFCf9PA7WeMiVo745BGweY JNrQ== 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=X6pmLXaIP92O+42lHElbilcuYtyXI0aaCgcPWEIGhNs=; b=i1NjjfZ3Ebuf53N56Z4GQfbMXm99BpiutSxIfee+xu0BBgVYjIdTdK/OOnFso2XEtj cKbUUm6Eg57KR54slegRrRTJgfItdpg0B8YBUL/8YA2UQEJ65AR/bD7FwuSR30pfK+Eo LfSln0CmNRzJOl/x/I35kiTwYr+bmI1VJzi8BT+FTKs27odcAyXl99jsU9AJmBH71Fzr FnZTx31QXjpQvygLYjxe2GxfRsILZN4RHif7PLnCYrJCmoWbMDp7QrmoaFMko1Yznw+9 iu7oNPsEvfiLEpL4tEnaM+EjflIfadAIR/SvGxugCuK9amTSVcE6f1hOCRIclba+L9aw TEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=lChvKPHq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 j35-20020a635523000000b00519a8f54d2esi29164995pgb.479.2023.05.02.06.27.16; Tue, 02 May 2023 06:27:32 -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=lChvKPHq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S233807AbjEBNTb (ORCPT + 99 others); Tue, 2 May 2023 09:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbjEBNT3 (ORCPT ); Tue, 2 May 2023 09:19:29 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DEFA5B87; Tue, 2 May 2023 06:19:28 -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 3CC2B1F8C4; Tue, 2 May 2023 13:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683033567; 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=X6pmLXaIP92O+42lHElbilcuYtyXI0aaCgcPWEIGhNs=; b=lChvKPHqaLxkunCNmmwMvq/Vkym78EMnsImduafFgSNkhQ8p+/x79wmSpYUdLrfeE/PSny 7z3zm7/L+EbvQGLa4muacIEeNa9d/rK0S0zR5ZU0o/cTaekuqmExVr/h0AjaPEx2GSGKeV uTDbdm0dcS+YXwPz176/qE2vENUwTOQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683033567; 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=X6pmLXaIP92O+42lHElbilcuYtyXI0aaCgcPWEIGhNs=; b=/o1fQ6Bn2kXO2MZVvv6jlMBG087zAk+KyUBzIUmXFGEXu1Wx06aA85WFRDL9NPjxSZtcZM QGYDD0gxUYc8LfAw== 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 2D320134FB; Tue, 2 May 2023 13:19:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6buhCt8NUWQEVwAAMHmgww (envelope-from ); Tue, 02 May 2023 13:19:27 +0000 Date: Tue, 2 May 2023 15:19:26 +0200 From: Daniel Wagner To: Hannes Reinecke 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 3/9] common-xfs: Make size argument optional for _xfs_run_fio_verify_io Message-ID: References: <20230421060505.10132-1-dwagner@suse.de> <20230421060505.10132-4-dwagner@suse.de> <1089a043-a40c-6b49-f0a0-38ca3bcd8f91@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1089a043-a40c-6b49-f0a0-38ca3bcd8f91@suse.de> 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 On Fri, Apr 21, 2023 at 08:27:35AM +0200, Hannes Reinecke wrote: > > + avail="$(df --output=avail "${mount_dir}" | awk 'NR==2 {print $1}')" > > df --output=avail "${mount_dir}" | tail -1 ok. > > + sz="$(printf "%d" $((avail / 1024 - 1 )))m" > > sz=$((avail / 1024 - 1)) > > > + fi > > + > > _run_fio_verify_io --size="$sz" --directory="${mount_dir}/" > > _run_fio_verify_io --size="${sz}m" --directory="${mount_dir}/" $sz might already contain the 'm', so can't do this here.