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

Fix spfs-fuse task panicking on mask entry #1048

Merged
merged 1 commit into from
Jun 16, 2024
Merged

Fix spfs-fuse task panicking on mask entry #1048

merged 1 commit into from
Jun 16, 2024

Conversation

jrray
Copy link
Collaborator

@jrray jrray commented Jun 14, 2024

Rather than use unreachable!, make attr_from_entry fallible and ignore mask entries inside readdirplus.

Some log lines captured while debugging:

Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: TRACE readdirplus add README.txt
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: TRACE ... readdirplus add README.txt:false
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: ERROR attr_from_entry encountered mask
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]:  WARN Reply not sent for operation 49, replying with I/O error
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: ERROR Error in readdirplus: task 142 panicked

Rather than use `unreachable!`, make `attr_from_entry` fallible and
ignore mask entries inside `readdirplus`.

Some log lines captured while debugging:
```
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: TRACE readdirplus add README.txt
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: TRACE ... readdirplus add README.txt:false
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: ERROR attr_from_entry encountered mask
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]:  WARN Reply not sent for operation 49, replying with I/O error
Jun 13 16:37:40 wolf0848.spimageworks.com spfs[195052]: ERROR Error in readdirplus: task 142 panicked
```

Signed-off-by: J Robert Ray <jrray@imageworks.com>
@jrray jrray added bug Something isn't working SPI AOI Area of interest for SPI labels Jun 14, 2024
@jrray jrray self-assigned this Jun 14, 2024
@jrray jrray requested a review from rydrman June 14, 2024 00:17
Copy link
Collaborator

@rydrman rydrman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I must have thought that this was impossible at some point...

@jrray jrray merged commit 10c3112 into main Jun 16, 2024
7 checks passed
@jrray jrray deleted the fix-fuse-io-error branch June 16, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working SPI AOI Area of interest for SPI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants