From ec152b4fffff1064038c9d2de7f944c77099e0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 24 Sep 2002 16:09:02 +0000 Subject: [PATCH] Some more changes to the attributes fs API: Since BFS can't resolve a vnode_id to an attribute, fs_create_attr() now doesn't return a new vnode_id anymore. Changed all fs_vnode variables to "file" instead of "attr" to avoid any confusion. That means for BFS that the cookie which fs_open_attr() returns will have to include a pointer to the real inode, if the attribute is not part of the file's inode. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1159 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/fs_interface.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/headers/os/kernel/fs_interface.h b/headers/os/kernel/fs_interface.h index 61e3597ace..d7f910a0b8 100644 --- a/headers/os/kernel/fs_interface.h +++ b/headers/os/kernel/fs_interface.h @@ -102,18 +102,18 @@ struct fs_calls { status_t (*fs_rewind_attr_dir)(fs_volume fs, fs_vnode vnode, fs_cookie cookie); /* attribute operations */ - status_t (*fs_create_attr)(fs_volume fs, fs_vnode file, const char *name, vnode_id *_newAttrID); + status_t (*fs_create_attr)(fs_volume fs, fs_vnode file, const char *name); status_t (*fs_open_attr)(fs_volume fs, fs_vnode file, const char *name, int oflags, fs_cookie *_cookie, vnode_id *_attrID); - status_t (*fs_close_attr)(fs_volume fs, fs_vnode attr, fs_cookie cookie); - status_t (*fs_free_attr_cookie)(fs_volume fs, fs_vnode attr, fs_cookie cookie); - ssize_t (*fs_read_attr)(fs_volume fs, fs_vnode attr, fs_cookie cookie, void *buffer, off_t pos, size_t *len); - ssize_t (*fs_write_attr)(fs_volume fs, fs_vnode attr, fs_cookie cookie, const void *buffer, off_t pos, size_t *len); - status_t (*fs_seek_attr)(fs_volume fs, fs_vnode attr, fs_cookie cookie, off_t pos, int seekType); + status_t (*fs_close_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie); + status_t (*fs_free_attr_cookie)(fs_volume fs, fs_vnode file, fs_cookie cookie); + ssize_t (*fs_read_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, void *buffer, off_t pos, size_t *len); + ssize_t (*fs_write_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, const void *buffer, off_t pos, size_t *len); + status_t (*fs_seek_attr)(fs_volume fs, fs_vnode file, fs_cookie cookie, off_t pos, int seekType); status_t (*fs_rename_attr)(fs_volume fs, fs_vnode file, const char *oldName, const char *newName); status_t (*fs_remove_attr)(fs_volume fs, fs_vnode file, const char *name); - status_t (*fs_read_attr_stat)(fs_volume fs, fs_vnode attr, fs_cookie cookie, struct stat *stat); - status_t (*fs_write_attr_stat)(fs_volume fs, fs_vnode attr, fs_cookie cookie, struct stat *stat, int statMask); + status_t (*fs_read_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, struct stat *stat); + status_t (*fs_write_attr_stat)(fs_volume fs, fs_vnode file, fs_cookie cookie, struct stat *stat, int statMask); /* index directory & index operations */ status_t (*fs_open_index_dir)(fs_volume fs, fs_vnode v, fs_cookie *cookie, int oflags);