ndctl oddity
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
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimmQuoted 7 lines · Jeff Moyer
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
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 7 lines · Dan Williams
Quoted 6 lines · Jeff Moyer
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.
Quoted 7 lines
Quoted 1 line
Note how the chardev for the last two namespaces is the same.
Are you running ndctl from the -pending branch with this commit?
77f6951b18eddaxctl: fix support for multiple instances per-region id
Doh. No, I'm not. I'll give that a try. Sorry.
-Jeff
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
Quoted 11 lines · Jeff Moyer
Quoted 9 lines · Dan Williams
Quoted 7 lines · Jeff Moyer
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.
Quoted 7 lines
Quoted 5 lines
Are you running ndctl from the -pending branch with this commit?
77f6951b18eddaxctl: fix support for multiple instances per-region idDoh. 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
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm