ldas-tools-ldasgen 2.7.3
|
Perform stat or lstat system call. More...
Public Types | |
enum | mode_type { MODE_NONE , MODE_STAT , MODE_LSTAT } |
Specify the type of request. More... | |
typedef struct stat | buffer_type |
Public Member Functions | |
lStat () | |
virtual | ~lStat () |
virtual void | OnCompletion (int TaskThreadState) |
Action to be done when task completes. More... | |
void | Reset (const std::string &Path, mode_type Mode) |
Initialize the instance for use. More... | |
void | Sync (buffer_type &StatBuffer) |
Syncronize the callers buffer with the local buffer. More... | |
Protected Member Functions | |
virtual int | eval () |
Do the stat or lstat system call. More... | |
Private Attributes | |
mode_type | m_mode |
std::string | m_path |
buffer_type | m_statbuf |
Perform stat or lstat system call.
This class wraps the lstat and stat system call. The benifit of using this call is that the caller is protected from NFS servers that are hung.
typedef struct stat anonymous_namespace{Stat.cc}::lStat::buffer_type |
enum anonymous_namespace{Stat.cc}::lStat::mode_type |
anonymous_namespace{Stat.cc}::lStat::lStat | ( | ) |
|
virtual |
|
protectedvirtual |
Do the stat or lstat system call.
|
virtual |
Action to be done when task completes.
void anonymous_namespace{Stat.cc}::lStat::Reset | ( | const std::string & | Path, |
mode_type | Mode | ||
) |
Initialize the instance for use.
[in] | Path | The pathname of any file within the mounted filesystem. |
[in] | Mode | Variation of stat call to use. |
void anonymous_namespace{Stat.cc}::lStat::Sync | ( | buffer_type & | StatBuffer | ) |
Syncronize the callers buffer with the local buffer.
|
private |
|
private |
|
private |