ewmscp  ..
Public Member Functions | Public Attributes | List of all members
gpfsIoCommon::attrDataType Class Reference

#include <gpfsCommon.h>

Inheritance diagram for gpfsIoCommon::attrDataType:
[legend]
Collaboration diagram for gpfsIoCommon::attrDataType:
[legend]

Public Member Functions

 ~attrDataType () override=default
 
void set (ioHandle *handle) override
 set this set of attributes on the file described by handle More...
 
- Public Member Functions inherited from posixFileIoCommon::attrDataType
 ~attrDataType () override=default
 
void add (const std::string &name, const std::string &value)
 
void set (ioHandle *handle) override
 set this set of attributes on the file described by handle More...
 

Public Attributes

char buffer [0x10000]
 
int size
 

Additional Inherited Members

- Protected Member Functions inherited from posixFileIoCommon::attrDataType
void fill (posixFileIoCommon &handler)
 
- Protected Attributes inherited from ioHandle::attrDataType
std::forward_list< std::pair< std::string, std::string > > xattrs
 

Detailed Description

Definition at line 18 of file gpfsCommon.h.

Constructor & Destructor Documentation

◆ ~attrDataType()

gpfsIoCommon::attrDataType::~attrDataType ( )
overridevirtualdefault

Reimplemented from ioHandle::attrDataType.

Member Function Documentation

◆ set()

void gpfsIoCommon::attrDataType::set ( ioHandle handle)
overridevirtual

set this set of attributes on the file described by handle

Exceptions
std::system_errorif attr setting fails
Parameters
[in]handle[in] handler for output file to set attrs on

Implements ioHandle::attrDataType.

Definition at line 45 of file gpfsCommon.cpp.

45  {
46  auto castHandle = dynamic_cast<outputHandler::posixFile::writerPosixFile*>(handle);
48  if (size != 0) {
49  timerInst(gpfs_fputattrs);
50  throwcall::good0(gpfs_fputattrs(castHandle->fd, GPFS_ATTRFLAG_NO_PLACEMENT, buffer),
51  "can't set gpfs attributes for", castHandle->path);
52  }
53 }

References buffer, throwcall::good0(), posixFileIoCommon::attrDataType::set(), size, and timerInst.

Here is the call graph for this function:

Member Data Documentation

◆ buffer

char gpfsIoCommon::attrDataType::buffer[0x10000]

Definition at line 20 of file gpfsCommon.h.

Referenced by set().

◆ size

int gpfsIoCommon::attrDataType::size

Definition at line 21 of file gpfsCommon.h.

Referenced by set().


The documentation for this class was generated from the following files:
outputHandler::posixFile::writerPosixFile
Definition: outputHandlerPosixFile.h:13
gpfsIoCommon::attrDataType::size
int size
Definition: gpfsCommon.h:21
gpfsIoCommon::attrDataType::buffer
char buffer[0x10000]
Definition: gpfsCommon.h:20
posixFileIoCommon::attrDataType::set
void set(ioHandle *handle) override
set this set of attributes on the file described by handle
Definition: posixFileCommon.cpp:171
timerInst
#define timerInst(subfunc)
Definition: timer.h:157
throwcall::good0
void good0(T call, const Args &... args)
template function to wrap system calls that return 0 on success
Definition: throwcall.h:40