0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Macros | Typedefs | Functions
Filesystem.h File Reference

Abstract base class for a filesystem. More...

#include <AsyncComm/DispatchHandler.h>
#include <Common/Serializable.h>
#include <Common/String.h>
#include <Common/StaticBuffer.h>
#include <Common/Status.h>
#include <Common/Timer.h>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for Filesystem.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Hypertable::Filesystem
 Abstract base class for a filesystem. More...
 
class  Hypertable::Filesystem::Dirent
 Directory entry. More...
 

Namespaces

 Hypertable
 Hypertable definitions
 

Macros

#define HT_DIRECT_IO_ALIGNMENT   512
 
#define HT_IO_ALIGNED(size)   (((size) % HT_DIRECT_IO_ALIGNMENT) == 0)
 
#define HT_IO_ALIGNMENT_PADDING(size)   (HT_DIRECT_IO_ALIGNMENT - ((size) % HT_DIRECT_IO_ALIGNMENT))
 

Typedefs

typedef std::shared_ptr
< Filesystem > 
Hypertable::FilesystemPtr
 Smart pointer to Filesystem. More...
 

Functions

bool Hypertable::operator< (const Filesystem::Dirent &lhs, const Filesystem::Dirent &rhs)
 
Filesystem::Flags Hypertable::convert (std::string str)
 Converts string mnemonic to corresponding Filesystem::Flags value. More...
 

Detailed Description

Abstract base class for a filesystem.

All commands have synchronous and asynchronous versions. Commands that operate on the same file descriptor are serialized by the underlying filesystem. In other words, if you issue three asynchronous commands, they will get carried out and their responses will come back in the same order in which they were issued. Unless otherwise mentioned, the methods could throw Exception.

Definition in file Filesystem.h.

Macro Definition Documentation

#define HT_DIRECT_IO_ALIGNMENT   512

Definition at line 49 of file Filesystem.h.

#define HT_IO_ALIGNED (   size)    (((size) % HT_DIRECT_IO_ALIGNMENT) == 0)

Definition at line 51 of file Filesystem.h.

#define HT_IO_ALIGNMENT_PADDING (   size)    (HT_DIRECT_IO_ALIGNMENT - ((size) % HT_DIRECT_IO_ALIGNMENT))

Definition at line 54 of file Filesystem.h.