* Added file_system_module_info::uninitialize() analogously to
partition_module_info::uninitialize(). * Implemented the hook for BFS. * Implemented KFileSystem::Uninitialize(). Fixes failure to initialize a BFS initialized device with an intel partition map. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -294,6 +294,8 @@ struct file_system_module_info {
|
||||
const char* parameters, disk_job_id job);
|
||||
status_t (*initialize)(int fd, partition_id partition, const char* name,
|
||||
const char* parameters, off_t partitionSize, disk_job_id job);
|
||||
status_t (*uninitialize)(int fd, partition_id partition,
|
||||
off_t partitionSize, uint32 blockSize, disk_job_id job);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -326,6 +326,9 @@ typedef struct fssh_file_system_module_info {
|
||||
fssh_status_t (*initialize)(int fd, fssh_partition_id partition,
|
||||
const char *name, const char *parameters,
|
||||
fssh_off_t partitionSize, fssh_disk_job_id job);
|
||||
fssh_status_t (*uninitialize)(int fd, fssh_partition_id partition,
|
||||
fssh_off_t partitionSize, uint32_t blockSize,
|
||||
fssh_disk_job_id job);
|
||||
} fssh_file_system_module_info;
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2003-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2003-2011, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
@@ -53,6 +53,8 @@ public:
|
||||
virtual status_t Initialize(KPartition* partition,
|
||||
const char* name, const char* parameters,
|
||||
disk_job_id job);
|
||||
virtual status_t Uninitialize(KPartition* partition,
|
||||
disk_job_id job);
|
||||
|
||||
protected:
|
||||
virtual status_t LoadModule();
|
||||
|
||||
Reference in New Issue
Block a user