Lines Matching +full:re +full:- +full:configurable
1 .. SPDX-License-Identifier: GPL-2.0
16 -----------
23 Using zloop, zoned block devices with a configurable capacity, zone size and
47 --------------------------
50 character device file /dev/zloop-control can be used to add a zloop device.
51 This is done by writing an "add" command directly to the /dev/zloop-control
55 $ ls -l /dev/zloop*
56 crw-------. 1 root root 10, 123 Jan 6 19:18 /dev/zloop-control
58 $ mkdir -p <base directory/<device ID>
59 $ echo "add [options]" > /dev/zloop-control
62 /dev/zloop-control device::
64 $ cat /dev/zloop-control
97 --------------------------
100 command to /dev/zloop-control, specifying the ID of the device to remove::
102 $ echo "remove id=X" > /dev/zloop-control
106 A zoned device that was removed can be re-added again without any change to the
117 ----------
123 $ mkdir -p /var/local/zloop/0
124 $ echo "add capacity_mb=2048,zone_size_mb=64,zone_capacity=63MB" > /dev/zloop-control
129 $ ls -l /var/local/zloop/0
131 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000000
132 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000001
133 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000002
134 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000003
135 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000004
136 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000005
137 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000006
138 -rw-------. 1 root root 67108864 Jan 6 22:23 cnv-000007
139 -rw-------. 1 root root 0 Jan 6 22:23 seq-000008
140 -rw-------. 1 root root 0 Jan 6 22:23 seq-000009
145 $ lsblk -z
146 NAME ZONED ZONE-SZ ZONE-NR ZONE-AMAX ZONE-OMAX ZONE-APP ZONE-WGRAN
147 zloop0 host-managed 64M 32 0 0 1M 4K
149 …start: 0x000000000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
150 …start: 0x000020000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
151 …start: 0x000040000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
152 …start: 0x000060000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
153 …start: 0x000080000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
154 …start: 0x0000a0000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
155 …start: 0x0000c0000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
156 …start: 0x0000e0000, len 0x020000, cap 0x020000, wptr 0x000000 reset:0 non-seq:0, zcond: 0(nw) [typ…
157 …start: 0x000100000, len 0x020000, cap 0x01f800, wptr 0x000000 reset:0 non-seq:0, zcond: 1(em) [typ…
158 …start: 0x000120000, len 0x020000, cap 0x01f800, wptr 0x000000 reset:0 non-seq:0, zcond: 1(em) [typ…
163 $ echo "remove id=0" > /dev/zloop-control
165 The removed device can be re-added again using the same "add" command as when
169 $ rm -r /var/local/zloop/0