hd-zero / hdzero-goggle

MIT License
238 stars 67 forks source link

Formatting SD card does not cause free space to be recalculated #412

Open evilC opened 1 month ago

evilC commented 1 month ago

Seen on: 9.3.0-09eef33 rx:74 va:191 If the SD card is full, and you reformat the SD card, the SD card still shows as being full. Rebooting causes free space to be recalculated, but this should not be required. AFAIK a similar issue also applies if you delete recordings via the playback menu

evilC commented 1 month ago

Repro'd on this build: https://github.com/hd-zero/hdzero-goggle/actions/runs/9382157957 Test method:

  1. FILL your SD card - on a windows system, for an SD card F:, in powershell:
    cd F:
    $space = $(get-WmiObject win32_logicaldisk | where-object -Property DeviceID -EQ "F:" | select -ExpandProperty FreeSpace) ; fsutil file createNew emptyFile $space
  2. Put card in goggles - status bar shows "SD Card Full"
  3. Storage menu > Format
  4. Status bar still shows "SD Card Full"