Added a "cookie" parameter to the fs_read|write|has_page[s]().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8875 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-09-06 22:34:08 +00:00
parent 68085f7cec
commit dd6cb90eac
2 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -1201,21 +1201,21 @@ pipefs_ioctl(fs_volume _volume, fs_vnode _vnode, fs_cookie _cookie, ulong op,
static bool static bool
pipefs_can_page(fs_volume _volume, fs_vnode _v) pipefs_can_page(fs_volume _volume, fs_vnode _v, fs_cookie cookie)
{ {
return false; return false;
} }
static status_t static status_t
pipefs_read_pages(fs_volume _volume, fs_vnode _v, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes) pipefs_read_pages(fs_volume _volume, fs_vnode _v, fs_cookie cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
{ {
return EPERM; return EPERM;
} }
static status_t static status_t
pipefs_write_pages(fs_volume _volume, fs_vnode _v, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes) pipefs_write_pages(fs_volume _volume, fs_vnode _v, fs_cookie cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
{ {
return EPERM; return EPERM;
} }
+10 -10
View File
@@ -407,9 +407,9 @@ rootfs_get_vnode_name(fs_volume _fs, fs_vnode _vnode, char *buffer, size_t buffe
{ {
struct rootfs_vnode *vnode = (struct rootfs_vnode *)_vnode; struct rootfs_vnode *vnode = (struct rootfs_vnode *)_vnode;
TRACE(("devfs_get_vnode_name: vnode = %p\n",vnode)); TRACE(("rootfs_get_vnode_name: vnode = %p (name = %s)\n", vnode, vnode->name));
strlcpy(buffer,vnode->name,bufferSize); strlcpy(buffer, vnode->name, bufferSize);
return B_OK; return B_OK;
} }
@@ -434,7 +434,7 @@ rootfs_get_vnode(fs_volume _fs, vnode_id id, fs_vnode *_vnode, bool reenter)
if (*_vnode) if (*_vnode)
return B_NO_ERROR; return B_NO_ERROR;
return ENOENT; return B_ENTRY_NOT_FOUND;
} }
@@ -446,7 +446,7 @@ rootfs_put_vnode(fs_volume _fs, fs_vnode _vnode, bool reenter)
TRACE(("rootfs_putvnode: entry on vnode 0x%Lx, r %d\n", vnode->id, reenter)); TRACE(("rootfs_putvnode: entry on vnode 0x%Lx, r %d\n", vnode->id, reenter));
#endif #endif
return 0; // whatever return B_OK; // whatever
} }
@@ -471,14 +471,14 @@ rootfs_remove_vnode(fs_volume _fs, fs_vnode _vnode, bool reenter)
if (!reenter) if (!reenter)
mutex_unlock(&fs->lock); mutex_unlock(&fs->lock);
return 0; return B_OK;
} }
static status_t static status_t
rootfs_create(fs_volume _fs, fs_vnode _dir, const char *name, int omode, int perms, fs_cookie *_cookie, vnode_id *new_vnid) rootfs_create(fs_volume _fs, fs_vnode _dir, const char *name, int omode, int perms, fs_cookie *_cookie, vnode_id *new_vnid)
{ {
return EINVAL; return B_BAD_VALUE;
} }
@@ -699,21 +699,21 @@ rootfs_ioctl(fs_volume _fs, fs_vnode _v, fs_cookie _cookie, ulong op, void *buf,
static bool static bool
rootfs_can_page(fs_volume _fs, fs_vnode _v) rootfs_can_page(fs_volume _fs, fs_vnode _v, fs_cookie cookie)
{ {
return false; return false;
} }
static status_t static status_t
rootfs_read_pages(fs_volume _fs, fs_vnode _v, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes) rootfs_read_pages(fs_volume _fs, fs_vnode _v, fs_cookie cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
{ {
return EPERM; return EPERM;
} }
static status_t static status_t
rootfs_write_pages(fs_volume _fs, fs_vnode _v, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes) rootfs_write_pages(fs_volume _fs, fs_vnode _v, fs_cookie cookie, off_t pos, const iovec *vecs, size_t count, size_t *_numBytes)
{ {
return EPERM; return EPERM;
} }