1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:37:35 +00:00

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.
This commit is contained in:
Liav A 2022-07-09 10:10:21 +03:00 committed by Andreas Kling
parent b1ed151c9c
commit 9dbec601b0
3 changed files with 5 additions and 6 deletions

View file

@ -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;
}