Skip to content

Commit

Permalink
Merge pull request #1822 from winstliu/user/winstonliu/allow-refs
Browse files Browse the repository at this point in the history
Allow mounting on ReFS volumes
  • Loading branch information
dscho authored Oct 25, 2024
2 parents 5870861 + 67a4139 commit c1c54e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GVFS/GVFS.Platform.Windows/ProjFSFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,14 +378,14 @@ public bool IsSupported(string normalizedEnlistmentRootPath, out string warning,

string pathRoot = Path.GetPathRoot(normalizedEnlistmentRootPath);
DriveInfo rootDriveInfo = DriveInfo.GetDrives().FirstOrDefault(x => x.Name == pathRoot);
string requiredFormat = "NTFS";
string[] requiredFormats = new[] { "NTFS", "ReFS" };
if (rootDriveInfo == null)
{
warning = $"Unable to ensure that '{normalizedEnlistmentRootPath}' is an {requiredFormat} volume.";
warning = $"Unable to ensure that '{normalizedEnlistmentRootPath}' is an {string.Join(" or ", requiredFormats)} volume.";
}
else if (!string.Equals(rootDriveInfo.DriveFormat, requiredFormat, StringComparison.OrdinalIgnoreCase))
else if (!requiredFormats.Any(requiredFormat => string.Equals(rootDriveInfo.DriveFormat, requiredFormat, StringComparison.OrdinalIgnoreCase)))
{
error = $"Error: Currently only {requiredFormat} volumes are supported. Ensure repo is located into an {requiredFormat} volume.";
error = $"Only {string.Join(" and ", requiredFormats)} volumes are supported. Ensure your repo is located in an {string.Join(" or ", requiredFormats)} volume.";
return false;
}

Expand Down

0 comments on commit c1c54e5

Please sign in to comment.