1 # $NetBSD: targets,v 1.3 2022/05/28 21:57:39 andvar Exp $ 2 # 3 # Structure of this file: 4 # 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 hierarchical 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 14 15 # Simple file showing 1 extent, mapped straight into 1 target 16 17 # extent file or device start length 18 extent0 /tmp/iscsi-target0 0 100MB 19 20 # target flags storage netmask 21 target0 rw extent0 0.0.0.0/0 22