Skip to content

--link-mode=clone fails with ERROR_MORE_DATA on Windows ReFS Dev Drive #23408

Backlog

Description

@cubelitblade

Summary

Installing annotated-types==0.8.0 with --link-mode=clone consistently fails on a Windows ReFS Dev Drive with ERROR_MORE_DATA (0x800700EA).

Both the uv cache and the virtual environment reside on the same ReFS volume.

The issue is reproducible with both an existing cache and a newly created cache. Installing the same package with --link-mode=copy succeeds.

Environment

  • uv: 0.13.9 (6b2d39dcc 2026-11-17 x86_64-pc-windows-msvc)
  • Python: CPython 3.15.2
  • OS: Windows 11, build 26300
  • Architecture: AMD64
  • Shell: PowerShell 7.7.0
  • File system: ReFS 3.14 (Dev Drive)
  • Cluster size: 4096 bytes

Steps to reproduce

On a ReFS Dev Drive (mounted as V: in this example), run the following commands using a previously unused cache directory and virtual environment:

uv venv V:\uv-repro\new-env --python 3.15

uv pip install annotated-types==0.8.0 `
    --python V:\uv-repro\new-env\Scripts\python.exe `
    --cache-dir V:\uv-repro\fresh-cache `
    --link-mode=clone `
    --no-deps -vv

Expected behavior

The package should be installed successfully using block cloning.

Actual behavior

Dependency resolution and wheel preparation succeed, but installation fails when cloning annotated_types/test_cases.py:

error: Failed to install: annotated_types-0.8.0-py3-none-any.whl (annotated-types==0.8.0)
  cause: Failed to clone `V:\uv-repro\fresh-cache\archive-v0\m7RAYF3xB4ouNmbR\annotated_types\test_cases.py` to
         `V:\uv-repro\new-env\Lib\site-packages\annotated_types\test_cases.py`
  cause: 有更多数据可用。 (os error -2147024662)

The localized error message corresponds to ERROR_MORE_DATA (HRESULT 0x800700EA, Win32 error 234).

Control experiment

Using the same cached wheel and a separate virtual environment, installation succeeds with --link-mode=copy:

uv venv V:\uv-repro\copy-env --python 3.15

uv pip install annotated-types==0.8.0 `
    --python V:\uv-repro\copy-env\Scripts\python.exe `
    --cache-dir V:\uv-repro\fresh-cache `
    --link-mode=copy `
    --offline --no-deps -vv

Output:

Installed 1 package in 14ms
 + annotated-types==0.8.0

Additional findings

Cache Link mode Result
Existing cache clone Failed
Newly created cache clone Failed
Newly created cache copy Succeeded

Both failed installations consistently report the same file and error code.

The affected file, annotated_types/test_cases.py, has a logical size of 6310 bytes. On the ReFS volume with a cluster size of 4096 bytes, it occupies two non-contiguous, single-cluster extents.

Querying its extents in the newly created cache using fsutil file queryExtentsAndRefCounts produces the following results (column names translated into English):

VCN: 0x0  Clusters: 0x1  LCN: 0x187e02  Ref: 0x1
VCN: 0x1  Clusters: 0x1  LCN: 0x187604  Ref: 0x1

Native Windows block cloning was also tested independently using Robocopy, with /NOCLONE as a control, and worked as expected on the same volume.

The underlying cause has not been identified. Reproduction has so far been confirmed on the environment described above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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