summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/stand/device-streams/README
blob: a2f18032287c14bb4c1fe60ca7b903c852cddf86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 Utilities in archive
 - rdbinfo:		Print Info on RDB devices.
 - streamtodev:		Copy a stream to a device.
 - devtostream:		Copy a device image to a stream.
 - xstreamtodev:	Same as streamtodev with extra options.
 - xdevtostream:	Same as devtostream with extra options.

-------
   rdbinfo, streamtodev, devtostream, xdevtostream and xstreamtodev
   are all: Copyright (C) 1993  Christian E. Hopps

   The word program below refers to all the above programs.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-------

Here are some programs I whipped together for use in NetBSD.  I hope
that these replace ``devtofile'' and ``filetodev''.  They are much safer
programs to use, plus that can use streams not just files. e.g.

	devtofile --rdb=BSD_TRANSFER --quiet | tar -xvf -

although streamtodev seems to have a bit of a problem with tar, tar terminates
before streamtodev has read all of tar's input...

Anyway all 4 stream programs will not allow you to cross partition boundries,
and they only work on devices that have RDB's.  The 2 x{program}'s add the
``feature'' of letting you specify start and end blocks within a partition's
boundries.  I never use this but with it comes almost the same functionality
as ``filetodev'' and ``devtofile'' (still with some safeguards).

type {program} --help for a template and options.

One thing I should point out, all the options are search restrictors, if not
specified then they are treated as matching everything, e.g. ``streamtodev''
will grab the first partition on the first unit of the first device it finds
on the dos list.  Play around with ``rdbinfo'' for a while if you don't
understand this; all the programs use a similar algorithm.

I have tested these somewhat, but I cannot guarentee they work perfect
therefore I insert my standard disclaimer:

Chris...
email: sycom.mi.org!ro-chp!chopps