1 # $NetBSD: targets,v 1.1 2006/02/08 19:02:59 agc Exp $
3 # Structure of this file:
5 # + an extent is a straight (offset, length) pair of a file or device
6 # it's the lowest common storage denominator
7 # at least one is needed
8 # + a device is made up of one or more extents or other devices
9 # devices can be added in a hierachical manner, to enhance resilience
10 # + in this example, no device definitions are necessary, as the target
11 # will just use a simple extent for persistent storage
12 # + a target is made up of 1 or more devices
13 # The code does not support RAID1 recovery at present
15 # Simple file showing 1 extent, mapped straight into 1 target
17 # extent file or device start length
18 extent0 /tmp/iscsi-target0 0 100MB
20 # target flags storage netmask
21 target0 rw extent0 0.0.0.0/0