Skip to content

fs.link() fails on ReFS with "operation not supported on socket" #11663

Description

@tvald
  • Version: v7.7.1
  • Platform: Windows 10 64-bit (14393.693)
  • Subsystem: fs

fs.link('src.txt', 'dst.txt') fails when src.txt is on a ReFS partition. The error is:

Error: ENOTSUP: operation not supported on socket, link 'F:\test\src.txt' -> 'F:\test\dst.txt'
    at Object.fs.linkSync (fs.js:1063:18)
    at repl:1:4unction],
    at ContextifyScript.Script.runInThisContext (vm.js:23:33)
    at REPLServer.defaultEval (repl.js:336:29)
    at bound (domain.js:280:14)
    at REPLServer.runBound [as eval] (domain.js:293:12)
    at REPLServer.onLine (repl.js:533:10)
    at emitOne (events.js:101:20)
    at REPLServer.emit (events.js:191:7),
    at REPLServer.Interface._onLine (readline.js:238:10)

I have verified this on two separate Windows 10 systems. On each system, the same call succeeds on an NTFS partition.

I tried various other calls within the fs module (writeFile, readFile, stat, lstat, rename), and they all worked as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fsIssues and PRs related to the fs subsystem / file system.libuvIssues and PRs related to the libuv dependency or the uv binding.questionIssues that look for answers.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions