jacobsa / fuse

A Go package for implementing a FUSE file system.
Apache License 2.0
478 stars 106 forks source link

Handling error during initOp response to kernel #151

Closed raj-prince closed 9 months ago

raj-prince commented 9 months ago

Currently, we do not handle errors while responding to the kernel. Ideally, we should handle this for all operations; however, that requires more changes. Currently, we are narrowing the scope to errors that occur while communicating the InitOp response to the kernel. This will fail the mounting process, which is not happening right now.

Related issues: https://github.com/GoogleCloudPlatform/gcsfuse/issues/583

I have manually tested by adding a custom error message while writing a message. However, I am not able to reproduce the above mentioned issue.

mountWithArgs: mountWithStorageHandle: Mount: newConnection: Init: writeMessage: Test error [80 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0]

Impact: After this change, if the user-daemon fails to respond the kernel for initOp with an error, the user will not be able to mount successfully.