On 01/08/2016 12:25 AM, Christoph Hellwig wrote:
find some instructions I wrote a while ago below:
Great, thanks!
> cd /srpt
> create 0xfe800000000000000002c903009f83a1
ok so this targetcli should be tab-completing from possible values in
/sys/class/infiniband/*/ports/*/gids/0
> cd ../acls
> create fe80:0000:0000:0000:f452:1403:007b:e041
> create ib.0000000000000000f4521403007be041
note that the uuids above are those for the IB port that is listed
as "ACTIVE" in "ibstatus" output. It will always be listed in
the fe80:0000:0000:0000:f452:1403:007b:e041, but different targetcli
command expect it with a 0x prefix, with a ib. prefix, or with the
leading fe80 replaced with zeroes. Don't ask me why, it's inherited
from existing and documented srp behavior that we piggyback on.
targetcli tries to represent all WWNs such as these uuids in a
consistent way: all WWNs are prefixed with e.g. "iqn." or "naa.", or
in
this case "ib.". But, it should accept values with "0x" or with colons
or dashes or whatever so pasting WWNs is more pleasant.
The fe80 thing vs 0000 - still seems very loose. Which of the acl create
lines above worked, and is correct? What could targetcli do to help the
user to use the correct value?
-- Andy