fat_io_lib finally works, implement virtual partition devices, manage devices via string keys
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -32,13 +32,18 @@ struct vfs_volume {
|
||||
bool locked;
|
||||
struct proc_suspension_q sq;
|
||||
struct {
|
||||
int (*mount) (struct vfs_volume* volume, struct proc* proc, struct reschedule_ctx* rctx);
|
||||
int (*mount) (struct vfs_volume* volume);
|
||||
|
||||
int (*format) (struct vfs_volume* volume);
|
||||
|
||||
int (*describe) (struct vfs_volume* volume, const char* path, struct desc* desc);
|
||||
|
||||
int (*read) (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size);
|
||||
|
||||
int (*write) (struct vfs_volume* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size);
|
||||
|
||||
int (*read_dir_entry) (struct vfs_volume* volume, const char* path, struct dir_entry* entry,
|
||||
size_t entry_num);
|
||||
} driver_ops;
|
||||
@@ -51,13 +56,14 @@ struct vfs_volume_table {
|
||||
spin_lock_t lock;
|
||||
};
|
||||
|
||||
int vfs_create_volume (const char* key, int fs_type, struct device* back_device, struct proc* proc,
|
||||
struct reschedule_ctx* rctx);
|
||||
int vfs_create_volume (const char* key, int fs_type, struct device* back_device);
|
||||
|
||||
int vfs_volume_open (struct proc* proc, const char* volume, struct reschedule_ctx* rctx);
|
||||
|
||||
int vfs_volume_close (struct proc* proc, const char* volume, struct reschedule_ctx* rctx);
|
||||
|
||||
int vfs_format (struct proc* proc, const char* volume_name);
|
||||
|
||||
int vfs_read (struct proc* proc, const char* volume, const char* path, uint8_t* buffer, size_t off,
|
||||
size_t size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user