projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc118fe
)
target: Make virtual_lun0 a nullio device
author
Andy Grover
<
[email protected]
>
Tue, 28 May 2013 23:55:20 +0000
(16:55 -0700)
committer
Nicholas Bellinger
<
[email protected]
>
Fri, 14 Jun 2013 07:27:32 +0000
(
00:27
-0700)
Nobody should be expecting to read or write virtual_lun0.
Signed-off-by: Andy Grover <
[email protected]
>
Signed-off-by: Nicholas Bellinger <
[email protected]
>
drivers/target/target_core_device.c
patch
|
blob
|
history
diff --git
a/drivers/target/target_core_device.c
b/drivers/target/target_core_device.c
index ed679c9420c53fb82fc9dbcab48ec64493bdfb3a..8f4142fe5f19fdd336bf55bfc761f100ae67ce2c 100644
(file)
--- a/
drivers/target/target_core_device.c
+++ b/
drivers/target/target_core_device.c
@@
-1544,7
+1544,7
@@
int core_dev_setup_virtual_lun0(void)
{
struct se_hba *hba;
struct se_device *dev;
- char buf[
16]
;
+ char buf[
] = "rd_pages=8,rd_nullio=1"
;
int ret;
hba = core_alloc_hba("rd_mcp", 0, HBA_FLAGS_INTERNAL_USE);
@@
-1557,8
+1557,6
@@
int core_dev_setup_virtual_lun0(void)
goto out_free_hba;
}
- memset(buf, 0, 16);
- sprintf(buf, "rd_pages=8");
hba->transport->set_configfs_dev_params(dev, buf, sizeof(buf));
ret = target_configure_device(dev);