Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MemoryFS example is inaccessible on Windows #92

Open
sugoidogo opened this issue Feb 2, 2020 · 4 comments
Open

MemoryFS example is inaccessible on Windows #92

sugoidogo opened this issue Feb 2, 2020 · 4 comments

Comments

@sugoidogo
Copy link

build.gradle:

plugins {
	id 'java'
	id 'application'
	id 'com.palantir.graal' version '0.6.0-72-gefb17c3'
}
sourceSets {
	main.java.srcDirs = ['src']
}
repositories {
	jcenter()
	mavenCentral()
	maven { url 'https://jitpack.io' }
}
dependencies {
    implementation 'com.github.serceman:jnr-fuse:0.5.3'
}
application{
	mainClassName = 'MemoryFS'
}

I have winfsp 1.5.20002 from Chocolatey v0.10.15
run with gradle run, I mostly get "J:/ is unavailible" when trying to open from Explorer.

@sugoidogo sugoidogo changed the title Cannot run MemoryFS example on Windows MemoryFS example is inaccessible on Windows Feb 2, 2020
@SerCeMan
Copy link
Owner

SerCeMan commented Feb 3, 2020

Hey, @josephsmendoza! What do you mean by "I mostly get". Is the result different from time to time?

@sugoidogo
Copy link
Author

sugoidogo commented Feb 4, 2020

if I keep trying, I can open the drive to see an empty root folder, but any further operations give the same result, including further attempts at opening the drive. Success seems to be random.

@jimkyndemeyer
Copy link

I had the same issue when running with the latest WinFsp 2021 from https://github.com/billziss-gh/winfsp/releases/tag/v1.9

Debugging the MemoryFS example showed that the paths being passed to the Java methods were invalid, containing various mysterious characters from what appeared to be wrong memory offsets.

I uninstalled WinFsp and reinstalled an older 2019.2 version which works: https://github.com/billziss-gh/winfsp/releases/tag/v1.4.19049

Somewhere in the range between those WinFsp releases a change broke compatibility between the two projects.

Hope this is helpful for other people that are looking to get started in Windows.

@jmiguelf
Copy link

jmiguelf commented Jun 5, 2022

jnr-fuse 0.5.7
winfsp 1.4.19049 or the latest version...
same problem with hellofuse.java/memoryfs.java... sometime i can open the drive, sometimes just 'drive isn't ....'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants