NAME
sdloop – loopback storage device interface

SYNOPSIS
bind –a #S /dev
echo config switch on spec
l type loop/path[!sectsize] >/dev/sdctl
/dev/sd
l0/ctl
/dev/sd
l0/raw
/dev/sd
l0/data
...

DESCRIPTION
Sdloop allows a file to be used as a sd device. To configure /tmp/data as sdl0: with a 1024–byte sector size
echo config switch on spec l type loop//tmp/data!1024 >/dev/sdctl

To turn this device off,
echo config switch off spec l >/dev/sdctl

The configuration variable loopdev may be specified in plan9.ini(8) to configure a loopback sd device at boot. For example
loopdev=l!/tmp/data!1024

SOURCE
/sys/src/9/port/sdloop.c

SEE ALSO
sd(3), sdaoe(3), partfs(8)

BUGS
Maybe.