git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git bug report - disk errors on Windows after push

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 22, 2022, 16:13 UTC
Message-ID
<xmqq1qxpcd08.fsf@gitster.g>
In-Reply-To
<220422.868rrx5uju.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> For something like an external disk that may have its power cable yanked
> I'd give it about even odds that it's HW v.s. git's own FS syncing logic
> being at fault.
Given that the original report had this:
    Disk errors. After pushing to a directory (my origin field is C:\Work
    for example) the git repository will be corrupted.
    Moreover causing disk errors not only in the target git bare
    repository. I've loosed some other files.

that clearly stated that the corruption spreads outside repositories managed (and written and fsynced) by Git, it does not seem likely that Git's relying on "closing is enough as sync daemon will eventually flush them" is the primary source of corruption.

The recent "are we fsyncing correctly?" topic is about how likely we would survive in the presense of actions like unplugging without unmounting. It does not help a bit against flaky hardware, and even when it helps, it is merely making the damage caused by such actions less severe.

Previous: Attila Csosz
Message 10 of 10 in “Git bug report - disk errors on Windows after push”
  1. Attila CsoszApr 18, 2022
  2. brian m. carlsonApr 18, 2022
  3. Attila CsoszApr 19, 2022
  4. brian m. carlsonApr 20, 2022
  5. Neeraj SinghApr 20, 2022
  6. Attila CsoszApr 21, 2022
  7. Neeraj SinghApr 21, 2022
  8. Ævar Arnfjörð BjarmasonApr 22, 2022
  9. Attila CsoszApr 22, 2022
  10. Junio C HamanoApr 22, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.