From 449929ad0e469a8872903bf11be0b05c3b58f098 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 21 Aug 2023 01:54:26 +0200 Subject: [PATCH] ufs2: Remove few optional stubs Change-Id: I9502c09dad7c03b041abae65f6b7b8e56f3cbbff Reviewed-on: https://review.haiku-os.org/c/haiku/+/6864 Reviewed-by: waddlesplash --- .../file_systems/ufs2/kernel_interface.cpp | 68 +------------------ 1 file changed, 2 insertions(+), 66 deletions(-) diff --git a/src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp b/src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp index 7faba15db7..79ca80cfc6 100644 --- a/src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/ufs2/kernel_interface.cpp @@ -29,26 +29,6 @@ struct identify_cookie }; -#if 0 -//! ufs2_io() callback hook -static status_t -iterative_io_get_vecs_hook(void *cookie, io_request *request, off_t offset, - size_t size, struct file_io_vec *vecs, size_t *_count) -{ - return B_NOT_SUPPORTED; -} - - -//! ufs2_io() callback hook -static status_t -iterative_io_finished_hook(void *cookie, io_request *request, status_t status, - bool partialTransfer, size_t bytesTransferred) -{ - return B_NOT_SUPPORTED; -} -#endif - - // #pragma mark - Scanning static float ufs2_identify_partition(int fd, partition_data *partition, void **_cookie) @@ -578,29 +558,6 @@ ufs2_remove_attr(fs_volume *_volume, fs_vnode *vnode, } -static uint32 -ufs2_get_supported_operations(partition_data *partition, uint32 mask) -{ - return B_NOT_SUPPORTED; -} - - -static status_t -ufs2_initialize(int fd, partition_id partitionID, const char *name, - const char *parameterString, off_t partitionSize, disk_job_id job) -{ - return B_NOT_SUPPORTED; -} - - -static status_t -ufs2_uninitialize(int fd, partition_id partitionID, off_t partitionSize, - uint32 blockSize, disk_job_id job) -{ - return B_NOT_SUPPORTED; -} - - // #pragma mark - static status_t @@ -719,7 +676,7 @@ static file_system_module_info sufs2FileSystem = { "Unix Filesystem 2", // pretty_name // DDM flags - 0| B_DISK_SYSTEM_SUPPORTS_INITIALIZING |B_DISK_SYSTEM_SUPPORTS_CONTENT_NAME + B_DISK_SYSTEM_SUPPORTS_CONTENT_NAME // | B_DISK_SYSTEM_SUPPORTS_WRITING , @@ -730,28 +687,7 @@ static file_system_module_info sufs2FileSystem = { NULL, // free_partition_content_cookie() &ufs2_mount, - - /* capability querying operations */ - &ufs2_get_supported_operations, - - NULL, // validate_resize - NULL, // validate_move - NULL, // validate_set_content_name - NULL, // validate_set_content_parameters - NULL, // validate_initialize, - - /* shadow partition modification */ - NULL, // shadow_changed - - /* writing */ - NULL, // defragment - NULL, // repair - NULL, // resize - NULL, // move - NULL, // set_content_name - NULL, // set_content_parameters - ufs2_initialize, - ufs2_uninitialize}; +}; module_info *modules[] = { (module_info *)&sufs2FileSystem,