On 11/25/2011 01:38 PM, Sebastian Andrzej Siewior wrote:
During mkfs.ext4 /dev/sda1 I run into:
in case it matters an my setup is wrong, here is what I do:
|modprobe target_core_mod
|mount a -t configfs /sys/kernel/config
|
|CONFIGFS=/sys/kernel/config/
|TARGET=/sys/kernel/config/target/core/
|FABRIC=/sys/kernel/config/target/loopback/
|
|mkdir -p $TARGET/rd_mcp_0/ramdisk
|echo rd_pages=32768 > $TARGET/rd_mcp_0/ramdisk/control
|echo 1 > $TARGET/rd_mcp_0/ramdisk/enable
|
|mkdir -p $FABRIC/naa.6001405c3214b06a/tpgt_1
|mkdir $FABRIC/naa.6001405c3214b06a/tpgt_1/lun/lun_0
|echo naa.6001405c3214b06b > $FABRIC/naa.6001405c3214b06a/tpgt_1/nexus
|
|ln -sv /sys/kernel/config/target/core/rd_mcp_0/ramdisk
$FABRIC/naa.6001405c3214b06a/tpgt_1/lun/lun_0/virtual_scsi_port
|
which gives me sda1
Sebastian
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html