Skip to content

MemoryMappedFile.CreateFromFile constraints on Unix should be loosened to support IFCHR #26626

@stephentoub

Description

@stephentoub

MemoryMappedFile.CreateFromFile enforces a variety of constraints about the target file. Those constraints make sense when working with disk-based files, but they don't all make sense when working with special files. For example, it should be possible to create a map for /dev/mem, but such a special file has zero length, which causes a bunch of the checks in both MemoryMappedFile and MemoryMappedView to fail.

Metadata

Metadata

Assignees

Labels

area-System.IOenhancementProduct code improvement that does NOT require public API changes/additionsos-linuxLinux OS (any supported distro)os-mac-os-xmacOS aka OSX

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions