From ee2b7e932a4589d3ec690a3831f994b0e23cfbdb Mon Sep 17 00:00:00 2001 From: Tulio A M Mendes Date: Mon, 25 May 2026 18:19:21 -0300 Subject: [PATCH] vfs: remove obsolete 'drive' field from fat_mount and ext2_mount (P5.2) --- include/ext2.h | 1 - include/fat.h | 1 - src/kernel/ext2.c | 1 - src/kernel/fat.c | 1 - 4 files changed, 4 deletions(-) diff --git a/include/ext2.h b/include/ext2.h index c878fac7..592a1e13 100644 --- a/include/ext2.h +++ b/include/ext2.h @@ -19,7 +19,6 @@ struct ext2_group_desc; /* Per-mount filesystem state */ struct ext2_mount { const block_device_t* bdev; - int drive; uint32_t part_lba; /* partition start LBA */ uint32_t block_size; /* bytes per block (1024, 2048, or 4096) */ uint32_t sectors_per_block; diff --git a/include/fat.h b/include/fat.h index eb5f886e..ca774a00 100644 --- a/include/fat.h +++ b/include/fat.h @@ -23,7 +23,6 @@ enum fat_type { /* Per-mount filesystem state */ struct fat_mount { const block_device_t* bdev; - int drive; uint32_t part_lba; uint16_t bytes_per_sector; uint8_t sectors_per_cluster; diff --git a/src/kernel/ext2.c b/src/kernel/ext2.c index 829401d3..05b2a54a 100644 --- a/src/kernel/ext2.c +++ b/src/kernel/ext2.c @@ -1444,7 +1444,6 @@ vfs_mount_result_t ext2_mount(const block_device_t* bdev, uint32_t partition_lba memset(em, 0, sizeof(*em)); em->bdev = bdev; - em->drive = bdev->drive_id; em->part_lba = partition_lba; struct ext2_superblock sb; diff --git a/src/kernel/fat.c b/src/kernel/fat.c index cbcf5b4b..ebf7afba 100644 --- a/src/kernel/fat.c +++ b/src/kernel/fat.c @@ -1150,7 +1150,6 @@ vfs_mount_result_t fat_mount(const block_device_t* bdev, uint32_t partition_lba) memset(fm, 0, sizeof(*fm)); fm->bdev = bdev; - fm->drive = bdev->drive_id; uint8_t boot_sec[FAT_SECTOR_SIZE]; if (fat_read_sector(fm, partition_lba, boot_sec) < 0) { -- 2.43.0