From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwwkO-0005Cg-II for qemu-devel@nongnu.org; Wed, 19 Oct 2016 15:41:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwwkN-0002hx-P2 for qemu-devel@nongnu.org; Wed, 19 Oct 2016 15:41:56 -0400 Received: from mail-yw0-x233.google.com ([2607:f8b0:4002:c05::233]:36502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwwkN-0002hp-K7 for qemu-devel@nongnu.org; Wed, 19 Oct 2016 15:41:55 -0400 Received: by mail-yw0-x233.google.com with SMTP id u124so25272557ywg.3 for ; Wed, 19 Oct 2016 12:41:55 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <6ceb7075-71fc-b725-8a1c-a7d8c727770e@redhat.com> References: <147689566876.11015.13898062253087685236.stgit@dwillia2-desk3.amr.corp.intel.com> <6ceb7075-71fc-b725-8a1c-a7d8c727770e@redhat.com> From: Dan Williams Date: Wed, 19 Oct 2016 12:41:54 -0700 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [ndctl PATCH 0/8] dimm label space initialization support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: linux-nvdimm , Vishal L Verma , qemu-devel@nongnu.org On Wed, Oct 19, 2016 at 11:42 AM, Eric Blake wrote: > On 10/19/2016 11:47 AM, Dan Williams wrote: >> The 4.9 kernel added support for sub-dividing PMEM. With this kernel >> patch [1] on top of that baseline, the PMEM-sub-division support can be >> enabled for QEMU-KVM and any other platforms that advertise both un-aliased >> PMEM regions and support for the label DSM commands [2]. >> >> Given this increasing need to perform a label management operation >> across a set of DIMMs this update also adds glob(3) support. For >> example you can now write commands like: >> >> ndctl zero-labels nmem[2-4] > > This is slightly scary, as it depends on the user not having any file > named nmem2, nmem3, or nmem4 in the current working directory. Your > example should probably encourage proper shell quoting, as in: > > ndctl zero-labels 'nmem[2-4]' True. Although, the glob is run against the list of present device names in the system, so local files named nmem should change the operation of the command.