Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 475022020D322 for ; Wed, 28 Aug 2019 16:19:04 -0700 (PDT) From: "Verma, Vishal L" Subject: Re: [ndctl RFC PATCH] ndctl/namespace: create namespaces greedily Date: Wed, 28 Aug 2019 23:17:01 +0000 Message-ID: <9f412408dfb12a69767b5034435776a5853eb64f.camel@intel.com> References: <20190828200204.21750-1-vishal.l.verma@intel.com> <507921D13093A64EAF066075F3F6ED13076E485E@ORSMSX111.amr.corp.intel.com> <1ac1bafeaf3253fb9396c22db334b51deb653f0a.camel@intel.com> <507921D13093A64EAF066075F3F6ED13076E4922@ORSMSX111.amr.corp.intel.com> In-Reply-To: <507921D13093A64EAF066075F3F6ED13076E4922@ORSMSX111.amr.corp.intel.com> Content-Language: en-US Content-ID: <3AA41423B1AE7645BEF85244D223700D@intel.com> MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: "Williams, Dan J" , "Scargall, Steve" Cc: "linux-nvdimm@lists.01.org" List-ID: On Wed, 2019-08-28 at 15:38 -0700, Scargall, Steve wrote: > Thanks for the clarification. I have a much better understanding > now. > > Updating the ndctl-create-namespace man page to clarify what ' > --region=all' does and does not do in combination with other arguments > and options would be beneficial. This would actually provide a more > immediate solution to the problem. It sounds like the general > statement used in the other man pages can remain? Or are there other > exceptions? Yep I have a patch clarifying the --region option for create-namespace. 'all' is used in two ways, --=all or ndctl- all. The former acts as a filter, where as the latter acts as a "act on all" directive. So 'ndctl disable-namespace --region=region0 all' disables all namespaces on region0, where as 'ndctl disable-namespace --region=all all' is the same as omitting the --region option (while still acceptable syntax), and acts on all namespaces regardless of the region. > > With the proposed implementation that bails out on first error, ` > --continue` seems reasonable vs. `--greedy`. What do you think about > `--all-regions` instead? It is more meaningful towards its intended > action or use-case, but would it cause confusion with ` > --regions=all`? Documentation could provide the solution here. We > would have to choose an arbitrary short option since `-a` and `-r` are > already taken. I prefer --continue/-c since it automatically extends to buses as well. As a result, with these changes, 'ndctl create-namespace -c' will create namespaces on all possible regions on all possible buses. > > Whatever the final decision, we should test for and return a usage > error for a mutually exclusive set of inputs, i.e. `ndctl create- > namespace --all-regions --region=region0` doesn't make sense - either > you want to perform the create operation on all regions or only in > region0. With --continue this isn't a big problem as the --region restriction will render the --continue meaningless. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm