New: Detect shfs mounts

This commit is contained in:
Bogdan 2024-04-08 21:44:07 +03:00
parent 2e043c0cf7
commit d3cbb9be8d
1 changed files with 10 additions and 9 deletions

View File

@ -6,15 +6,16 @@ namespace NzbDrone.Mono.Disk
{ {
public static class FindDriveType public static class FindDriveType
{ {
private static readonly Dictionary<string, DriveType> DriveTypeMap = new Dictionary<string, DriveType> private static readonly Dictionary<string, DriveType> DriveTypeMap = new ()
{ {
{ "afpfs", DriveType.Network }, { "afpfs", DriveType.Network },
{ "apfs", DriveType.Fixed }, { "apfs", DriveType.Fixed },
{ "fuse.mergerfs", DriveType.Fixed }, { "fuse.mergerfs", DriveType.Fixed },
{ "fuse.glusterfs", DriveType.Network }, { "fuse.shfs", DriveType.Fixed },
{ "nullfs", DriveType.Fixed }, { "fuse.glusterfs", DriveType.Network },
{ "zfs", DriveType.Fixed } { "nullfs", DriveType.Fixed },
}; { "zfs", DriveType.Fixed }
};
public static DriveType Find(string driveFormat) public static DriveType Find(string driveFormat)
{ {