Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use filesystem name mapping on FreeBSD #105417

Merged
merged 5 commits into from
Jul 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
.
  • Loading branch information
am11 authored Jul 24, 2024
commit ee930e9a14b150791a9e5505cff1c83c75c941e1
2 changes: 1 addition & 1 deletion src/native/libs/System.Native/pal_io.c
Original file line number Diff line number Diff line change
@@ -1727,7 +1727,7 @@ uint32_t SystemNative_GetFileSystemType(intptr_t fd)
// * Specifically, on FreeBSD with ZFS, f_type may return a value like 0xDE when emulating
// FreeBSD on macOS (e.g., FreeBSD-x64 on macOS ARM64). Therefore, we use f_fstypename to
// get the correct filesystem type.
return MapFileSystemNameToEnum(statfsArgs.f_fstypename);
return MapFileSystemNameToEnum(statfsArgs.f_fstypename);
#else
// On Linux, f_type is signed. This causes some filesystem types to be represented as
// negative numbers on 32-bit platforms. We cast to uint32_t to make them positive.
Loading