diff options
author | Liav A <liavalb@gmail.com> | 2022-07-09 10:10:21 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-10 14:57:55 +0200 |
commit | 9dbec601b0fdfe18ec425a6dd6518740309fd78a (patch) | |
tree | 1e327698a18c441da13b45da8334e79079093f8f /Userland/Services | |
parent | b1ed151c9cefe37d6f668afb2411f93864ff1b5f (diff) | |
download | serenity-9dbec601b0fdfe18ec425a6dd6518740309fd78a.zip |
Kernel+SystemServer: Make KCOVDevice a character device
This device should not be a block device, as in Serenity, block devices
represent an interface to either disk partitions or storage devices.
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/SystemServer/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Services/SystemServer/main.cpp b/Userland/Services/SystemServer/main.cpp index 5d0f767f02..795106df20 100644 --- a/Userland/Services/SystemServer/main.cpp +++ b/Userland/Services/SystemServer/main.cpp @@ -275,8 +275,8 @@ static void populate_devtmpfs_devices_based_on_devctl() break; } case 30: { - if (is_block_device) { - create_devtmpfs_block_device(String::formatted("/dev/kcov{}", minor_number), 0666, 30, minor_number); + if (!is_block_device) { + create_devtmpfs_char_device(String::formatted("/dev/kcov{}", minor_number), 0666, 30, minor_number); } break; } |