Disk: add --disk-show-readonly

This commit is contained in:
李通洲
2023-08-26 12:50:45 +08:00
parent 7358326a13
commit 32d6436027
7 changed files with 40 additions and 4 deletions
+3
View File
@@ -215,6 +215,9 @@ static void detectStats(FFDisk* disk)
disk->filesTotal = (uint32_t) fs.f_files;
disk->filesUsed = (uint32_t) (disk->filesTotal - fs.f_ffree);
if(fs.f_flag & ST_RDONLY)
disk->type |= FF_DISK_VOLUME_TYPE_READONLY_BIT;
}
const char* ffDetectDisksImpl(FFlist* disks)