Cosmos/source/Cosmos.System2/FileSystem/FatFileSystemFactory.cs
fanoI d2ecdfdeee First part of the work on DiskManager
- plugged DriveInfo
- added tests for DriveInfo
- added to VFS a new method RegisterFilesystem()
2018-04-13 17:43:00 +02:00

23 lines
855 B
C#

using Cosmos.HAL.BlockDevice;
using Cosmos.System.FileSystem.FAT;
using System;
using System.Collections.Generic;
using System.Text;
namespace Cosmos.System.FileSystem
{
public class FatFileSystemFactory : FileSystemFactory
{
public override string Name { get => "FAT"; }
/// <summary>
/// Initializes a new instance of the <see cref="FatFileSystem"/> class.
/// </summary>
/// <param name="aDevice">The partition.</param>
/// <param name="aRootPath">The root path.</param>
/// <exception cref="Exception">FAT signature not found.</exception>
public override FileSystem Create(Partition aDevice, string aRootPath, long aSize) => new FatFileSystem(aDevice, aRootPath, aSize);
public override bool IsType(Partition aDevice) => FatFileSystem.IsDeviceFat(aDevice);
}
}