mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
New: Detect shfs mounts in disk space
(cherry picked from commit 1aef91041e404f76f278f430e4e53140fb125792)
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user