← Back to Pull requests

erofs: enable fsview fallback for unsupported features #14077

Closed
unknown closed this pull request without merging on Sep 02, 2026 01:39 UTC
View on GitHub
unknown unknown commented on Sep 01, 2026 03:25 UTC
Author

Fixes #14076

go-erofs returns its own ErrNotImplemented sentinel when its userspace reader cannot open a compressed EROFS filesystem. The EROFS fsview adapter previously returned that error unchanged, so withReadonlyFS did not recognize the operation as unsupported and returned before reaching the existing read-only kernel-mount fallback.

Translate only errors matching go-erofs.ErrNotImplemented at the adapter boundary while preserving the original error and diagnostic in the chain. Other parser, superblock, path, device, and I/O errors remain unchanged.

Add a focused regression test that constructs a minimal parser-valid EROFS image with incompatible compression feature 0x2 and verifies that the returned error matches both the go-erofs and containerd ErrNotImplemented sentinels.

Testing

  • go test ./plugins/mount/fsview/erofs -run '^TestHandleMountUnsupportedCompression$' -count=1

  • go test ./plugins/mount/fsview/erofs ./internal/fsview ./pkg/oci -count=1

  • git diff --check HEAD^ HEAD
  • The original runtime failure is reproduced in #14076. I did not rerun the privileged Kubernetes reproduction against this patched build because the local host does not have mkfs.erofs or kernel EROFS support; the regression test verifies the error classification that enables the existing fallback.

    ``release-note
    Fix fsview fallback to kernel mount for compressed EROFS filesystems
    ``

    Diff: 179 lines (+134 / -45) across 2 files Reviewer: hsiangkao Review duration: 1333m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 179 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    56%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.311
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #14077"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 35.5% (MEDIUM) · Higher = larger blast radius
    35.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 56.8% · Lower = rushed or shallow review
    56.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.4% · Safe to merge
    15.4%