]> git.lizzy.rs Git - plan9front.git/commitdiff
sdloop(3): import sdloop driver (thanks erik)
authormischief <mischief@offblast.org>
Fri, 10 Aug 2018 15:08:38 +0000 (08:08 -0700)
committermischief <mischief@offblast.org>
Fri, 10 Aug 2018 15:08:38 +0000 (08:08 -0700)
sys/man/3/sdloop [new file with mode: 0644]

diff --git a/sys/man/3/sdloop b/sys/man/3/sdloop
new file mode 100644 (file)
index 0000000..9e33237
--- /dev/null
@@ -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.