1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00
Commit Graph

7 Commits

Author SHA1 Message Date
Jan Kühle
8769284245 Fix possible deadlock because of never unlocked mutex during failed unmount (#31)
* Fix possible deadlock because of never unlocked mutex during failed unmount.

* Fix segmentation fault after unmounting.

Scenario:
1. Mount path /a
2. Mount path /b
3. Unmount path /b
4. Appempt to read from path /a will throw segmentation fault.

Reason:
The function bindings_alloc correctly allocates memory and sets the index property of the binding. Afterwards the mount function does memset again for the binding and resets the index to zero. Unmounting will now always NULL the binding at position zero. However the actual binding on position zero is still mounted and the next access to it results in segmentation fault.
2016-10-17 13:50:38 +02:00
Raymond Hammarling
2f4e33a41e added FUSE_USE_VERSION define in header 2015-08-07 03:58:01 +02:00
Raymond Hammarling
13fc745c1f Use abstr_thread_t instead of thread_t for thread typedef 2015-08-07 03:51:38 +02:00
Raymond Hammarling
84b17e1efa fixes on Linux 2015-08-06 21:39:12 +02:00
Raymond Hammarling
4aa5a3da3a added Windows abstractions + dokany (still wip)
dokany found at `dokan-dev/dokany`
2015-08-06 21:33:27 +02:00
Raymond Hammarling
7a87f2cea2 abstract threads, mutexes 2015-08-06 19:28:38 +02:00
Raymond Hammarling
a6192b1ad2 move semaphore abstractions to header file 2015-08-06 18:36:11 +02:00