Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db5d1c3c authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger
Browse files

target: Make virtual_lun0 a nullio device



Nobody should be expecting to read or write virtual_lun0.

Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent bc118fe4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);