🎨Separate read-only filesystems from identify-only filesystem interfaces.

This commit is contained in:
2017-12-26 07:23:09 +00:00
parent 3bbb645556
commit 6aee3c9cb1
74 changed files with 206 additions and 3407 deletions

View File

@@ -105,70 +105,17 @@ namespace DiscImageChef.Filesystems
sb.AppendFormat("Filesystem name: {0}", bfsSb.s_fsname).AppendLine();
sb.AppendFormat("Volume name: {0}", bfsSb.s_volume).AppendLine();
xmlFsType = new FileSystemType();
xmlFsType.Type = "BFS";
xmlFsType.VolumeName = bfsSb.s_volume;
xmlFsType.ClusterSize = (int)imagePlugin.Info.SectorSize;
xmlFsType.Clusters = (long)(partition.End - partition.Start + 1);
xmlFsType = new FileSystemType
{
Type = "BFS",
VolumeName = bfsSb.s_volume,
ClusterSize = (int)imagePlugin.Info.SectorSize,
Clusters = (long)(partition.End - partition.Start + 1)
};
information = sb.ToString();
}
public virtual Errno Mount(IMediaImage imagePlugin, Partition partition, Encoding encoding, bool debug)
{
return Errno.NotImplemented;
}
public virtual Errno Unmount()
{
return Errno.NotImplemented;
}
public virtual Errno MapBlock(string path, long fileBlock, ref long deviceBlock)
{
return Errno.NotImplemented;
}
public virtual Errno GetAttributes(string path, ref FileAttributes attributes)
{
return Errno.NotImplemented;
}
public virtual Errno ListXAttr(string path, ref List<string> xattrs)
{
return Errno.NotImplemented;
}
public virtual Errno GetXattr(string path, string xattr, ref byte[] buf)
{
return Errno.NotImplemented;
}
public virtual Errno Read(string path, long offset, long size, ref byte[] buf)
{
return Errno.NotImplemented;
}
public virtual Errno ReadDir(string path, ref List<string> contents)
{
return Errno.NotImplemented;
}
public virtual Errno StatFs(ref FileSystemInfo stat)
{
return Errno.NotImplemented;
}
public virtual Errno Stat(string path, ref FileEntryInfo stat)
{
return Errno.NotImplemented;
}
public virtual Errno ReadLink(string path, ref string dest)
{
return Errno.NotImplemented;
}
struct BFSSuperBlock
{
/// <summary>0x00, 0x1BADFACE</summary>