You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now File and Directory are just integers, and they are joined by Volume. All the info is stored inside the volume manager.
The upside is you no longer have to pass the right volume along with your file handle! It also becomes much easier to implement a Drop trait on File if you want (although we don't for the reasons explained in the comments).
The downside is the File object no longer has any methods. The upside is that it's much easier to store files.
By default the `VolumeManager` will initialize with a maximum number of `4` open directoriesand files. This can be customized by specifying the `MAX_DIR`and `MAX_FILES` generic consts of the `VolumeManager`:
50
+
By default the `VolumeManager` will initialize with a maximum number of `4` open directories, files and volumes. This can be customized by specifying the `MAX_DIR`, `MAX_FILES`and `MAX_VOLUMES` generic consts of the `VolumeManager`:
52
51
53
52
```rust
54
-
// Create a volume manager with a maximum of 6 open directories and 12 open files
0 commit comments