Cosmos/source/Cosmos.Kernel.FileSystems/FileSystem.cs
2008-07-20 15:27:30 +00:00

30 lines
No EOL
752 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.FileSystem {
public class FilesystemEntry {
public ulong Id;
public string Name;
public bool IsDirectory;
public bool IsReadonly;
public ulong Size;
}
public abstract class Filesystem {
public abstract uint BlockSize {
get;
}
public abstract ulong RootId {
get;
}
public abstract FilesystemEntry[] GetDirectoryListing(ulong aId);
public abstract bool ReadBlock(ulong aId,
ulong aBlock,
byte[] aBuffer);
}
}