xrootd
Macros | Variables
XrdSfsFlags.hh File Reference
#include <sys/stat.h>
#include <fcntl.h>
Include dependency graph for XrdSfsFlags.hh:

Go to the source code of this file.

Macros

#define XRDSFS_POSCPEND   S_ISVTX
 

Variables

static const dev_t XRDSFS_OFFLINE
 
static const dev_t XRDSFS_HASBKUP
 
static const dev_t XRDSFS_RDVMASK
 

Macro Definition Documentation

◆ XRDSFS_POSCPEND

#define XRDSFS_POSCPEND   S_ISVTX

This include file defines certain falgs that can be used by various Sfs plug-ins to passthrough special attributes of regular files. The following flags define the mode bit that can be used to mark a file as close pending. This varies depending on the platform. This supports the Persist On Successful Close (POSC) feature in an efficient way.

Variable Documentation

◆ XRDSFS_HASBKUP

const dev_t XRDSFS_HASBKUP
static
Initial value:
=
static_cast<dev_t>(0x40LL<<((sizeof(dev_t)*8)-8))

◆ XRDSFS_OFFLINE

const dev_t XRDSFS_OFFLINE
static
Initial value:
=
static_cast<dev_t>(0x80LL<<((sizeof(dev_t)*8)-8))

The following bits may be set in the st_rdev member of the stat() structure to indicate special attributes of a regular file. These bits are inspected only when the remaining bits identified by XRD_RDVMASK are set to zero. For backward compatability, offline status is also assumed when st_dev and st_ino are both set to zero.

◆ XRDSFS_RDVMASK

const dev_t XRDSFS_RDVMASK
static
Initial value:
=
static_cast<dev_t>(~(0xffLL<<((sizeof(dev_t)*8)-8)))