]> Pileus Git - ~andy/linux/commit
target: Fix trailing ASCII space usage in INQUIRY vendor+model
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 24 Jul 2013 23:15:08 +0000 (16:15 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 13 Aug 2013 02:11:26 +0000 (19:11 -0700)
commitee60bddba5a5f23e39598195d944aa0eb2d455e5
tree788ed8b352b0c5aa179e7b19692555a0ed36adc8
parentd4e4ab86bcba5a72779c43dc1459f71fea3d89c8
target: Fix trailing ASCII space usage in INQUIRY vendor+model

This patch fixes spc_emulate_inquiry_std() to add trailing ASCII
spaces for INQUIRY vendor + model fields following SPC-4 text:

  "ASCII data fields described as being left-aligned shall have any
   unused bytes at the end of the field (i.e., highest offset) and
   the unused bytes shall be filled with ASCII space characters (20h)."

This addresses a problem with Falconstor NSS multipathing.

Reported-by: Tomas Molota <tomas.molota@lightstorm.sk>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_spc.c