CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
directory_entry.cc
Go to the documentation of this file.
1 
5 #include "directory_entry.h"
6 
7 namespace catalog {
8 
10  const DirectoryEntryBase &other) const
11 {
13 
14  if (name() != other.name()) {
15  result |= Difference::kName;
16  }
17  if (linkcount() != other.linkcount()) {
18  result |= Difference::kLinkcount;
19  }
20  if (size() != other.size()) {
21  result |= Difference::kSize;
22  }
23  if (mode() != other.mode()) {
24  result |= Difference::kMode;
25  }
26  if (mtime() != other.mtime()) {
27  result |= Difference::kMtime;
28  }
29  if (symlink() != other.symlink()) {
30  result |= Difference::kSymlink;
31  }
32  if (checksum() != other.checksum()) {
33  result |= Difference::kChecksum;
34  }
35  if (HasXattrs() != other.HasXattrs()) {
37  }
38 
39  return result;
40 }
41 
43  const DirectoryEntry &other) const
44 {
46 
47  if (hardlink_group() != other.hardlink_group()) {
49  }
50  if ( (IsNestedCatalogRoot() != other.IsNestedCatalogRoot()) ||
53  }
54  if (IsChunkedFile() != other.IsChunkedFile()) {
56  }
57  if (IsExternalFile() != other.IsExternalFile()) {
59  }
60  if (IsBindMountpoint() != other.IsBindMountpoint()) {
62  }
63  if (IsHidden() != other.IsHidden()) {
64  result |= Difference::kHiddenFlag;
65  }
66  if (IsDirectIo() != other.IsDirectIo()) {
67  result |= Difference::kDirectIoFlag;
68  }
69 
70  return result;
71 }
72 
73 } // namespace catalog
uint32_t linkcount() const
static const unsigned int kHardlinkGroup
bool IsExternalFile() const
Differences CompareTo(const DirectoryEntry &other) const
static const unsigned int kHiddenFlag
time_t mtime() const
static const unsigned int kChecksum
bool IsHidden() const
bool IsChunkedFile() const
uint64_t size() const
static const unsigned int kDirectIoFlag
bool IsDirectIo() const
shash::Any checksum() const
unsigned int mode() const
bool IsNestedCatalogMountpoint() const
bool IsNestedCatalogRoot() const
NameString name() const
static const unsigned int kExternalFileFlag
bool HasXattrs() const
static const unsigned int kHasXattrsFlag
static const unsigned int kName
Differences CompareTo(const DirectoryEntryBase &other) const
LinkString symlink() const
static const unsigned int kNestedCatalogTransitionFlags
static const unsigned int kLinkcount
static const unsigned int kMtime
bool IsBindMountpoint() const
static const unsigned int kChunkedFileFlag
static const unsigned int kSymlink
static const unsigned int kSize
static const unsigned int kMode
static const unsigned int kBindMountpointFlag
uint32_t hardlink_group() const
static const unsigned int kIdentical
unsigned int Differences