Subject: Using a file as blockdevice for vscsi host

From: Ingvar Hagelund <[email-masked]>
Date: Mon, 21 Aug 2006 15:30:27 +0200

I think someone, sometime told me something about using a file as vscsi
device in a (Linux) vio server. Is this possible?

I tried this, but it doesn't seem to work:

vios# dd if=/dev/zero of=/path/to/sysvol bs=1M count=9000
viod# cd sys/bus/vio/devices/30000020/bus0
vios# echo 2 > num_targets
vios# cd target1
vios# echo /path/to/sysvol > device
vios# echo b > type
vios# echo 1 > active
vios# echo $?
1
vios# cat active
0

Ingvar

-- 
Blogs are the new usenet
(Mike of UserFriendly.org)