Skip to content

fuse3 mount errors are not reliable #406

@op

Description

@op

When creating a new mount in fuse3, there are places where errno is used where the function doesn't seem to set an actual errno. This can result in errors like: Success (os error 0) or other random errors.

This part1 of the Mount::new calls into fuse_session_new2 and fuse_session_mount3 which does not seem to directly set an errno.

PS. We tried to upgrade fuser a couple of days ago but some change seem to make things break for us. Haven't had time to figure this out but the errors spotted were very random because of this.

Footnotes

  1. https://github.com/cberner/fuser/blame/master/src/mnt/fuse3.rs#L38-L58

  2. https://github.com/libfuse/libfuse/blob/59cf26a2d778b88819db528c67141b788a8b48a1/lib/fuse_lowlevel.c#L4321-L4380

  3. https://github.com/libfuse/libfuse/blob/59cf26a2d778b88819db528c67141b788a8b48a1/lib/fuse_lowlevel.c#L4387-L4396

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions