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

Unable to write file: Function not implemented on ReFS file system since version 2.48.1 #5427

Open
0xfeeddeadbeef opened this issue Feb 14, 2025 · 5 comments

Comments

@0xfeeddeadbeef
Copy link

0xfeeddeadbeef commented Feb 14, 2025

After I've updated my Git to v2.48.1.windows.1, the commands git init, git gc and git add (probably many more, I haven't tried) started failing in repositories that reside on ReFS formatted disks.

This problem was not present in previous release 2.47.1(2).

Example:

# edit global.json and try to git add:
> git add ./global.json

error: unable to write file .git/objects/b1/6c1afa0351d335de649b03647d10bdc8a4e023: Function not implemented
error: global.json: failed to insert into database
error: unable to index file 'global.json'
fatal: updating files failed

The same commands still work without problems on NTFS formatted disks. The same commands also work in previous 2.47.1(2) Git version on the same ReFS disks.

And no, disks are not damaged, I tried same commands on two different SSDs, and two different HDDs.

Additional info

OS version: Windows Server 2022 10.0.20348.3207
Some relevant .gitconfig entries:

[core]
    longPaths = true
    symlinks = true
    fscache = true
    commitGraph = true
[rerere]
    enabled = true
    autoUpdate = true
[fetch]
    prune = true
    writeCommitGraph = true
[pack]
    threads = 1
[gc]
    auto = 1
    writeCommitGraph = true
[maintenance]
    auto = true
@dscho
Copy link
Member

dscho commented Feb 14, 2025

I use a DevDrive (which is ReFS, I believe) on 10.0.26100.3194 and I do not get this error with git version 2.48.1.windows.1...

Is there maybe any way you can build Git and see what exact function call reports ENOSYS?

@jensver
Copy link

jensver commented Feb 17, 2025

I have the same issue with version 2.48.1 on Windows Server 2022 (10.0.20348.3091) when using an ReFS disk.
I tested it on an NTFS disk on the same server, and it works fine. So, the issue occurs only with repositories on an ReFS disk.
For now, the solution was to roll back to version 2.47.1.

@dscho
Copy link
Member

dscho commented Feb 17, 2025

I have the same issue with version 2.48.1 on Windows Server 2022 (10.0.20348.3091) when using an ReFS disk.

@jensver so maybe you can build Git and single-step to find out which function call reports ENOSYS? That would probably help resolve the issue much quicker.

For now, the solution was to roll back to version 2.47.1.

If you want to be stuck with that version, that's a fine approach.

@jensver
Copy link

jensver commented Feb 18, 2025

@jensver so maybe you can build Git and single-step to find out which function call reports ENOSYS? That would probably help resolve the issue much quicker.

I'm sorry, that's not really my area of expertise.

@dscho
Copy link
Member

dscho commented Feb 18, 2025

that's not really my area of expertise.

@jensver sorry to hear that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants