The Pedigree Project  0.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
RawFs Class Reference

#include <RawFs.h>

+ Inheritance diagram for RawFs:
+ Collaboration diagram for RawFs:

Public Member Functions

virtual bool initialise (Disk *pDisk)
 
virtual FilegetRoot () const
 
virtual String getVolumeLabel () const
 
virtual uint64_t read (File *pFile, uint64_t location, uint64_t size, uintptr_t buffer, bool canBlock)
 
virtual uint64_t write (File *pFile, uint64_t location, uint64_t size, uintptr_t buffer, bool canBlock)
 
virtual void truncate (File *pFile)
 
virtual void fileAttributeChanged (File *pFile)
 
virtual void cacheDirectoryContents (File *pFile)
 
- Public Member Functions inherited from Filesystem
 Filesystem ()
 
virtual ~Filesystem ()
 
virtual Filefind (const StringView &path)
 
virtual Filefind (const String &path)
 
virtual Filefind (const StringView &path, File *pStartNode)
 
virtual Filefind (const String &path, File *pStartNode)
 
bool createFile (const StringView &path, uint32_t mask, File *pStartNode=0)
 
bool createDirectory (const StringView &path, uint32_t mask, File *pStartNode=0)
 
bool createSymlink (const StringView &path, const String &value, File *pStartNode=0)
 
bool createLink (const StringView &path, File *target, File *pStartNode=0)
 
bool remove (const StringView &path, File *pStartNode=0)
 
DiskgetDisk ()
 
bool isReadOnly ()
 
virtual bool isCaseSensitive ()
 

Static Public Member Functions

static Filesystemprobe (Disk *pDisk)
 

Protected Member Functions

virtual bool createFile (File *parent, const String &filename, uint32_t mask)
 
virtual bool createDirectory (File *parent, const String &filename, uint32_t mask)
 
virtual bool createSymlink (File *parent, const String &filename, const String &value)
 
virtual bool remove (File *parent, File *file)
 
- Protected Member Functions inherited from Filesystem
virtual bool createLink (File *parent, const String &filename, File *target)
 

Private Member Functions

 RawFs (const RawFs &)
 
RawFsoperator= (const RawFs &)
 

Private Attributes

class RawFsDirm_pRoot
 

Additional Inherited Members

- Public Types inherited from Filesystem
typedef Filesystem *(* ProbeCallback) (Disk *)
 
- Protected Attributes inherited from Filesystem
bool m_bReadOnly
 
Diskm_pDisk
 

Detailed Description

Provides access to Disks without mounting their contained filesystem (raw device access).

Definition at line 32 of file RawFs.h.

Member Function Documentation

virtual bool RawFs::createDirectory ( File parent,
const String filename,
uint32_t  mask 
)
inlineprotectedvirtual

createDirectory calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 85 of file RawFs.h.

virtual bool RawFs::createFile ( File parent,
const String filename,
uint32_t  mask 
)
inlineprotectedvirtual

createFile calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 80 of file RawFs.h.

virtual bool RawFs::createSymlink ( File parent,
const String filename,
const String value 
)
inlineprotectedvirtual

createSymlink calls this after it has parsed the string path.

Implements Filesystem.

Definition at line 90 of file RawFs.h.

File * RawFs::getRoot ( ) const
virtual

Returns the root filesystem node.

Implements Filesystem.

Definition at line 48 of file RawFs.cc.

References VFS::addAlias(), RawFsDir::addEntry(), VFS::addMountCallback(), Device::Disk, Device::getChild(), Device::getName(), Device::getNumChildren(), getRoot(), Device::getType(), VFS::instance(), NOTICE, and RawFsDir::removeRecursive().

Referenced by getRoot(), and initialise().

+ Here is the caller graph for this function:

virtual String RawFs::getVolumeLabel ( ) const
inlinevirtual

Returns a string identifying the volume label.

Implements Filesystem.

Definition at line 50 of file RawFs.h.

virtual bool RawFs::initialise ( Disk pDisk)
inlinevirtual

Populates this filesystem with data from the given Disk device.

Returns
true on success, false on failure.

Implements Filesystem.

Definition at line 41 of file RawFs.h.

References getRoot().

virtual bool RawFs::remove ( File parent,
File file 
)
inlineprotectedvirtual

Remove a file given a parent and file, assuming path parsing already completed.

Implements Filesystem.

Definition at line 94 of file RawFs.h.


The documentation for this class was generated from the following files: