Closed glbrntt closed 1 month ago
API break is a false-positive as it's SPI:
16:20:09 1 breaking change detected in _NIOFileSystem:
16:20:09 💔 API breakage: func SystemFileHandle.SendableView._close(materialize:) has been renamed to func _close(materialize:failRenameat2WithEINVAL:)
Motivation:
'renameat2' can fail with EINVAL if the RENAME_NOREPLACE flag isn't supported. However, not all kernel versions support this flag which can result in an error when creating a file 'transactionally'.
Using 'renameat2' only happens on Linux as a fallback when O_TMPFILE isn't available.
Modifications:
Result:
Files can still be created exclusively