diff --git a/src/apps/bin/chkbfs/chkbfs.cpp b/src/apps/bin/chkbfs/chkbfs.cpp index 89ae65f8f7..21f1c9c576 100644 --- a/src/apps/bin/chkbfs/chkbfs.cpp +++ b/src/apps/bin/chkbfs/chkbfs.cpp @@ -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) diff --git a/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/additional_commands.c b/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/additional_commands.c index 03b3c89f8d..bd22b934b4 100644 --- a/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/additional_commands.c +++ b/src/tests/add-ons/kernel/file_systems/bfs/bfs_shell/additional_commands.c @@ -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");