SDLOOP(3)                                               SDLOOP(3)

     NAME
          sdloop - loopback storage device interface

     SYNOPSIS
          bind -a #S /dev
          echo config switch on spec l type loop/path[[!sectors]!sectsize] >/dev/sdctl

          /dev/sdl0/ctl
          /dev/sdl0/raw
          /dev/sdl0/data
          ...

     DESCRIPTION
          Sdloop allows a file to be used as a sd device.  By specify-
          ing a number of sectors, the device may be be a different
          size than the file.  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), 9load(8),

     BUGS
          Maybe.

     Page 1                       Plan 9             (printed 3/28/24)