Subversion Repositories freemyipod

Rev

Rev 210 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 210 Rev 211
Line 2563... Line 2563...
2563
        if (ftl_open() == 0)
2563
        if (ftl_open() == 0)
2564
        {
2564
        {
2565
            ftl_initialized = true;
2565
            ftl_initialized = true;
2566
            return 0;
2566
            return 0;
2567
        }
2567
        }
2568
        cprintf(CONSOLE_BOOT, "The FTL seems to be damaged. Forcing check.\n");
2568
        cputs(CONSOLE_BOOT, "The FTL seems to be damaged. Forcing check.\n");
2569
        if (ftl_repair() != 0)
2569
        if (ftl_repair() != 0)
2570
            cprintf(CONSOLE_BOOT, "FTL recovery failed. Use disk mode to recover.\n");
2570
            cputs(CONSOLE_BOOT, "FTL recovery failed. Use disk mode to recover.\n");
2571
        else
2571
        else
2572
        {
2572
        {
2573
            cprintf(CONSOLE_BOOT, "FTL recovery finished. Trying to mount again...\n");
2573
            cputs(CONSOLE_BOOT, "FTL recovery finished. Trying to mount again...\n");
2574
            if (ftl_open() == 0)
2574
            if (ftl_open() == 0)
2575
            {
2575
            {
2576
                cprintf(CONSOLE_BOOT, "Mount succeeded.\n");
2576
                cputs(CONSOLE_BOOT, "Mount succeeded.\n");
2577
                ftl_initialized = true;
2577
                ftl_initialized = true;
2578
                return 0;
2578
                return 0;
2579
            }
2579
            }
2580
            cprintf(CONSOLE_BOOT, "Mounting FTL failed again, use disk mode to recover.\n");
2580
            cputs(CONSOLE_BOOT, "Mounting FTL failed again, use disk mode to recover.\n");
2581
        }
2581
        }
2582
    }
2582
    }
2583
 
2583
 
2584
    DEBUGF("FTL: Initialization failed!");
2584
    DEBUGF("FTL: Initialization failed!");
2585
 
2585