diff options
author | mischief <mischief@offblast.org> | 2018-08-10 08:08:38 -0700 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2018-08-10 08:08:38 -0700 |
commit | 831291e5dd0877cc130f168a487531fd4a8c410b (patch) | |
tree | 95d85e6de12a11f910a0c3725c8da76d5337a166 /sys/man/3 | |
parent | a8d747d994d2514cfddf4fe866a2c7ebd689af6d (diff) |
sdloop(3): import sdloop driver (thanks erik)
Diffstat (limited to 'sys/man/3')
-rw-r--r-- | sys/man/3/sdloop | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/man/3/sdloop b/sys/man/3/sdloop new file mode 100644 index 000000000..9e33237c1 --- /dev/null +++ b/sys/man/3/sdloop @@ -0,0 +1,51 @@ +.TH SDLOOP 3 +.SH NAME +sdloop \- loopback storage device interface +.SH SYNOPSIS +.nf +.B bind -a #S /dev +.BI "echo config switch on spec " l " type loop/\fIpath\fP[!\fIsectsize\fP] >/dev/sdctl" + +.BI /dev/sd l 0/ctl +.BI /dev/sd l 0/raw +.BI /dev/sd l 0/data +\&... +.fi +.SH DESCRIPTION +.I Sdloop +allows a file to be used as a sd device. +To configure +.B /tmp/data +as +.BR sdl0 : +with a 1024-byte sector size +.IP +.EX +echo config switch on spec l type loop//tmp/data!1024 >/dev/sdctl +.EE +.PP +To turn this device off, +.IP +.EX +echo config switch off spec l >/dev/sdctl +.EE +.PP +The configuration variable +.B loopdev +may be specified in +.IR plan9.ini (8) +to configure a loopback +.I sd +device at boot. For example +.IP +.EX +loopdev=l!/tmp/data!1024 +.EE +.SH SOURCE +.B /sys/src/9/port/sdloop.c +.SH SEE ALSO +.IR sd (3), +.IR sdaoe (3), +.IR partfs (8) +.SH BUGS +Maybe. |