Now sets the magic value in the check_control structure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3382 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c3f10b4674
commit
58453f3bbb
@ -122,6 +122,7 @@ main(int argc, char **argv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
control.magic = BFS_IOCTL_CHECK_MAGIC;
|
||||
control.flags = BFS_FIX_BITMAP_ERRORS;
|
||||
|
||||
while (*++argv)
|
||||
|
@ -28,6 +28,7 @@ do_chkbfs(int argc, char **argv)
|
||||
}
|
||||
|
||||
memset(&result, 0, sizeof(result));
|
||||
result.magic = BFS_IOCTL_CHECK_MAGIC;
|
||||
result.flags = argc > 1 ? BFS_FIX_BITMAP_ERRORS : 0;
|
||||
if (argc > 2) {
|
||||
printf("will fix any severe errors!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user