sstat_t Struct Reference
[Entry data storage.]

A shortened struct stat64. More...

#include <global.h>

Data Fields

union {
   struct timespec   mtim
 The modification time as seconds, microseconds.
   unsigned long long   _mtime
 The same value in a single integer value.
}; 
union {
   struct timespec   ctim
 The creation time as seconds, microseconds.
   unsigned long long   _ctime
 The same value in a single integer value.
}; 
union {
   off_t   size
 The size in bytes (for files, symlinks and directories).
   dev_t   rdev
 The device number (for devices).
}; 
dev_t dev
 Device number of host filesystem.
ino_t ino
 Inode.
mode_t mode
 The access mode (like 0700, 0755) with all other (non-mode) bits, ie S_IFDIR.
uid_t uid
 The owner's id.
gid_t gid
 The group number.

Detailed Description

A shortened struct stat64.

The glibc version needs 96 bytes, this version only 52 bytes.

We save 44 bytes; multiplied with 150 000 entries this makes a difference of 6.6MB.

Definition at line 248 of file global.h.


Field Documentation

union { ... }
union { ... }
union { ... }
unsigned long long sstat_t::_ctime

The same value in a single integer value.

Deprecated:
Currently unused.

Definition at line 262 of file global.h.

unsigned long long sstat_t::_mtime

The same value in a single integer value.

Deprecated:
Currently unused.

Definition at line 255 of file global.h.

struct timespec sstat_t::ctim [read]

The creation time as seconds, microseconds.

Definition at line 259 of file global.h.

Referenced by ops__load_1entry(), ops__save_1entry(), ops__stat_to_action(), st__print_entry_info(), and sync__progress().

dev_t sstat_t::dev
gid_t sstat_t::gid
ino_t sstat_t::ino
mode_t sstat_t::mode
struct timespec sstat_t::mtim [read]

The device number (for devices).

Definition at line 269 of file global.h.

Referenced by hlp__fstat(), ops___dev_to_string(), ops__stat_to_action(), ops__string_to_dev(), st__print_entry_info(), and up__handle_special().

uid_t sstat_t::uid

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

Generated for fsvs by  doxygen 1.6.1