mirror of
https://github.com/remzi-arpacidusseau/ostep-homework.git
synced 2024-09-16 08:08:49 +08:00
fix sized bug (thanks to Prabhsimrandeep Singh)
This commit is contained in:
parent
c63ef28a44
commit
2229d331b3
@ -592,7 +592,7 @@ class LFS:
|
||||
|
||||
# write new version of inode, with updated size
|
||||
new_inode = copy.deepcopy(inode)
|
||||
new_inode['size'] = current_offset
|
||||
new_inode['size'] = max(current_offset, inode['size'])
|
||||
for new_offset, new_addr in potential_writes:
|
||||
new_inode['pointers'][new_offset] = new_addr
|
||||
new_inode_address = self.log(new_inode)
|
||||
|
Loading…
Reference in New Issue
Block a user