Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39DCEC34031 for ; Tue, 18 Feb 2020 22:36:55 +0000 (UTC) Received: from ml01.01.org (ml01.01.org [198.145.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E796E24658 for ; Tue, 18 Feb 2020 22:36:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ekweasWg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E796E24658 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvdimm-bounces@lists.01.org Received: from ml01.vlan13.01.org (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id ACFD710FC341C; Tue, 18 Feb 2020 14:37:39 -0800 (PST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=205.139.110.61; helo=us-smtp-delivery-1.mimecast.com; envelope-from=jmoyer@redhat.com; receiver= Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C104C10FC340F for ; Tue, 18 Feb 2020 14:37:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582065393; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3WNoUEIqcbYKouLo/EQQMkIJfp174JRX5qaw1kSOS8=; b=ekweasWgCLkkA6hOIGzSiWjj2Wupaq1D4a576SXlolgCskuKEsKE2cZs050ScdlNoBv/31 w4JSvhSM0dVgfFefv7Rbsv37HVZhJdaXEw4eJnftvgbt0PIyRf4LTEg4qa8loSxhUO1X1b JCZOs4HFLvMvoslqa3VEw4CKv3NDLyc= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-206-iDa-F9VRNKyU6m9q9s1Afw-1; Tue, 18 Feb 2020 17:36:30 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D62C1800D53; Tue, 18 Feb 2020 22:36:28 +0000 (UTC) Received: from segfault.boston.devel.redhat.com (segfault.boston.devel.redhat.com [10.19.60.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6E1BE19756; Tue, 18 Feb 2020 22:36:27 +0000 (UTC) From: Jeff Moyer To: Dan Williams Subject: Re: [ndctl V2] namespace/create: Don't create multiple namespaces unless greedy References: <20191206053520.235805-1-santosh@fossix.org> X-PGP-KeyID: 1F78E1B4 X-PGP-CertKey: F6FE 280D 8293 F72C 65FD 5A58 1FF8 A7CA 1F78 E1B4 Date: Tue, 18 Feb 2020 17:36:26 -0500 In-Reply-To: (Dan Williams's message of "Tue, 10 Dec 2019 11:02:11 -0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: iDa-F9VRNKyU6m9q9s1Afw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Message-ID-Hash: A3CMOFOXSADQ3O7MCHOSS46MM4EJUXG6 X-Message-ID-Hash: A3CMOFOXSADQ3O7MCHOSS46MM4EJUXG6 X-MailFrom: jmoyer@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: linux-nvdimm , Vaibhav Jain X-Mailman-Version: 3.1.1 Precedence: list List-Id: "Linux-nvdimm developer list." Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Dan Williams writes: >> diff --git a/ndctl/namespace.c b/ndctl/namespace.c >> index 7fb0007..b1f2158 100644 >> --- a/ndctl/namespace.c >> +++ b/ndctl/namespace.c >> @@ -1388,11 +1388,9 @@ static int do_xaction_namespace(const char *namespace, >> (*processed)++; >> if (param.greedy) >> continue; >> - } >> - if (force) { >> - if (rc) >> + } else if (param.greedy && force) { >> saved_rc = rc; >> - continue; >> + continue; > > Looks good, applied. Where? -Jeff _______________________________________________ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-leave@lists.01.org