From 123b5d67adbc8ee515ee521dd27ffa372d61f3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 7 Oct 2002 23:37:05 +0000 Subject: [PATCH] Moved the seek() functionality back to the VFS. Renamed read_pages(), and write_pages() to make it more clear. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1446 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/fs_interface.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/headers/os/kernel/fs_interface.h b/headers/os/kernel/fs_interface.h index 9e2dba67c7..3b0ea7039f 100644 --- a/headers/os/kernel/fs_interface.h +++ b/headers/os/kernel/fs_interface.h @@ -60,8 +60,8 @@ typedef struct fs_ops { /* VM file access */ status_t (*can_page)(fs_volume fs, fs_vnode v); - ssize_t (*read_page)(fs_volume fs, fs_vnode v, iovecs *vecs, off_t pos); - ssize_t (*write_page)(fs_volume fs, fs_vnode v, iovecs *vecs, off_t pos); + ssize_t (*read_pages)(fs_volume fs, fs_vnode v, iovecs *vecs, off_t pos); + ssize_t (*write_pages)(fs_volume fs, fs_vnode v, iovecs *vecs, off_t pos); /* common operations */ status_t (*ioctl)(fs_volume fs, fs_vnode v, fs_cookie cookie, ulong op, void *buffer, size_t length); @@ -86,7 +86,6 @@ typedef struct fs_ops { status_t (*free_cookie)(fs_volume fs, fs_vnode v, fs_cookie cookie); ssize_t (*read)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, void *buffer, size_t *length); ssize_t (*write)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, const void *buffer, size_t *length); - off_t (*seek)(fs_volume fs, fs_vnode v, fs_cookie cookie, off_t pos, int seekType); /* directory operations */ status_t (*create_dir)(fs_volume fs, fs_vnode parent, const char *name, int perms, vnode_id *_newVnodeID); @@ -111,7 +110,6 @@ typedef struct fs_ops { status_t (*free_attr_cookie)(fs_volume fs, fs_vnode file, fs_cookie cookie); ssize_t (*read_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, void *buffer, size_t *len); ssize_t (*write_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, const void *buffer, size_t *len); - status_t (*seek_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, int seekType); status_t (*read_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, struct stat *stat); status_t (*write_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, const struct stat *stat, int statMask);