Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jun 23, 2025

cc @tmds

This PR adds documentation for the DriveInfo.DriveFormat breaking change in .NET 10 Preview 6, where Linux systems now return Linux kernel filesystem type strings instead of mapped magic constants.

Changes Made

  • Added: docs/core/compatibility/core-libraries/10.0/driveinfo-driveformat-linux.md - Complete breaking change documentation
  • Updated: docs/core/compatibility/10.0.md - Added entry to Core .NET libraries section

Key Details Documented

  • Previous behavior: Used magic constants mapping, couldn't distinguish between filesystem types like ext3/ext4
  • New behavior: Returns Linux kernel filesystem type strings for more granular information
  • Specific changes:
    • cgroupfs/cgroup2fscgroup/cgroups
    • selinuxselinuxfs
  • User guidance: How to read filesystem types from /proc/self/mountinfo

Documentation Standards

  • ✅ Follows established breaking change documentation template
  • ✅ Proper cross-references using <xref:...> syntax
  • ✅ Markdown linting validation passes
  • ✅ Alphabetically positioned in compatibility index

This provides developers with clear guidance on adapting their code for the enhanced filesystem type detection capabilities in .NET 10.

Fixes #46831.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.0.md Breaking changes in .NET 10
docs/core/compatibility/core-libraries/10.0/driveinfo-driveformat-linux.md DriveInfo.DriveFormat returns Linux filesystem types
docs/core/compatibility/toc.yml docs/core/compatibility/toc

Copilot AI changed the title [WIP] [Breaking change]: DriveInfo.DriveFormat Linux values. Document DriveInfo.DriveFormat Linux breaking change for .NET 10 Jun 23, 2025
Copilot AI requested a review from gewarren June 23, 2025 18:11
@gewarren gewarren marked this pull request as ready for review June 24, 2025 10:05
@gewarren gewarren requested a review from a team as a code owner June 24, 2025 10:05
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM @gewarren

Let's :shipit:

@gewarren gewarren enabled auto-merge (squash) June 24, 2025 16:46
@gewarren gewarren merged commit fc58d36 into main Jun 24, 2025
10 checks passed
@gewarren gewarren deleted the copilot/fix-46831 branch June 24, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: DriveInfo.DriveFormat Linux values.

4 participants