Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libndctl: ndctl_namespace_enable: namespace1.0: failed to enable observed after destroy/create-namespace on idle(not enabled) namespace #242

Open
yizhanglinux opened this issue May 9, 2023 · 0 comments

Comments

@yizhanglinux
Copy link
Contributor

Hello

The ndctl test suite was trying to find one idle namespace during daxctl-devices.sh, but when it was trying to destroy-namespace/create-namespace on the idle namespace, some error output, is that expected?

# ndctl list -b ACPI.NFIT -Ni
[
  {
    "dev":"namespace1.0",
    "mode":"raw",
    "size":0,
    "uuid":"00000000-0000-0000-0000-000000000000",
    "sector_size":512,
    "state":"disabled",
    "name":"test_pmem"
  },
  {
    "dev":"namespace1.1",
    "mode":"raw",
    "size":0,
    "uuid":"00000000-0000-0000-0000-000000000000",
    "sector_size":512,
    "state":"disabled"
  },
  {
    "dev":"namespace2.0",
    "mode":"raw",
    "size":135291469824,
    "sector_size":512,
    "blockdev":"pmem2"
  }
]

+ /root/ndctl/build/ndctl/ndctl destroy-namespace -f -b ACPI.NFIT namespace1.0
libndctl: ndctl_namespace_enable: namespace1.0: failed to enable
  Error: destroy namespace: namespace1.0 failed to enable for zeroing, continuing

destroyed 1 namespace
++ /root/ndctl/build/ndctl/ndctl create-namespace -b ACPI.NFIT -m devdax -fe namespace1.0 -s 256M
++ jq -er .dev
libndctl: ndctl_namespace_enable: namespace1.0: failed to enable
  Error: create namespace: namespace1.0 failed to enable for zeroing, continuing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant