-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we use 'dd if=/dev/random of=test.img bs=1M count=32' rather than 'if=/dev/zero' and mount it, it will cause an EIO error and get stuck in a loop. This commit addresses an issue where the 'ls' command would read random, meaningless values from 'simplefs_file_ei_block' for uninitialized blocks. This occurred because the blocks contained residual data, leading to erroneous outputs. Changes: 1. Clear the root extent block during the 'mkfs' process to prevent erroneous 'simplefs_file_ei_block' data. 2. Ensure that file data blocks are cleared immediately upon allocation to prevent erroneous 'simplefs_file' data. Close #20 and #50
- Loading branch information
1 parent
5e11fa7
commit 855c339
Showing
4 changed files
with
39 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters