On Wed, Oct 19, 2016 at 11:42 AM, Eric Blake <ebl...@redhat.com> 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.