Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mmap with MAP_SHARED fails on GPFS, causing packed backend to fail #7136

@HAOCHENYE

Description

@HAOCHENYE

mmap with MAP_SHARED fails on IBM GPFS, causing packed backend to fail

Summary

When using libgit2 on IBM GPFS (General Parallel File System), repositories with packed objects fail to load because the packed backend uses mmap with MAP_SHARED flag, which is not supported by GPFS.

Root Cause

The packed backend in libgit2 uses mmap with MAP_SHARED flag to map packed object files. However, IBM GPFS does not support the MAP_SHARED flag, causing mmap to fail.

Impact

This issue was discovered through the following call chain:

  • powerlevel10k zsh theme → gitstatus → libgit2 → packed backend → mmap with MAP_SHARED

The same repositories work perfectly fine on other file systems like local disk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions