#include <daosFsCommon.h>
|
| ~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...
|
|
Definition at line 56 of file daosFsCommon.h.
◆ ~attrDataType()
daosFsIoCommon::attrDataType::~attrDataType |
( |
| ) |
|
|
overridevirtualdefault |
◆ add()
void daosFsIoCommon::attrDataType::add |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
◆ fill()
Definition at line 170 of file daosFsCommon.cpp.
174 daos_size_t size(
sizeof(buf));
175 throwcall::good0(dfs_listxattr(aHandler.handler.dfs, aHandler.obj, buf, &size),
176 "can't get xattrs for ", aHandler.path);
178 for (
auto readPtr = &buf[0]; readPtr < &buf[size];) {
179 add(readPtr, aHandler.getXattr(readPtr));
References daosFsCommon::dfs, daosFsIoCommon::getXattr(), throwcall::good0(), daosFsIoCommon::handler, daosFsIoCommon::obj, daosFsIoCommon::path, and timer::instanceUnscoped::stop().
◆ set()
void daosFsIoCommon::attrDataType::set |
( |
ioHandle * |
handle | ) |
|
|
overridevirtual |
set this set of attributes on the file described by handle
- Exceptions
-
std::system_error | if attr setting fails |
- Parameters
-
[in] | handle | [in] handler for output file to set attrs on |
Implements ioHandle::attrDataType.
Definition at line 164 of file daosFsCommon.cpp.
165 for (
const auto& item :
xattrs) {
166 handle->
setXattr(item.first, item.second);
References ioHandle::setXattr().
◆ daosFsIoCommon
The documentation for this class was generated from the following files: