| 259 | |
| 260 | /// FatFS inode 私有数据 |
| 261 | struct FatInode { |
| 262 | vfs::Inode inode; |
| 263 | /// 卷内绝对路径(供 FatFS 操作使用) |
| 264 | std::array<char, kPathBufSize> path{}; |
| 265 | /// FIL 对象(普通文件打开时使用);目录或未使用时为 nullptr |
| 266 | FIL* fil = nullptr; |
| 267 | /// 该槽位是否在使用 |
| 268 | bool in_use = false; |
| 269 | /// DIR 对象(目录迭代状态);未迭代时为 nullptr |
| 270 | DIR* dir = nullptr; |
| 271 | }; |
| 272 | |
| 273 | std::array<FatInode, kMaxInodes> inodes_; |
| 274 |
nothing calls this directly
no outgoing calls
no test coverage detected