liblightnvm icon indicating copy to clipboard operation
liblightnvm copied to clipboard

Some problems about using C API

Open wuqiulin1995 opened this issue 8 years ago • 3 comments

Hi

Thanks for your previous help , but I met some other problems now.

When I write to the { channel 0, LUN 0, plane 0&1, block 0, page 0, sec 0&1&2&3 } of SSD using CLI command nvm_addr write , error came out:

nvm_addr write : {pMODE : DUAL} ... nvm_addr write : Input/output error nvm_ret:{result : 0x2, status : 0} write: Input/output error

above are shown on the guest ubuntu terminal of QEMU.

and in the host ubuntu terminal it shows :

_set_written : invalid block state (ac) lnvm_rw : set written status failed ppa: ch(0) lun(0) pl(0) blk(0) pg(0) sec(0)

My SSD has 1 channel, 8 LUN , 2 planes per LUN and 31 blocks per plane, but if the SSD is 1 channel, 8 LUN , 1 planes per LUN and 63 blocks per plane, the error didn't come out, I can write to and read from the SSD correctly.

What's the problem about?

wuqiulin1995 avatar Feb 02 '18 10:02 wuqiulin1995

The bad block table looks wrong. Have you tracked where it happens in the source?

MatiasBjorling avatar May 23 '18 10:05 MatiasBjorling

@wuqiulin1995 are you still seing this issue?

safl avatar Jul 27 '18 16:07 safl

@safl I didn't study recently.

wuqiulin1995 avatar Jul 31 '18 01:07 wuqiulin1995