Implemented bfs_setflags().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3367 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a13beecdee
commit
a9aa5ee181
@ -66,7 +66,7 @@ Volume
|
||||
|
||||
kernel_interface
|
||||
|
||||
- missing functions, maybe they are not really needed: bfs_rename_attr(), bfs_rename_index(), bfs_initialize(), bfs_setflags(), bfs_link()
|
||||
- missing functions, maybe they are not really needed: bfs_rename_attr(), bfs_rename_index(), bfs_initialize(), bfs_link()
|
||||
- bfs_rename() currently doesn't respect any permissions
|
||||
|
||||
|
||||
|
@ -692,13 +692,18 @@ bfs_ioctl(void *_ns, void *_node, void *_cookie, int cmd, void *buffer, size_t b
|
||||
}
|
||||
|
||||
|
||||
/** Sets the open-mode flags for the open file cookie - only
|
||||
* supports O_APPEND currently, but that should be sufficient
|
||||
* for a file system.
|
||||
*/
|
||||
|
||||
int
|
||||
bfs_setflags(void *ns, void *node, void *cookie, int flags)
|
||||
bfs_setflags(void *_ns, void *_node, void *_cookie, int flags)
|
||||
{
|
||||
FUNCTION_START(("node = %p, flags = %d", node, flags));
|
||||
|
||||
// ToDo: implement bfs_setflags()!
|
||||
INFORM(("setflags not yet implemented...\n"));
|
||||
file_cookie *cookie = (file_cookie *)_cookie;
|
||||
cookie->open_mode = (cookie->open_mode & ~O_APPEND) | (flags & O_APPEND);
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user