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