размер страницы и размер блока

This commit is contained in:
Dmitry Borisenko
2020-12-19 14:18:22 +01:00
parent 305b3f32d6
commit 017c6f6234

View File

@@ -9,6 +9,8 @@ void getFSInfo() {
size_t totalBytes = buf.totalBytes; // всего
size_t usedBytes = buf.usedBytes; // использовано
size_t maxOpenFiles = buf.maxOpenFiles; // лимит на открые файлы
size_t blockSize = buf.blockSize;
size_t pageSize = buf.pageSize;
size_t maxPathLength = buf.maxPathLength; // лимит на пути и имена файлов
size_t freeBytes = totalBytes - usedBytes;
@@ -19,6 +21,8 @@ void getFSInfo() {
SerialPrint("I", F("FS"), "totalBytes=" + String(totalBytes));
SerialPrint("I", F("FS"), "usedBytes=" + String(usedBytes));
SerialPrint("I", F("FS"), "maxOpenFiles=" + String(maxOpenFiles));
SerialPrint("I", F("FS"), "blockSize=" + String(blockSize));
SerialPrint("I", F("FS"), "pageSize=" + String(pageSize));
SerialPrint("I", F("FS"), "maxPathLength=" + String(maxPathLength));
SerialPrint("I", F("FS"), "freeBytes=" + String(freeBytes));
SerialPrint("I", F("FS"), "freePer=" + String(freePer));