cryptomator / dokany-nio-adapter

Dokany-based adapter to provide directory contents specified by a java.nio.file.Path (via dokan-java)
GNU Affero General Public License v3.0
14 stars 4 forks source link

Impossible to mount more filesystems than number of CPU cores #46

Closed infeo closed 3 years ago

infeo commented 3 years ago

Library version: 1.2.0 Dokany API/Driver version: 140/400

If one tries to mount more filesytems than the number of CPU cores on the system, after this number is reached no more filesystems are mounted.

The reason is that for running the mount processes the [ForkJoinPool.commonPool()](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/concurrent/ForkJoinPool.html#commonPool()) is used, which uses a parallelism level equal to the number of CPU cores.

infeo commented 3 years ago

Fixed in d431a606ef20ef563cb23e223a34f103855bd6f4