On Thu, Aug 4, 2016 at 2:15 AM, Yi Zhang <yiz...@redhat.com> wrote: > Hi folks, > > Seems I hit one issue that btt device node disappeared after configure with > non support sector_size, could you help confirm it? > > 4.7.0 > # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 512 > { > "dev":"namespace0.0", > "mode":"sector", > "uuid":"45b4900d-da76-47c8-956f-a70e4ea33fe3", > "sector_size":512, > "blockdev":"pmem0s" > } > # lsblk > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT > pmem0s 259:0 0 8G 0 disk > pmem1s 259:2 0 7.1G 0 disk > pmem2s 259:1 0 7.1G 0 disk > pmem3s 259:3 0 7.1G 0 disk > # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 513 > failed to reconfigure namespace > > # lsblk > NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT > pmem1s 259:2 0 7.1G 0 disk > pmem2s 259:1 0 7.1G 0 disk > pmem3s 259:3 0 7.1G 0 disk
This is expected if you specify invalid namespace values, but we should be trapping this case and reporting a more useful error message from ndctl rather than letting the kernel fail the namespace setup. For now, you can fix this by re-configuring the namespace with valid values. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm