scsi_tools: add support for nvp reading
commit6d04ed343c76b38b5cd632ff0e0ba472ecade583
authorAmaury Pouly <amaury.pouly@gmail.com>
Sat, 3 Nov 2012 03:21:54 +0000 (3 04:21 +0100)
committerAmaury Pouly <amaury.pouly@gmail.com>
Sat, 3 Nov 2012 03:25:25 +0000 (3 04:25 +0100)
tree11c006c309bb70f7e21ba254a6796d662333d1b9
parent3e1c4926806ca685ab591cb6948fa3aa5014591c
scsi_tools: add support for nvp reading

There is a vendor specific command to read the NVP of the device,
including the KAS. The trick is that the data is randomly
scrambled using a so-called para_noise array of random values.
There seems to be a problem when retrieving large entries (>1000
bytes typically) which causes sg_pt do behave strangely.

Change-Id: Iefa6140df78ab9c7dcf7ac34cb1170979123ecd7
utils/nwztools/scsitools/Makefile
utils/nwztools/scsitools/para_noise.c [new file with mode: 0644]
utils/nwztools/scsitools/para_noise.h [new file with mode: 0644]
utils/nwztools/scsitools/scsitool.c