@@ -178,21 +178,21 @@ HRESULT FATFS_FS_Driver::GetSizeInfo(const VOLUME_ID *volume, int64_t *totalSize
178
178
179
179
f_chdrive (currentVolume->m_rootName );
180
180
181
- // // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
182
- // // // get free clusters
183
- // // f_getfree(buffer, &freeClusters, &fsPtr);
184
-
185
- // // // Get total sectors and free sectors
186
- // // totalSectors = (fs.n_fatent - 2) * fs.csize;
187
- // // freeSectors = freeClusters * fs.csize;
188
-
189
- // // #if FF_MAX_SS != FF_MIN_SS
190
- // // *totalSize = (int64_t)totalSectors * fs.ssize;
191
- // // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
192
- // // #else
193
- // // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
194
- // // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
195
- // // #endif
181
+ // this call is prone to take a long time, thus hitting the watchdog, therefore we are skipping this for now
182
+ // // get free clusters
183
+ // f_getfree(buffer, &freeClusters, &fsPtr);
184
+
185
+ // // Get total sectors and free sectors
186
+ // totalSectors = (fs.n_fatent - 2) * fs.csize;
187
+ // freeSectors = freeClusters * fs.csize;
188
+
189
+ // #if FF_MAX_SS != FF_MIN_SS
190
+ // *totalSize = (int64_t)totalSectors * fs.ssize;
191
+ // *totalFreeSpace = (int64_t)freeSectors * fs.ssize;
192
+ // #else
193
+ // *totalSize = (int64_t)totalSectors * FF_MAX_SS;
194
+ // *totalFreeSpace = (int64_t)freeSectors * FF_MAX_SS;
195
+ // #endif
196
196
197
197
*totalSize = -1 ;
198
198
*totalFreeSpace = -1 ;
0 commit comments