Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verify target directory / file when extracting #10

Open
gitqlt opened this issue Jun 29, 2019 · 2 comments
Open

Verify target directory / file when extracting #10

gitqlt opened this issue Jun 29, 2019 · 2 comments

Comments

@gitqlt
Copy link

gitqlt commented Jun 29, 2019

When extracting, the program crashes when the target directory specified does not exist

fatcat /tmp/sdh.img -O 1048576 -x /tmp/NoDir
Extracting /LOST.DIR/132 to NoDir/LOST.DIR/132
.        �dH�yNyNH�yN�..       �dH�yNyNH�yN��Segmentation fault (core dumped)

In normal cases the target directory exists and the recovery process starts working.
However, we may run out of disk space, in which case the program silently creates the output files with zero length.

@gitqlt gitqlt changed the title Verify target folder / file when extracting Verify target directory / file when extracting Jun 29, 2019
@Gregwar
Copy link
Owner

Gregwar commented Jun 30, 2019

Ok so this issue is related to the fact that you extract to a target where there is no space remaining ?

@gitqlt
Copy link
Author

gitqlt commented Jun 30, 2019

Not really.

At the beginning, the target filesystem has a few GB of free space. Here I create the targetdir and then start the -x targetdir recovery process. When the file system becomes full, the remaining files are created with zero length.

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

No branches or pull requests

2 participants