11.3Sandvar# $NetBSD: targets,v 1.3 2022/05/28 21:57:39 andvar Exp $ 21.1Sagc# 31.1Sagc# Structure of this file: 41.1Sagc# 51.1Sagc# + an extent is a straight (offset, length) pair of a file or device 61.1Sagc# it's the lowest common storage denominator 71.1Sagc# at least one is needed 81.1Sagc# + a device is made up of one or more extents or other devices 91.3Sandvar# devices can be added in a hierarchical manner, to enhance resilience 101.1Sagc# + in this example, no device definitions are necessary, as the target 111.1Sagc# will just use a simple extent for persistent storage 121.1Sagc# + a target is made up of 1 or more devices 131.1Sagc# The code does not support RAID1 recovery at present 141.1Sagc 151.1Sagc# Simple file showing 1 extent, mapped straight into 1 target 161.1Sagc 171.1Sagc# extent file or device start length 181.1Sagcextent0 /tmp/iscsi-target0 0 100MB 191.1Sagc 201.2Sagc# target flags storage netmask 211.2Sagctarget0 rw extent0 0.0.0.0/0 22