diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index e75a28b7b4..8eaeb5113e 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -110,7 +110,7 @@ extern status_t _kern_get_next_image_info(team_id team, int32 *cookie, image_in // VFS functions extern status_t _kern_mount(const char *path, const char *device, const char *fs_name, uint32 flags, const char *args); -extern status_t _kern_unmount(const char *path); +extern status_t _kern_unmount(const char *path, uint32 flags); extern status_t _kern_read_fs_info(dev_t device, struct fs_info *info); extern status_t _kern_write_fs_info(dev_t device, const struct fs_info *info, int mask); extern dev_t _kern_next_device(int32 *_cookie); diff --git a/headers/private/kernel/vfs.h b/headers/private/kernel/vfs.h index f4e919efeb..f27e353624 100755 --- a/headers/private/kernel/vfs.h +++ b/headers/private/kernel/vfs.h @@ -88,7 +88,7 @@ status_t vfs_normalize_path(const char *path, char *buffer, size_t bufferSize, /* calls the syscall dispatcher should use for user file I/O */ status_t _user_mount(const char *path, const char *device, const char *fs_name, uint32 flags, const char *args); -status_t _user_unmount(const char *path); +status_t _user_unmount(const char *path, uint32 flags); status_t _user_read_fs_info(dev_t device, struct fs_info *info); status_t _user_write_fs_info(dev_t device, const struct fs_info *info, int mask); dev_t _user_next_device(int32 *_cookie); diff --git a/src/kernel/libroot/os/fs_volume.c b/src/kernel/libroot/os/fs_volume.c index f03cbe221e..21aeb8c876 100644 --- a/src/kernel/libroot/os/fs_volume.c +++ b/src/kernel/libroot/os/fs_volume.c @@ -1,7 +1,7 @@ -/* -** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ +/* + * Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include @@ -19,6 +19,6 @@ fs_mount_volume(const char *where, const char *device, status_t fs_unmount_volume(const char *path, uint32 flags) { - return _kern_unmount(path/*, flags*/); + return _kern_unmount(path, flags); }