hrev52548 adds 1 changeset to branch 'master'
old head: 8c053e955ea87e1cc2c1292237ff7fcf836cf495
new head: 041a1f36390d7dd010927f53d7d1307ce3082111
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=041a1f36390d+%5E8c053e955ea8
----------------------------------------------------------------------------
041a1f36390d: userlandfs: Only add kernel flags in RequestAllocator in
_KERNEL_MODE.
Otherwise, create_area fails with "Invalid Argument." Should fix the
"empty directory in userlandfs mount" bug that has been appearing
since the cloneable-area fixes.
Change-Id: I26e73539a9f345e76b22a34a68fe4b49c63683c2
Reviewed-on: https://review.haiku-os.org/707
Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>
[ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev52548
Commit: 041a1f36390d7dd010927f53d7d1307ce3082111
URL: https://git.haiku-os.org/haiku/commit/?id=041a1f36390d
Author: Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date: Sun Nov 18 05:07:16 2018 UTC
Committer: waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sun Nov 18 05:09:13 2018 UTC
----------------------------------------------------------------------------
1 file changed, 5 insertions(+), 1 deletion(-)
.../kernel/file_systems/userlandfs/private/RequestAllocator.cpp | 6 +++++-
----------------------------------------------------------------------------
diff --git
a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp
b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp
index 56104c3f08..348b16232f 100644
--- a/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp
+++ b/src/add-ons/kernel/file_systems/userlandfs/private/RequestAllocator.cpp
@@ -240,7 +240,11 @@ RequestAllocator::AllocateAddress(Address& address, int32
size, int32 align,
B_ANY_ADDRESS,
#endif
areaSize, B_NO_LOCK,
- B_READ_AREA | B_WRITE_AREA | B_USER_CLONEABLE_AREA);
+ B_READ_AREA | B_WRITE_AREA
+#ifdef _KERNEL_MODE
+ | B_KERNEL_READ_AREA | B_KERNEL_WRITE_AREA |
B_USER_CLONEABLE_AREA
+#endif
+ );
if (area < 0)
RETURN_ERROR(area);
fAllocatedAreas[fAllocatedAreaCount++] = area;