Skip to content

Various improvments#1

Open
gonzzor wants to merge 9 commits into
rickyzheng:masterfrom
gonzzor:fixes
Open

Various improvments#1
gonzzor wants to merge 9 commits into
rickyzheng:masterfrom
gonzzor:fixes

Conversation

@gonzzor

@gonzzor gonzzor commented Jun 25, 2015

Copy link
Copy Markdown

Some minor corrections but most notably an improved checking of the tree during mount.

gonzzor added 9 commits June 25, 2015 11:50
If a file spans more than one block and that block isn't found during
mount it would be possible for uffs_ftruncate() to end up in an endless
loop. Ensure that this doesn't happen by breaking the loop if
do_TruncateInternalWithBlockRecover() fails for any reason.

The error code is already set by do_TruncateInternalWithBlockRecover().
Doing seek and ftruncate on a directory is wrong, but give the user a
better clue of why this happened.
In preparation for the next commits, break out the current loop into a
separate function.

Fix a typo in the log as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants