ufs2: Add close and free_cookie
Change-Id: Iff7c341ab91b61d57c1509fc0acb9f0a840d6bdd Reviewed-on: https://review.haiku-os.org/c/haiku/+/6862 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
This commit is contained in:
parent
0f0d334a50
commit
f2ce9dda40
@ -307,14 +307,17 @@ ufs2_read(fs_volume *_volume, fs_vnode *_node, void *_cookie, off_t pos,
|
||||
static status_t
|
||||
ufs2_close(fs_volume *_volume, fs_vnode *_node, void *_cookie)
|
||||
{
|
||||
return B_NOT_SUPPORTED;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
static status_t
|
||||
ufs2_free_cookie(fs_volume *_volume, fs_vnode *_node, void *_cookie)
|
||||
{
|
||||
return B_NOT_SUPPORTED;
|
||||
file_cookie* cookie = (file_cookie*)_cookie;
|
||||
|
||||
delete cookie;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
static status_t
|
||||
@ -428,14 +431,15 @@ static status_t
|
||||
ufs2_close_dir(fs_volume * /*_volume*/, fs_vnode * /*node*/,
|
||||
void * /*_cookie*/)
|
||||
{
|
||||
return B_NOT_SUPPORTED;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
static status_t
|
||||
ufs2_free_dir_cookie(fs_volume *_volume, fs_vnode *_node, void *_cookie)
|
||||
{
|
||||
return B_NOT_SUPPORTED;
|
||||
delete (DirectoryIterator*)_cookie;
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user