Commit e840c16
committed
Support SD card readers appearing as USB mass storage
The mediacard_combo storage watcher was unable to detect SD card readers
that appear as SCSI/USB mass storage devices (/dev/sda) instead of
mmcblk devices. This caused insertion tests to timeout.
This patch enhances MediacardComboStorage._parse_journal_line() to:
- Detect insertions via 'detected capacity change from 0 to X' messages
- Detect removals via 'detected capacity change from X to 0' messages
- Extract partition names from 'sda: sda1' style journal entries
- Label these devices as 'SD/MMC via USB reader'
The fix allows the action state to be updated dynamically, properly
handling multiple insert/remove cycles even when a card is already
inserted at test start.
Tested with USB SD card readers that enumerate as /dev/sda devices.1 parent 364af1a commit e840c16
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
372 | 396 | | |
373 | 397 | | |
374 | 398 | | |
| |||
0 commit comments