* Added disk system flags for whether a partition name and partition
content name are supported. * Added file_system_module_info::flags (analogously to partition_module_info::flags) which indicate which disk device features the FS supports. * Replaced the file_system_module_info/partition_module_info::supports_*() hooks by a get_supported_operations() hook and for partitioning systems additionally a get_supported_child_operations() hook. * Updated file and partitioning systems accordingly. * Updated fs_shell accordingly. * Updated the DDM accordingly. The syscall interface remains unchanged, though. * _user_supports_initializing_partition() also checks whether the parent partitioning system is content now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22043 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -54,26 +54,19 @@ public:
|
||||
// Querying
|
||||
// Device must be read locked.
|
||||
|
||||
virtual bool SupportsDefragmenting(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsRepairing(KPartition *partition, bool checkOnly,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsResizing(KPartition *partition, bool *whileMounted);
|
||||
virtual bool SupportsResizingChild(KPartition *child);
|
||||
virtual bool SupportsMoving(KPartition *partition, bool *isNoOp);
|
||||
virtual bool SupportsMovingChild(KPartition *child);
|
||||
virtual bool SupportsSettingName(KPartition *partition);
|
||||
virtual bool SupportsSettingContentName(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsSettingType(KPartition *partition);
|
||||
virtual bool SupportsSettingParameters(KPartition *partition);
|
||||
virtual bool SupportsSettingContentParameters(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsInitializing(KPartition *partition);
|
||||
virtual uint32 GetSupportedOperations(KPartition* partition, uint32 mask);
|
||||
virtual uint32 GetSupportedChildOperations(KPartition* child, uint32 mask);
|
||||
|
||||
// for convenience
|
||||
bool SupportsOperations(KPartition* partition, uint32 operations)
|
||||
{ return (GetSupportedOperations(partition, operations) & operations)
|
||||
== operations; }
|
||||
bool SupportsChildOperations(KPartition* child, uint32 operations)
|
||||
{ return (GetSupportedChildOperations(child, operations) & operations)
|
||||
== operations; }
|
||||
|
||||
virtual bool SupportsInitializingChild(KPartition *child,
|
||||
const char *diskSystem);
|
||||
virtual bool SupportsCreatingChild(KPartition *partition);
|
||||
virtual bool SupportsDeletingChild(KPartition *child);
|
||||
const char *diskSystem);
|
||||
virtual bool IsSubSystemFor(KPartition *partition);
|
||||
|
||||
virtual bool ValidateResize(KPartition *partition, off_t *size);
|
||||
|
||||
@@ -35,17 +35,7 @@ public:
|
||||
|
||||
// Querying
|
||||
|
||||
virtual bool SupportsDefragmenting(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsRepairing(KPartition *partition, bool checkOnly,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsResizing(KPartition *partition, bool *whileMounted);
|
||||
virtual bool SupportsMoving(KPartition *partition, bool *isNoOp);
|
||||
virtual bool SupportsSettingContentName(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsSettingContentParameters(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
virtual bool SupportsInitializing(KPartition *partition);
|
||||
virtual uint32 GetSupportedOperations(KPartition* partition, uint32 mask);
|
||||
|
||||
virtual bool ValidateResize(KPartition *partition, off_t *size);
|
||||
virtual bool ValidateMove(KPartition *partition, off_t *start);
|
||||
|
||||
@@ -29,9 +29,7 @@ public:
|
||||
|
||||
// Scanning
|
||||
|
||||
//! Try to identify a given partition
|
||||
virtual float Identify(KPartition *partition, void **cookie);
|
||||
//! Scan the partition
|
||||
virtual status_t Scan(KPartition *partition, void *cookie);
|
||||
virtual void FreeIdentifyCookie(KPartition *partition, void *cookie);
|
||||
virtual void FreeCookie(KPartition *partition);
|
||||
@@ -39,132 +37,75 @@ public:
|
||||
|
||||
// Querying
|
||||
|
||||
//! Check whether the add-on supports repairing this partition.
|
||||
virtual bool SupportsRepairing(KPartition *partition, bool checkOnly,
|
||||
bool *whileMounted);
|
||||
//! Check whether the add-on supports resizing this partition.
|
||||
virtual bool SupportsResizing(KPartition *partition, bool *whileMounted);
|
||||
//! Check whether the add-on supports resizing children of this partition.
|
||||
virtual bool SupportsResizingChild(KPartition *child);
|
||||
//! Check whether the add-on supports moving this partition.
|
||||
virtual bool SupportsMoving(KPartition *partition, bool *isNoOp);
|
||||
//! Check whether the add-on supports moving children of this partition.
|
||||
virtual bool SupportsMovingChild(KPartition *child);
|
||||
//! Check whether the add-on supports setting name of this partition.
|
||||
virtual bool SupportsSettingName(KPartition *partition);
|
||||
//! Check whether the add-on supports setting name to content of this partition.
|
||||
virtual bool SupportsSettingContentName(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
//! Check whether the add-on supports setting type of this partition.
|
||||
virtual bool SupportsSettingType(KPartition *partition);
|
||||
//! Check whether the add-on supports setting parameters of this partition.
|
||||
virtual bool SupportsSettingParameters(KPartition *partition);
|
||||
//! Check whether the add-on supports setting parameters to content of this partition.
|
||||
virtual bool SupportsSettingContentParameters(KPartition *partition,
|
||||
bool *whileMounted);
|
||||
//! Check whether the add-on supports initializing this partition.
|
||||
virtual bool SupportsInitializing(KPartition *partition);
|
||||
//! Check whether the add-on supports initializing a child of this partition.
|
||||
virtual uint32 GetSupportedOperations(KPartition* partition, uint32 mask);
|
||||
virtual uint32 GetSupportedChildOperations(KPartition* child, uint32 mask);
|
||||
|
||||
virtual bool SupportsInitializingChild(KPartition *child,
|
||||
const char *diskSystem);
|
||||
//! Check whether the add-on supports creating children of this partition.
|
||||
virtual bool SupportsCreatingChild(KPartition *partition);
|
||||
//! Check whether the add-on supports deleting children of this partition.
|
||||
virtual bool SupportsDeletingChild(KPartition *child);
|
||||
//! Check whether the add-on is a subsystem for a given partition.
|
||||
const char *diskSystem);
|
||||
virtual bool IsSubSystemFor(KPartition *partition);
|
||||
|
||||
//! Validates parameters for resizing a partition
|
||||
virtual bool ValidateResize(KPartition *partition, off_t *size);
|
||||
//! Validates parameters for resizing a child partition
|
||||
virtual bool ValidateResizeChild(KPartition *child, off_t *size);
|
||||
//! Validates parameters for moving a partition
|
||||
virtual bool ValidateMove(KPartition *partition, off_t *start);
|
||||
//! Validates parameters for moving a child partition
|
||||
virtual bool ValidateMoveChild(KPartition *child, off_t *start);
|
||||
//! Validates parameters for setting name of a partition
|
||||
virtual bool ValidateSetName(KPartition *partition, char *name);
|
||||
//! Validates parameters for setting name to content of a partition
|
||||
virtual bool ValidateSetContentName(KPartition *partition, char *name);
|
||||
//! Validates parameters for setting type of a partition
|
||||
virtual bool ValidateSetType(KPartition *partition, const char *type);
|
||||
//! Validates parameters for setting parameters of a partition
|
||||
virtual bool ValidateSetParameters(KPartition *partition,
|
||||
const char *parameters);
|
||||
//! Validates parameters for setting parameters to content of a partition
|
||||
virtual bool ValidateSetContentParameters(KPartition *parameters,
|
||||
const char *parameters);
|
||||
//! Validates parameters for initializing a partition
|
||||
virtual bool ValidateInitialize(KPartition *partition, char *name,
|
||||
const char *parameters);
|
||||
//! Validates parameters for creating child of a partition
|
||||
virtual bool ValidateCreateChild(KPartition *partition, off_t *start,
|
||||
off_t *size, const char *type,
|
||||
const char *parameters, int32 *index);
|
||||
//! Counts partitionable spaces on a partition
|
||||
virtual int32 CountPartitionableSpaces(KPartition *partition);
|
||||
//! Retrieves a list of partitionable spaces on a partition
|
||||
virtual status_t GetPartitionableSpaces(KPartition *partition,
|
||||
partitionable_space_data *buffer,
|
||||
int32 count,
|
||||
int32 *actualCount = NULL);
|
||||
|
||||
//! Iterates through supported partition types
|
||||
virtual status_t GetNextSupportedType(KPartition *partition, int32 *cookie,
|
||||
char *type);
|
||||
//! Translates the "pretty" content type to an internal type
|
||||
virtual status_t GetTypeForContentType(const char *contentType,
|
||||
char *type);
|
||||
|
||||
// Shadow partition modification
|
||||
|
||||
//! Calls for additional modifications when shadow partition is changed
|
||||
virtual status_t ShadowPartitionChanged(KPartition *partition,
|
||||
uint32 operation);
|
||||
|
||||
// Writing
|
||||
|
||||
//! Repairs a partition
|
||||
virtual status_t Repair(KPartition *partition, bool checkOnly,
|
||||
KDiskDeviceJob *job);
|
||||
//! Resizes a partition
|
||||
virtual status_t Resize(KPartition *partition, off_t size,
|
||||
KDiskDeviceJob *job);
|
||||
//! Resizes child of a partition
|
||||
virtual status_t ResizeChild(KPartition *child, off_t size,
|
||||
KDiskDeviceJob *job);
|
||||
//! Moves a partition
|
||||
virtual status_t Move(KPartition *partition, off_t offset,
|
||||
KDiskDeviceJob *job);
|
||||
//! Moves child of a partition
|
||||
virtual status_t MoveChild(KPartition *child, off_t offset,
|
||||
KDiskDeviceJob *job);
|
||||
//! Sets name of a partition
|
||||
virtual status_t SetName(KPartition *partition, char *name,
|
||||
KDiskDeviceJob *job);
|
||||
//! Sets name of the content of a partition
|
||||
virtual status_t SetContentName(KPartition *partition, char *name,
|
||||
KDiskDeviceJob *job);
|
||||
//! Sets type of a partition
|
||||
virtual status_t SetType(KPartition *partition, char *type,
|
||||
KDiskDeviceJob *job);
|
||||
//! Sets parameters of a partition
|
||||
virtual status_t SetParameters(KPartition *partition,
|
||||
const char *parameters,
|
||||
KDiskDeviceJob *job);
|
||||
//! Sets parameters to content of a partition
|
||||
virtual status_t SetContentParameters(KPartition *partition,
|
||||
const char *parameters,
|
||||
KDiskDeviceJob *job);
|
||||
//! Creates a child partition
|
||||
virtual status_t CreateChild(KPartition *partition, off_t offset,
|
||||
off_t size, const char *type,
|
||||
const char *parameters, KDiskDeviceJob *job,
|
||||
KPartition **child = NULL,
|
||||
partition_id childID = -1);
|
||||
//! Deletes a child partition
|
||||
virtual status_t DeleteChild(KPartition *child, KDiskDeviceJob *job);
|
||||
//! Initializes a partition with this partitioning system
|
||||
virtual status_t Initialize(KPartition *partition, const char *name,
|
||||
const char *parameters, KDiskDeviceJob *job);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// ddm_modules.h
|
||||
//
|
||||
// Interface to be implemented by partition modules.
|
||||
// Interface to be implemented by partitioning modules.
|
||||
|
||||
#ifndef _K_DISK_DEVICE_MODULES_H
|
||||
#define _K_DISK_DEVICE_MODULES_H
|
||||
@@ -9,180 +9,99 @@
|
||||
#include <module.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
// partition module interface
|
||||
|
||||
// scanning
|
||||
// (the device is write locked)
|
||||
typedef float (*partition_identify_partition)(int fd,
|
||||
partition_data *partition, void **cookie);
|
||||
typedef status_t (*partition_scan_partition)(int fd,
|
||||
partition_data *partition, void *identifyCookie);
|
||||
typedef void (*partition_free_identify_partition_cookie)(
|
||||
partition_data *partition, void *cookie);
|
||||
typedef void (*partition_free_partition_cookie)(partition_data *partition);
|
||||
typedef void (*partition_free_partition_content_cookie)(
|
||||
partition_data *partition);
|
||||
|
||||
// querying
|
||||
// (the device is read locked)
|
||||
typedef bool (*partition_supports_repairing)(partition_data *partition,
|
||||
bool checkOnly);
|
||||
typedef bool (*partition_supports_resizing)(partition_data *partition);
|
||||
typedef bool (*partition_supports_resizing_child)(partition_data *partition,
|
||||
partition_data *child);
|
||||
typedef bool (*partition_supports_moving)(partition_data *partition,
|
||||
bool *isNoOp);
|
||||
typedef bool (*partition_supports_moving_child)(partition_data *partition,
|
||||
partition_data *child);
|
||||
typedef bool (*partition_supports_setting_name)(partition_data *partition);
|
||||
typedef bool (*partition_supports_setting_content_name)(
|
||||
partition_data *partition);
|
||||
typedef bool (*partition_supports_setting_type)(partition_data *partition);
|
||||
typedef bool (*partition_supports_setting_parameters)(
|
||||
partition_data *partition);
|
||||
typedef bool (*partition_supports_setting_content_parameters)(
|
||||
partition_data *partition);
|
||||
typedef bool (*partition_supports_initializing)(partition_data *partition);
|
||||
typedef bool (*partition_supports_initializing_child)(
|
||||
partition_data *partition, const char *system);
|
||||
typedef bool (*partition_supports_creating_child)(partition_data *partition);
|
||||
typedef bool (*partition_supports_deleting_child)(partition_data *partition,
|
||||
partition_data *child);
|
||||
typedef bool (*partition_is_sub_system_for)(partition_data *partition);
|
||||
|
||||
typedef bool (*partition_validate_resize)(partition_data *partition,
|
||||
off_t *size);
|
||||
typedef bool (*partition_validate_resize_child)(partition_data *partition,
|
||||
partition_data *child, off_t *size);
|
||||
typedef bool (*partition_validate_move)(partition_data *partition,
|
||||
off_t *start);
|
||||
typedef bool (*partition_validate_move_child)(partition_data *partition,
|
||||
partition_data *child, off_t *start);
|
||||
typedef bool (*partition_validate_set_name)(partition_data *partition,
|
||||
char *name);
|
||||
typedef bool (*partition_validate_set_content_name)(partition_data *partition,
|
||||
char *name);
|
||||
typedef bool (*partition_validate_set_type)(partition_data *partition,
|
||||
const char *type);
|
||||
typedef bool (*partition_validate_set_parameters)(partition_data *partition,
|
||||
const char *parameters);
|
||||
typedef bool (*partition_validate_set_content_parameters)(
|
||||
partition_data *partition, const char *parameters);
|
||||
typedef bool (*partition_validate_initialize)(partition_data *partition,
|
||||
char *name, const char *parameters);
|
||||
typedef bool (*partition_validate_create_child)(partition_data *partition,
|
||||
off_t *start, off_t *size, const char *type, const char *parameters,
|
||||
int32 *index);
|
||||
typedef status_t (*partition_get_partitionable_spaces)(
|
||||
partition_data *partition, partitionable_space_data *buffer, int32 count,
|
||||
int32 *actualCount);
|
||||
// When not implemented, a standard algorithm is used.
|
||||
|
||||
typedef status_t (*partition_get_next_supported_type)(
|
||||
partition_data *partition, int32 *cookie, char *type);
|
||||
typedef status_t (*partition_get_type_for_content_type)(
|
||||
const char *contentType, char *type);
|
||||
|
||||
// shadow partition modification
|
||||
// (device is write locked)
|
||||
typedef status_t (*partition_shadow_changed)(partition_data *partition,
|
||||
uint32 operation);
|
||||
|
||||
// writing
|
||||
// (device is NOT locked)
|
||||
typedef status_t (*partition_repair)(int fd, partition_id partition,
|
||||
bool checkOnly, disk_job_id job);
|
||||
typedef status_t (*partition_resize)(int fd, partition_id partition,
|
||||
off_t size, disk_job_id job);
|
||||
typedef status_t (*partition_resize_child)(int fd, partition_id partition,
|
||||
off_t size, disk_job_id job);
|
||||
typedef status_t (*partition_move)(int fd, partition_id partition,
|
||||
off_t offset, disk_job_id job);
|
||||
typedef status_t (*partition_move_child)(int fd, partition_id partition,
|
||||
partition_id child, off_t offset, disk_job_id job);
|
||||
typedef status_t (*partition_set_name)(int fd, partition_id partition,
|
||||
const char *name, disk_job_id job);
|
||||
typedef status_t (*partition_set_content_name)(int fd, partition_id partition,
|
||||
const char *name, disk_job_id job);
|
||||
typedef status_t (*partition_set_type)(int fd, partition_id partition,
|
||||
const char *type, disk_job_id job);
|
||||
typedef status_t (*partition_set_parameters)(int fd, partition_id partition,
|
||||
const char *parameters, disk_job_id job);
|
||||
typedef status_t (*partition_set_content_parameters)(int fd,
|
||||
partition_id partition, const char *parameters, disk_job_id job);
|
||||
typedef status_t (*partition_initialize)(int fd, partition_id partition,
|
||||
const char *name, const char *parameters, disk_job_id job);
|
||||
typedef status_t (*partition_create_child)(int fd, partition_id partition,
|
||||
off_t offset, off_t size, const char *type, const char *parameters,
|
||||
disk_job_id job, partition_id *childID);
|
||||
// childID is used for the return value, but is also an optional input
|
||||
// parameter -- -1 to be ignored
|
||||
typedef status_t (*partition_delete_child)(int fd, partition_id partition,
|
||||
partition_id child, disk_job_id job);
|
||||
|
||||
typedef struct partition_module_info {
|
||||
module_info module;
|
||||
const char *pretty_name;
|
||||
const char* pretty_name;
|
||||
uint32 flags;
|
||||
|
||||
// scanning
|
||||
partition_identify_partition identify_partition;
|
||||
partition_scan_partition scan_partition;
|
||||
partition_free_identify_partition_cookie free_identify_partition_cookie;
|
||||
partition_free_partition_cookie free_partition_cookie;
|
||||
partition_free_partition_content_cookie free_partition_content_cookie;
|
||||
// (the device is write locked)
|
||||
float (*identify_partition)(int fd, partition_data* partition,
|
||||
void** cookie);
|
||||
status_t (*scan_partition)(int fd, partition_data* partition,
|
||||
void* identifyCookie);
|
||||
void (*free_identify_partition_cookie)(partition_data* partition,
|
||||
void* cookie);
|
||||
void (*free_partition_cookie)(partition_data* partition);
|
||||
void (*free_partition_content_cookie)(partition_data* partition);
|
||||
|
||||
|
||||
// querying
|
||||
partition_supports_repairing supports_repairing;
|
||||
partition_supports_resizing supports_resizing;
|
||||
partition_supports_resizing_child supports_resizing_child;
|
||||
partition_supports_moving supports_moving;
|
||||
partition_supports_moving_child supports_moving_child;
|
||||
partition_supports_setting_name supports_setting_name;
|
||||
partition_supports_setting_content_name supports_setting_content_name;
|
||||
partition_supports_setting_type supports_setting_type;
|
||||
partition_supports_setting_parameters supports_setting_parameters;
|
||||
partition_supports_setting_content_parameters
|
||||
supports_setting_content_parameters;
|
||||
partition_supports_initializing supports_initializing;
|
||||
partition_supports_initializing_child supports_initializing_child;
|
||||
partition_supports_creating_child supports_creating_child;
|
||||
partition_supports_deleting_child supports_deleting_child;
|
||||
partition_is_sub_system_for is_sub_system_for;
|
||||
// (the device is read locked)
|
||||
uint32 (*get_supported_operations)(partition_data* partition, uint32 mask);
|
||||
uint32 (*get_supported_child_operations)(partition_data* partition,
|
||||
partition_data* child, uint32 mask);
|
||||
|
||||
bool (*supports_initializing_child)(partition_data* partition,
|
||||
const char* system);
|
||||
bool (*is_sub_system_for)(partition_data* partition);
|
||||
|
||||
bool (*validate_resize)(partition_data* partition, off_t* size);
|
||||
bool (*validate_resize_child)(partition_data* partition,
|
||||
partition_data* child, off_t* size);
|
||||
bool (*validate_move)(partition_data* partition, off_t* start);
|
||||
bool (*validate_move_child)(partition_data* partition,
|
||||
partition_data* child, off_t* start);
|
||||
bool (*validate_set_name)(partition_data* partition, char* name);
|
||||
bool (*validate_set_content_name)(partition_data* partition, char* name);
|
||||
bool (*validate_set_type)(partition_data* partition, const char* type);
|
||||
bool (*validate_set_parameters)(partition_data* partition,
|
||||
const char* parameters);
|
||||
|
||||
bool (*validate_set_content_parameters)(partition_data* partition,
|
||||
const char* parameters);
|
||||
bool (*validate_initialize)(partition_data* partition, char* name,
|
||||
const char* parameters);
|
||||
bool (*validate_create_child)(partition_data* partition, off_t* start,
|
||||
off_t* size, const char* type, const char* parameters,
|
||||
int32* index);
|
||||
status_t (*get_partitionable_spaces)(partition_data* partition,
|
||||
partitionable_space_data* buffer, int32 count,
|
||||
int32* actualCount);
|
||||
// When not implemented, a standard algorithm is used.
|
||||
|
||||
status_t (*get_next_supported_type)(partition_data* partition,
|
||||
int32* cookie, char* type);
|
||||
status_t (*get_type_for_content_type)(const char* contentType, char* type);
|
||||
|
||||
partition_validate_resize validate_resize;
|
||||
partition_validate_resize_child validate_resize_child;
|
||||
partition_validate_move validate_move;
|
||||
partition_validate_move_child validate_move_child;
|
||||
partition_validate_set_name validate_set_name;
|
||||
partition_validate_set_content_name validate_set_content_name;
|
||||
partition_validate_set_type validate_set_type;
|
||||
partition_validate_set_parameters validate_set_parameters;
|
||||
partition_validate_set_content_parameters
|
||||
validate_set_content_parameters;
|
||||
partition_validate_initialize validate_initialize;
|
||||
partition_validate_create_child validate_create_child;
|
||||
partition_get_partitionable_spaces get_partitionable_spaces;
|
||||
partition_get_next_supported_type get_next_supported_type;
|
||||
partition_get_type_for_content_type get_type_for_content_type;
|
||||
|
||||
// shadow partition modification
|
||||
partition_shadow_changed shadow_changed;
|
||||
// (device is write locked)
|
||||
status_t (*shadow_changed)(partition_data* partition, uint32 operation);
|
||||
|
||||
|
||||
// writing
|
||||
partition_repair repair;
|
||||
partition_resize resize;
|
||||
partition_resize_child resize_child;
|
||||
partition_move move;
|
||||
partition_move_child move_child;
|
||||
partition_set_name set_name;
|
||||
partition_set_content_name set_content_name;
|
||||
partition_set_type set_type;
|
||||
partition_set_parameters set_parameters;
|
||||
partition_set_content_parameters set_content_parameters;
|
||||
partition_initialize initialize;
|
||||
partition_create_child create_child;
|
||||
partition_delete_child delete_child;
|
||||
// (device is NOT locked)
|
||||
status_t (*repair)(int fd, partition_id partition, bool checkOnly,
|
||||
disk_job_id job);
|
||||
status_t (*resize)(int fd, partition_id partition, off_t size,
|
||||
disk_job_id job);
|
||||
status_t (*resize_child)(int fd, partition_id partition, off_t size,
|
||||
disk_job_id job);
|
||||
status_t (*move)(int fd, partition_id partition, off_t offset,
|
||||
disk_job_id job);
|
||||
status_t (*move_child)(int fd, partition_id partition, partition_id child,
|
||||
off_t offset, disk_job_id job);
|
||||
status_t (*set_name)(int fd, partition_id partition, const char* name,
|
||||
disk_job_id job);
|
||||
status_t (*set_content_name)(int fd, partition_id partition,
|
||||
const char* name, disk_job_id job);
|
||||
status_t (*set_type)(int fd, partition_id partition, const char* type,
|
||||
disk_job_id job);
|
||||
status_t (*set_parameters)(int fd, partition_id partition,
|
||||
const char* parameters, disk_job_id job);
|
||||
status_t (*set_content_parameters)(int fd, partition_id partition,
|
||||
const char* parameters, disk_job_id job);
|
||||
status_t (*initialize)(int fd, partition_id partition, const char* name,
|
||||
const char *parameters, disk_job_id job);
|
||||
status_t (*create_child)(int fd, partition_id partition, off_t offset,
|
||||
off_t size, const char* type, const char* parameters,
|
||||
disk_job_id job, partition_id* childID);
|
||||
// childID is used for the return value, but is also an optional input
|
||||
// parameter -- -1 to be ignored
|
||||
status_t (*delete_child)(int fd, partition_id partition, partition_id child,
|
||||
disk_job_id job);
|
||||
} partition_module_info;
|
||||
|
||||
#endif // _K_DISK_DEVICE_MODULES_H
|
||||
|
||||
Reference in New Issue
Block a user