correctly update file size after write
This commit is contained in:
parent
ea3e2a76c4
commit
2ed107478e
11 changed files with 451 additions and 272 deletions
|
|
@ -143,16 +143,12 @@ impl FatFuse {
|
|||
|
||||
debug!("dropping inode {}", ino);
|
||||
|
||||
let Some(removed_inode) = self.inode_table.remove(&ino) else {
|
||||
if self.inode_table.remove(&ino).is_none() {
|
||||
error!("tried to drop inode with ino {}, but was not in table", ino);
|
||||
|
||||
return;
|
||||
};
|
||||
|
||||
if removed_inode.borrow().ino() != ino {
|
||||
error!("removed inode was not expected inode");
|
||||
}
|
||||
|
||||
let first_cluster = inode.first_cluster();
|
||||
|
||||
if first_cluster != 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue