|
Lines 129-134
scan_devices()
Link Here
|
| 129 |
local major minor n_blocks devname |
129 |
local major minor n_blocks devname |
| 130 |
local x f excludes="0 1 2 7 35 37" |
130 |
local x f excludes="0 1 2 7 35 37" |
| 131 |
local n_targets=0 saved= |
131 |
local n_targets=0 saved= |
|
|
132 |
local saved_part= |
| 132 |
local all_parts= |
133 |
local all_parts= |
| 133 |
|
134 |
|
| 134 |
_check_field() |
135 |
_check_field() |
|
Lines 276-281
scan_devices()
Link Here
|
| 276 |
fi |
277 |
fi |
| 277 |
|
278 |
|
| 278 |
# Save the current values |
279 |
# Save the current values |
|
|
280 |
saved_part="$devname" |
| 279 |
minor="$target" |
281 |
minor="$target" |
| 280 |
f="$whole" |
282 |
f="$whole" |
| 281 |
|
283 |
|
|
Lines 320-326
scan_devices()
Link Here
|
| 320 |
fi |
322 |
fi |
| 321 |
|
323 |
|
| 322 |
if [ -n "$part" ]; then |
324 |
if [ -n "$part" ]; then |
| 323 |
if [ "$part" = "$devname" ]; then |
325 |
if [ "$part" = "$saved_part" ]; then |
| 324 |
target=1 |
326 |
target=1 |
| 325 |
else |
327 |
else |
| 326 |
_add_device "$saved" |
328 |
_add_device "$saved" |