Skip to content

Commit f978fb7

Browse files
committed
iop/hdd/apa: do not attempt to restore journal on unformatted HDDs
1 parent 748cd5c commit f978fb7

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)