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

[Question] How to support file renames? #59

Open
lostintangent opened this issue Aug 21, 2017 · 4 comments
Open

[Question] How to support file renames? #59

lostintangent opened this issue Aug 21, 2017 · 4 comments

Comments

@lostintangent
Copy link

lostintangent commented Aug 21, 2017

I've got a writeable filesystem implemented successfully, however, I can't seem to figure out how to get file renames to work. I've implemented the rename operation, but if I try to rename a file, I get an EPERM: operation not permitted, rename error message. Just to double-check, I also set every file and directory's stat mode to include read/write/execute permissions for everyone, and I still can't seem to get rename working.

Is there a trick to getting this to work? My rename handler doesn't even appear to be getting called, so I seem to be missing something (that's probably obvious!). Any suggestions would be greatly appreciated!

@sam0x17
Copy link
Contributor

sam0x17 commented Aug 22, 2017

If I remember correctly (and I could be wrong), there is a trick to this. Try implementing other operations if you get stuck, as usually it's because some other obscure operation is involved in the one you are trying to get to work.

@lostintangent
Copy link
Author

@sam0x17 Thanks! I made an attempt at doing this today, but it's possible I missed one as part of the guess-and-check process :)

@lostintangent
Copy link
Author

Just noticed your comment here: winfsp/winfsp#79. I'll try out that trick.

@sam0x17
Copy link
Contributor

sam0x17 commented Aug 24, 2017

@lostintangent haha I knew there was something about this somewhere

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

2 participants