Build fix -- accidently committed stuff that doesn't exist yet.

* Also removed debug leftover from register_additional_commands().
This commit is contained in:
Axel Dörfler 2012-03-01 09:32:09 +01:00
parent 7633665c77
commit e7985acc3c
2 changed files with 3 additions and 4 deletions

View File

@ -15,7 +15,6 @@ namespace FSShell {
void void
register_additional_commands() register_additional_commands()
{ {
puts("************************ HERE I AM!!!!!!!!!!!!!!!!!");
CommandManager::Default()->AddCommand(command_checkfs, "checkfs", CommandManager::Default()->AddCommand(command_checkfs, "checkfs",
"check file system"); "check file system");
} }

View File

@ -37,7 +37,7 @@ command_checkfs(int argc, const char* const* argv)
result.flags = 0; result.flags = 0;
if (!checkOnly) { if (!checkOnly) {
result.flags |= BFS_FIX_BITMAP_ERRORS | BFS_REMOVE_WRONG_TYPES result.flags |= BFS_FIX_BITMAP_ERRORS | BFS_REMOVE_WRONG_TYPES
| BFS_REMOVE_INVALID | BFS_FIX_NAME_MISMATCHES | BFS_FIX_BPLUSTREES; | BFS_REMOVE_INVALID | BFS_FIX_NAME_MISMATCHES /*| BFS_FIX_BPLUSTREES*/;
} }
// start checking // start checking
@ -70,8 +70,8 @@ command_checkfs(int argc, const char* const* argv)
fssh_dprintf(", has wrong type"); fssh_dprintf(", has wrong type");
if ((result.errors & BFS_NAMES_DONT_MATCH) != 0) if ((result.errors & BFS_NAMES_DONT_MATCH) != 0)
fssh_dprintf(", names don't match"); fssh_dprintf(", names don't match");
if ((result.errors & BFS_INVALID_BPLUSTREE) != 0) // if ((result.errors & BFS_INVALID_BPLUSTREE) != 0)
fssh_dprintf(", invalid b+tree"); // fssh_dprintf(", invalid b+tree");
fssh_dprintf("\n"); fssh_dprintf("\n");
} }
if ((result.mode & (S_INDEX_DIR | 0777)) == S_INDEX_DIR) if ((result.mode & (S_INDEX_DIR | 0777)) == S_INDEX_DIR)