Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp833986rdb; Fri, 25 Aug 2023 02:29:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHqpDbS/L8KV00xmHijKQ43FPftbr3dc9asACyGPDun1q9a8KG76CRm7YRbWUjdYpx1m/j2 X-Received: by 2002:a19:520b:0:b0:4fc:df79:3781 with SMTP id m11-20020a19520b000000b004fcdf793781mr12013673lfb.66.1692955775030; Fri, 25 Aug 2023 02:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692955775; cv=none; d=google.com; s=arc-20160816; b=O9Dx/7gXwQb4ewOQfCAl9tzKVuffvc095iGweUCWKlogvwGvQryuu9gWUhQlAsXl0W ndztOtX7UQ8Cminz1zczOllf8eUd7wYGhgVzoXHPw23XTnzKDb+ms9I0na2LcslcEFCr c7bravOohFDeNmNrZhDETYdQRbShe/6DqLL0nQB85LBnWC+59eHWwLf9AqweRe/+EU4U 1rDIDqA5+eGzwUh6Ia/WMkbA+dGOw9nI1j5i8kHBWS7phwv6geO1ehdNJRMtg3yRUwiq SwDIs6e9jZeAQBT3FOJpa90IzVygaAo7ff2udUHQr7tr9qSFNuD9ILwYnVbdn13zKNx7 JKsg== 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=/GfIFSneNxiJ5ZkfLnsi8LpYv18OpdIVmYfGUM82eco=; fh=7g2eUzvA8EhgrSJv01q9DyfOYGtjYzHLFverUZUxj5k=; b=ek1Lmmie+L1cQpphk4zDqSLGQn5feCFYYvNzXsdpbPkKkk7k6iPJ0bbm9W7eKSWsJ9 mskSO/GSqmCPwVEb5AEJeYLtCbDfpmCynpf/o6jIIpucf66BoCrzA9KCGiOo2yEg5GE7 TkKbH8BqjsmXYVePWbibG0UdEWKt0DUchOvfuXsjieGerWcR0IoBSP3BdDDpH0uAE0A+ lpf4Zp2nJAkMhubWbDnY4qEsjWWE1kj7zvBYGqAsON/u5Ebi5d25K1TPkGgpE500TNsn ERCx1ZMlhMGvNj2imIUs8jpq57a0MKu4/nFh33TGsNSO4rtjtQXQUKJ4z+c+JI4HXzw/ FKTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=WvfmvupB; 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 u13-20020aa7d88d000000b005255d8f2d00si869965edq.672.2023.08.25.02.29.06; Fri, 25 Aug 2023 02:29:34 -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=WvfmvupB; 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 S242224AbjHYGkr (ORCPT + 99 others); Fri, 25 Aug 2023 02:40:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242478AbjHYGkV (ORCPT ); Fri, 25 Aug 2023 02:40:21 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 929802106; Thu, 24 Aug 2023 23:40:17 -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-out1.suse.de (Postfix) with ESMTPS id 2F824224C0; Fri, 25 Aug 2023 06:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1692945616; 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=/GfIFSneNxiJ5ZkfLnsi8LpYv18OpdIVmYfGUM82eco=; b=WvfmvupBVT2s+uKw5qMgI3+wuAMWaOPaDxsI1BZ0yUlMaV9yhq3Y2fok7eP0B2vNr0fVar qNG8jX9OPKnJpH6lbNP1Gg9vw+nCMhvDrLgteOVS5sK9WIK5BDW1+clZcfNVFmJKfRLSjp GvS/h9PKBL2UNtf6spEOdjA+w0Pu+E0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1692945616; 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=/GfIFSneNxiJ5ZkfLnsi8LpYv18OpdIVmYfGUM82eco=; b=IW9xCyKEddt+yTFH8YyB4vgvYlWaZEzv97y7b2em4MRo/S52tLyW59h3NUjpiaTkPf4+o3 qUZN14+wIeXhwDBw== 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 20FC1138F9; Fri, 25 Aug 2023 06:40:16 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id AeABCNBM6GQEMAAAMHmgww (envelope-from ); Fri, 25 Aug 2023 06:40:16 +0000 Date: Fri, 25 Aug 2023 08:40:32 +0200 From: Daniel Wagner To: Shinichiro Kawasaki Cc: Bart Van Assche , "linux-nvme@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , Chaitanya Kulkarni , Hannes Reinecke , Sagi Grimberg , Jason Gunthorpe Subject: Re: [PATCH blktests v3 3/3] nvme: introduce nvmet_target_{setup/cleanup} common code Message-ID: References: <20230822083812.24612-1-dwagner@suse.de> <20230822083812.24612-4-dwagner@suse.de> <7b5fc500-afeb-7edf-383c-0cdda77b3cf6@acm.org> 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 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, Aug 25, 2023 at 12:53:26AM +0000, Shinichiro Kawasaki wrote: > This works, but a bit ugly. Another idea is to make one of the optional > arguments mandatory, a positional argument. I think the option --device_type > worth making mandatory and explicit, like, > > _nvmet_target_setup device > _nvmet_target_setup file Possible but as I said in the other mail, we have a lot more of default arguments to functions which I would like to drop too. > This will make it easier for me to review which test case uses which type. > (This might be against Sagi's comment, though.) > > Daniel, what do you think? I don't think it is good strategy to change blktests just to make ShellCheck happy, when we know it is broken. It rather have SC2119 ignored until ShellCheck is fixed.