correctly update file size after write
This commit is contained in:
parent
ea3e2a76c4
commit
2ed107478e
11 changed files with 451 additions and 272 deletions
|
|
@ -29,7 +29,7 @@ pub fn main() -> anyhow::Result<()> {
|
|||
println!(
|
||||
"free clusters: {} ({} bytes)",
|
||||
fat_fs.free_clusters(),
|
||||
fat_fs.free_clusters()
|
||||
fat_fs.free_clusters() as usize
|
||||
* fat_fs.bytes_per_sector() as usize
|
||||
* fat_fs.sectors_per_cluster() as usize
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue