nvdimm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* ndctl oddity
@ 2017-08-16 15:20 Jeff Moyer
  2017-08-16 16:07 ` Dan Williams
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Moyer @ 2017-08-16 15:20 UTC (permalink / raw)
  To: Dan J. Williams; +Cc: linux-nvdimm

Hi, Dan,

If I create multiple namespaces in the same region, ndctl sometimes
outputs the wrong chardev for the newly created namespace.  I can
reproduce this fairly regularly.

Note how the chardev for the last two namespaces is the same.

# ndctl create-namespace -m dax -s 32G   
{
  "dev":"namespace4.0",
  "mode":"dax",
  "size":33820770304,
  "uuid":"368e4458-84a3-4593-a999-1febad5e6915",
  "daxregion":{
    "id":4,
    "size":33820770304,
    "align":2097152,
    "devices":[
      {
        "chardev":"dax4.0",
        "size":33820770304
      }
    ]
  }
}
# ndctl create-namespace -m dax -s 32G
{
  "dev":"namespace4.1",
  "mode":"dax",
  "size":33820770304,
  "uuid":"08c9ee03-6cd5-4333-8f94-341f63dd46d8",
  "daxregion":{
    "id":4,
    "size":33820770304,
    "align":2097152,
    "devices":[
      {
        "chardev":"dax4.1",
        "size":33820770304
      }
    ]
  }
}
# ndctl create-namespace -m dax -s 32G
{
  "dev":"namespace4.2",
  "mode":"dax",
  "size":33820770304,
  "uuid":"d5045fe4-0409-4278-8f8b-88ce608302d4",
  "daxregion":{
    "id":4,
    "size":33820770304,
    "align":2097152,
    "devices":[
      {
        "chardev":"dax4.1",
        "size":33820770304
      }
    ]
  }
}
# ls /dev/dax4*
/dev/dax4.0  /dev/dax4.1  /dev/dax4.2
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ndctl oddity
  2017-08-16 15:20 ndctl oddity Jeff Moyer
@ 2017-08-16 16:07 ` Dan Williams
  2017-08-16 16:10   ` Jeff Moyer
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Williams @ 2017-08-16 16:07 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: linux-nvdimm

On Wed, Aug 16, 2017 at 8:20 AM, Jeff Moyer <jmoyer@redhat.com> wrote:
> Hi, Dan,
>
> If I create multiple namespaces in the same region, ndctl sometimes
> outputs the wrong chardev for the newly created namespace.  I can
> reproduce this fairly regularly.
>
> Note how the chardev for the last two namespaces is the same.

Are you running ndctl from the -pending branch with this commit?

77f6951b18ed daxctl: fix support for multiple instances per-region id

https://github.com/pmem/ndctl/commit/77f6951b18ed
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ndctl oddity
  2017-08-16 16:07 ` Dan Williams
@ 2017-08-16 16:10   ` Jeff Moyer
  2017-08-16 16:15     ` Dan Williams
  0 siblings, 1 reply; 4+ messages in thread
From: Jeff Moyer @ 2017-08-16 16:10 UTC (permalink / raw)
  To: Dan Williams; +Cc: linux-nvdimm

Dan Williams <dan.j.williams@intel.com> writes:

> On Wed, Aug 16, 2017 at 8:20 AM, Jeff Moyer <jmoyer@redhat.com> wrote:
>> Hi, Dan,
>>
>> If I create multiple namespaces in the same region, ndctl sometimes
>> outputs the wrong chardev for the newly created namespace.  I can
>> reproduce this fairly regularly.
>>
>> Note how the chardev for the last two namespaces is the same.
>
> Are you running ndctl from the -pending branch with this commit?
>
> 77f6951b18ed daxctl: fix support for multiple instances per-region id
>
> https://github.com/pmem/ndctl/commit/77f6951b18ed

Doh.  No, I'm not.  I'll give that a try.  Sorry.

-Jeff
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ndctl oddity
  2017-08-16 16:10   ` Jeff Moyer
@ 2017-08-16 16:15     ` Dan Williams
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Williams @ 2017-08-16 16:15 UTC (permalink / raw)
  To: Jeff Moyer; +Cc: linux-nvdimm

On Wed, Aug 16, 2017 at 9:10 AM, Jeff Moyer <jmoyer@redhat.com> wrote:
> Dan Williams <dan.j.williams@intel.com> writes:
>
>> On Wed, Aug 16, 2017 at 8:20 AM, Jeff Moyer <jmoyer@redhat.com> wrote:
>>> Hi, Dan,
>>>
>>> If I create multiple namespaces in the same region, ndctl sometimes
>>> outputs the wrong chardev for the newly created namespace.  I can
>>> reproduce this fairly regularly.
>>>
>>> Note how the chardev for the last two namespaces is the same.
>>
>> Are you running ndctl from the -pending branch with this commit?
>>
>> 77f6951b18ed daxctl: fix support for multiple instances per-region id
>>
>> https://github.com/pmem/ndctl/commit/77f6951b18ed
>
> Doh.  No, I'm not.  I'll give that a try.  Sorry.

No worries, I'll either expedite a v57.2 release with that fix, or
just pull the trigger on v58.
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-16 16:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-16 15:20 ndctl oddity Jeff Moyer
2017-08-16 16:07 ` Dan Williams
2017-08-16 16:10   ` Jeff Moyer
2017-08-16 16:15     ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).