Lines Matching refs:dev

83   out=$("${ROOTDEV}" --block $WORKDIR 2>/dev/null)
91 local dev=$2
93 mkdir -p $dev
96 echo "10:0" > $block/sda/dev
97 echo "10:1" > $block/sda/sda1/dev
98 echo "10:2" > $block/sda/sda2/dev
99 mknod $dev/sda1 b 10 1
100 mknod $dev/sda2 b 10 2
101 mknod $dev/sda b 10 0
106 local dev=$WORKDIR/dev
107 h00_setup_sda_tree $block $dev
109 out=$("${ROOTDEV}" --dev $dev --block $block --major 10 --minor 1 2>/dev/null)
111 expect "'$dev/sda1' = '$out'" || return 1
117 local dev=$WORKDIR/dev
118 h00_setup_sda_tree $block $dev
120 out=$("${ROOTDEV}" --dev $dev --block $block --major 10 --minor 0 2>/dev/null)
122 expect "'$dev/sda' = '$out'" || return 1
128 local dev=$WORKDIR/dev
129 h00_setup_sda_tree $block $dev
130 rm $dev/sda
132 out=$("${ROOTDEV}" --dev $dev --block $block --major 10 --minor 0 2>/dev/null)
134 expect "'$dev/sda' = '$out'" || return 1
140 local dev=$WORKDIR/dev
141 h00_setup_sda_tree $block $dev
142 rm $dev/sda
144 out=$("${ROOTDEV}" -i --dev $dev --block $block --major 10 --minor 0 2>/dev/null)
146 expect "'$dev/sda' = '$out'" || return 1
153 local dev=$2
155 mkdir -p $dev
158 echo "254:0" > $block/dm-0/dev
159 echo "10:1" > $block/dm-0/slaves/sda1/dev
160 mknod $dev/dm-0 b 254 0
165 local dev=$WORKDIR/dev
166 h00_setup_sda_tree $block $dev
167 h01_setup_dm_tree $block $dev
169 out=$("${ROOTDEV}" --dev $dev --block $block --major 254 --minor 0 \
170 2>/dev/null)
172 expect "'$dev/dm-0' = '$out'" || return 1
178 local dev=$WORKDIR/dev
179 h00_setup_sda_tree $block $dev
180 h01_setup_dm_tree $block $dev
182 out=$("${ROOTDEV}" -s --dev $dev --block $block --major 254 --minor 0 \
183 2>/dev/null)
185 expect "'$dev/sda1' = '$out'" || return 1
191 local dev=$WORKDIR/dev
192 h00_setup_sda_tree $block $dev
193 h01_setup_dm_tree $block $dev
195 out=$("${ROOTDEV}" -s --dev $dev --block $block --major 10 --minor 1 \
196 2>/dev/null)
198 expect "'$dev/sda1' = '$out'" || return 1
204 local dev=$WORKDIR/dev
205 h00_setup_sda_tree $block $dev
206 h01_setup_dm_tree $block $dev
209 rm $dev/sda1
211 out=$("${ROOTDEV}" -s --dev $dev --block $block --major 254 --minor 0 \
212 2>/dev/null)
214 expect "'$dev/sda1' = '$out'" || return 1
220 local dev=$WORKDIR/dev
221 h00_setup_sda_tree $block $dev
222 h01_setup_dm_tree $block $dev
225 rm $dev/sda1
227 out=$("${ROOTDEV}" -i -s --dev $dev --block $block --major 254 --minor 0 \
228 2>/dev/null)
230 expect "'$dev/sda1' = '$out'" || return 1
236 local dev=$2
238 mkdir -p $dev
241 echo "11:0" > $block/mmcblk0/dev
242 echo "11:1" > $block/mmcblk0/mmcblk0p1/dev
243 echo "11:2" > $block/mmcblk0/mmcblk0p2/dev
244 mknod $dev/mmcblk0 b 11 0
245 mknod $dev/mmcblk0p1 b 11 1
246 mknod $dev/mmcblk0p2 b 11 2
251 local dev=$WORKDIR/dev
252 h02_setup_mmc_tree $block $dev
253 out=$("${ROOTDEV}" --dev $dev --block $block --major 11 --minor 2 \
254 2>/dev/null)
256 expect "'$dev/mmcblk0p2' = '$out'" || return 1
262 local dev=$WORKDIR/dev
263 h02_setup_mmc_tree $block $dev
264 out=$("${ROOTDEV}" -d --dev $dev --block $block --major 11 --minor 2 \
265 2>/dev/null)
267 expect "'$dev/mmcblk0' = '$out'" || return 1
273 local dev=$WORKDIR/dev
274 h00_setup_sda_tree $block $dev
275 out=$("${ROOTDEV}" -d --dev $dev --block $block --major 10 --minor 2 \
276 2>/dev/null)
278 expect "'$dev/sda' = '$out'" || return 1