dmlite::ExtendedStat Struct Reference

File/directory metadata. More...

#include <inode.h>

Inherits dmlite::Extensible.

Collaboration diagram for dmlite::ExtendedStat:
Collaboration graph
[legend]

List of all members.

Public Types

enum  FileStatus { kOnline = '-', kMigrated = 'm' }

Public Member Functions

bool operator== (const ExtendedStat &) const
bool operator!= (const ExtendedStat &) const
bool operator< (const ExtendedStat &) const
bool operator> (const ExtendedStat &) const
void fixchecksums ()
int getchecksum (std::string &cktype, std::string &ckvalue)

Public Attributes

ino_t parent
struct stat stat
FileStatus status
std::string name
std::string guid
std::string csumtype
std::string csumvalue
Acl acl

Detailed Description

File/directory metadata.


Member Enumeration Documentation

Enumerator:
kOnline 
kMigrated 

Member Function Documentation

void dmlite::ExtendedStat::fixchecksums (  ) 
int dmlite::ExtendedStat::getchecksum ( std::string &  cktype,
std::string &  ckvalue 
)

gets a checksum of type csumtype if csumtype is empty, then it gets the legacy one (i.e. the easiest to get) Please note that this function recognizes long checksum name e.g. "adler32" , which internally will be looked up as checksum.adler32'

bool dmlite::ExtendedStat::operator!= ( const ExtendedStat  )  const

Reimplemented from dmlite::Extensible.

bool dmlite::ExtendedStat::operator< ( const ExtendedStat  )  const

Reimplemented from dmlite::Extensible.

bool dmlite::ExtendedStat::operator== ( const ExtendedStat  )  const

Reimplemented from dmlite::Extensible.

bool dmlite::ExtendedStat::operator> ( const ExtendedStat  )  const

Reimplemented from dmlite::Extensible.


Member Data Documentation


The documentation for this struct was generated from the following file:

Generated on 18 Mar 2019 for dmlite by  doxygen 1.6.1