State tracker for a single storage device slot. More...
#include <WutFileSystemDriver.h>
Public Attributes | |
| int | id |
| Device enum value (DEVICE_SD, DEVICE_USB, ...) | |
| char | name [16] |
| human-readable base name, eg. | |
| char | volumeLabel [16] |
| volume label, best-effort - empty if none could be read | |
| char | prefix [32] |
| devoptab mount prefix, eg. | |
| char | stablePrefix [32] |
| same string as prefix, but set once in init() and never cleared on unmount - this device's identity for path->device resolution (FindDevice()), independent of current mount state | |
| bool | isPresent |
| found on the last poll | |
| bool | isMounted |
| A filesystem is currently mounted on this slot. | |
| bool | unmountRequired |
| The slot was removed or invalidated and must be unmounted before the next mount attempt. | |
| bool | labelFetched |
| volume label already looked up since the last mount/removal - see getVolumeLabel() | |
State tracker for a single storage device slot.
Definition at line 27 of file WutFileSystemDriver.h.
| int WutDeviceState::id |
Device enum value (DEVICE_SD, DEVICE_USB, ...)
Definition at line 29 of file WutFileSystemDriver.h.
| bool WutDeviceState::isMounted |
A filesystem is currently mounted on this slot.
Definition at line 35 of file WutFileSystemDriver.h.
| bool WutDeviceState::isPresent |
found on the last poll
Definition at line 34 of file WutFileSystemDriver.h.
| bool WutDeviceState::labelFetched |
volume label already looked up since the last mount/removal - see getVolumeLabel()
Definition at line 37 of file WutFileSystemDriver.h.
| char WutDeviceState::name[16] |
| char WutDeviceState::prefix[32] |
devoptab mount prefix, eg.
"usb1:/", or the runtime FSA path for SD - "" whenever isMounted is false
Definition at line 32 of file WutFileSystemDriver.h.
| char WutDeviceState::stablePrefix[32] |
same string as prefix, but set once in init() and never cleared on unmount - this device's identity for path->device resolution (FindDevice()), independent of current mount state
Definition at line 33 of file WutFileSystemDriver.h.
| bool WutDeviceState::unmountRequired |
The slot was removed or invalidated and must be unmounted before the next mount attempt.
Definition at line 36 of file WutFileSystemDriver.h.
| char WutDeviceState::volumeLabel[16] |
volume label, best-effort - empty if none could be read
Definition at line 31 of file WutFileSystemDriver.h.