target/rd: Set ramdisk as non rotational device
authorSagi Grimberg <sagig@mellanox.com>
Sat, 4 Jul 2015 11:05:24 +0000 (14:05 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 7 Jul 2015 01:07:19 +0000 (18:07 -0700)
commit5dacbfc934cab0778852b18dd5d67ecebfcf9a2e
tree3f4c38f9340f46f1c09dc021b889bc6b45d13611
parent3aa3c67b266fd6114c019bbac35de79aca02d520
target/rd: Set ramdisk as non rotational device

Since a RAM backend device is not really a rotational device,
we set it as is_nonrot=1 which will be forwarded in VPD page 0xb1
(block device characteristics) response.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_rd.c