Skip to content

Commit 287ca58

Browse files
authored
Merge pull request #727 from pcm720/master
[ps2hdd] Do not restore journal on unformatted HDDs to avoid corrupting non-APA HDDs
2 parents 748cd5c + f978fb7 commit 287ca58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iop/hdd/apa/src/hdd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ int APA_ENTRYPOINT(int argc, char *argv[])
339339
{
340340
if(hddDevices[i].status<2)
341341
{
342-
if(apaJournalRestore(i) != 0)
342+
if((hddDevices[i].status != 1) && apaJournalRestore(i) != 0)
343343
{
344344
APA_PRINTF(APA_DRV_NAME": error: log check failed.\n");
345345
return hddInitError();

0 commit comments

Comments
 (0)