Rename read syscall, vfs_read and so to xxx_read_file
This commit is contained in:
@@ -57,24 +57,24 @@ int vfs_create_volume (const char* key, int fs_type, struct device* back_device)
|
||||
volume->driver_ops.mount = &tarfs_mount;
|
||||
volume->driver_ops.format = &tarfs_format;
|
||||
volume->driver_ops.describe = &tarfs_describe;
|
||||
volume->driver_ops.read = &tarfs_read;
|
||||
volume->driver_ops.write = &tarfs_write;
|
||||
volume->driver_ops.read_file = &tarfs_read_file;
|
||||
volume->driver_ops.write_file = &tarfs_write_file;
|
||||
volume->driver_ops.read_dir_entry = &tarfs_read_dir_entry;
|
||||
break;
|
||||
case VFS_FAT16:
|
||||
volume->driver_ops.mount = &fatfs_mount;
|
||||
volume->driver_ops.format = &fatfs16_format;
|
||||
volume->driver_ops.describe = &fatfs_describe;
|
||||
volume->driver_ops.read = &fatfs_read;
|
||||
volume->driver_ops.write = &fatfs_write;
|
||||
volume->driver_ops.read_file = &fatfs_read_file;
|
||||
volume->driver_ops.write_file = &fatfs_write_file;
|
||||
volume->driver_ops.read_dir_entry = &fatfs_read_dir_entry;
|
||||
break;
|
||||
case VFS_FAT32:
|
||||
volume->driver_ops.mount = &fatfs_mount;
|
||||
volume->driver_ops.format = &fatfs32_format;
|
||||
volume->driver_ops.describe = &fatfs_describe;
|
||||
volume->driver_ops.read = &fatfs_read;
|
||||
volume->driver_ops.write = &fatfs_write;
|
||||
volume->driver_ops.read_file = &fatfs_read_file;
|
||||
volume->driver_ops.write_file = &fatfs_write_file;
|
||||
volume->driver_ops.read_dir_entry = &fatfs_read_dir_entry;
|
||||
break;
|
||||
default:
|
||||
@@ -183,8 +183,8 @@ int vfs_format (struct proc* proc, const char* volume_name) {
|
||||
return volume->driver_ops.format (volume);
|
||||
}
|
||||
|
||||
int vfs_read (struct proc* proc, const char* volume_name, const char* path, uint8_t* buffer,
|
||||
size_t off, size_t size) {
|
||||
int vfs_read_file (struct proc* proc, const char* volume_name, const char* path, uint8_t* buffer,
|
||||
size_t off, size_t size) {
|
||||
struct vfs_volume* volume = vfs_find_volume (volume_name);
|
||||
|
||||
if (volume == NULL)
|
||||
@@ -199,7 +199,7 @@ int vfs_read (struct proc* proc, const char* volume_name, const char* path, uint
|
||||
|
||||
spin_unlock (&volume->lock);
|
||||
|
||||
return volume->driver_ops.read (volume, path, buffer, off, size);
|
||||
return volume->driver_ops.read_file (volume, path, buffer, off, size);
|
||||
}
|
||||
|
||||
int vfs_describe (struct proc* proc, const char* volume_name, const char* path, struct desc* desc) {
|
||||
|
||||
Reference in New Issue
Block a user