Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6850401rwr; Tue, 2 May 2023 06:27:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5+ax2JIQ0eKbQd0JfSSCM2QurzZKJW+JoBillmCgSkYwi1B+wkJ5oujtApnBanf6RiS3B5 X-Received: by 2002:a17:902:ec8f:b0:1a6:ebc1:c54c with SMTP id x15-20020a170902ec8f00b001a6ebc1c54cmr21374569plg.1.1683034079045; Tue, 02 May 2023 06:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683034079; cv=none; d=google.com; s=arc-20160816; b=ugWwSG7rTFuX/nze4LEwKDStl8WOoppN1aoqJhb/QtVOgNTrNCvcC8DHirCFstQBux gXqj6jzM9J41nizQXEKT75FrDKqP4k9qtWyds65Mia0Vy38KDku1ZbSEZe6SN5iS+sCX S4dCkqSaxS+7awtiORl12vjVzI0aFlaETB4tWutkT5KLuLqQPTA6/uIH4g1dI51a8Upi 8HwWUP76EfYSuD8GfCv5E8y4ftzdPb3qu7XDHKfglQUDFJp8i+K8fiJkE7+c3IrBElgF akXRy2bjjxE+UkAbhZ+E/44ck9J6oA6zUfABsQJcT7e5ua2fmRmFk8v0/GwgtbHG2u4F 8IJA== 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=Q7GpKexF8PKYlMflbIamvM1M1ucLUjNPY3jJqsyR6dk=; b=IaOYVzbCbXD6wP/ZYId69oCGRfy+nv5UB4umM4UUN6VdsXSlJntJOovQs2cFKQteyk OzzwufiITyeUhcd2rO5fdDchGyjhrhV0Y/Qqw9mih8msOSHHeX74Gl7+Bq3TSMfX2XWZ c7+5VrDlBBJb8LcRwEZL/sV9zvSD3qcKA6aIZXgscBwyX9r6dT4TPDxO8rASftyr/TFi XiUtsrdvpeI/kqfBPugWBHiZ3WlyrIHRjzvxFgFVGuc1UoAeJ4L5PalBPetOhT2iWfWl vrlj3lD3Iel7BIGlwdmI5qbQLWJVeAbjP2iblxMqZrr5dp/6o3Tug1AkGdpkfEIX/hIO UpPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=jizMv7db; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=NCnm75Fd; 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 b13-20020a170902e94d00b001a05d12eeb3si30415874pll.189.2023.05.02.06.27.35; Tue, 02 May 2023 06:27:59 -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=jizMv7db; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=NCnm75Fd; 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 S233929AbjEBNUw (ORCPT + 99 others); Tue, 2 May 2023 09:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233947AbjEBNUv (ORCPT ); Tue, 2 May 2023 09:20:51 -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 8C2D6618B; Tue, 2 May 2023 06:20:46 -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 321D61F8C4; Tue, 2 May 2023 13:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1683033645; 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=Q7GpKexF8PKYlMflbIamvM1M1ucLUjNPY3jJqsyR6dk=; b=jizMv7db6T6JUqrCWUu3dSq6QAWTlcyLubBf0610O4jBuWcuvWrbwNMe/LDQLax9Uoj51d 7m8FXBuvmGzHRUOM9yUmD2ytXwQtHhaXy9RqmGh6TXjhbWSGGOIQIGtkdNPkwghfGT3yAx 4MF+eh9ErYVqXOC/YmwHHKMNt/SfH3Y= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1683033645; 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=Q7GpKexF8PKYlMflbIamvM1M1ucLUjNPY3jJqsyR6dk=; b=NCnm75FdcJx2skes/nq92wID9BXMet3GFpktZYy5oXdrmF8pSa5738PsPn3DMm+sx9HqDF aF6Pk5vEaIHJCcBw== 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 24A1C134FB; Tue, 2 May 2023 13:20:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id jwTlCC0OUWS2VwAAMHmgww (envelope-from ); Tue, 02 May 2023 13:20:45 +0000 Date: Tue, 2 May 2023 15:20:44 +0200 From: Daniel Wagner To: Shinichiro Kawasaki Cc: Hannes Reinecke , "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> <6odezvt3uwnc3c6353qlvqdxadmn5giihsj77xvwi6h4655la4@ezvpevwxfsan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6odezvt3uwnc3c6353qlvqdxadmn5giihsj77xvwi6h4655la4@ezvpevwxfsan> 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 > Hmm, AFAIK, bash arithmetic supports integer only. I tried below, and bash did > not return floating value... > > $ avail=90000; echo $((avail/1024)) > 87 > > Assuming bash arithmetic supports integer only, -1 will not be required in the > calculation. Can't remember how I ended up with the above. Anyway, works just fine without the printf.