19 lines
479 B
C++
19 lines
479 B
C++
#pragma once
|
|
|
|
#include <common/storage/StorageErrors.h>
|
|
#include <common/net/message/storage/StatStoragePathMsg.h>
|
|
|
|
// derives from config option "StoragePath" and actually is similar to statfs()
|
|
|
|
class StatStoragePathMsgEx : public StatStoragePathMsg
|
|
{
|
|
public:
|
|
virtual bool processIncoming(ResponseContext& ctx);
|
|
|
|
private:
|
|
FhgfsOpsErr statStoragePath(int64_t* outSizeTotal, int64_t* outSizeFree,
|
|
int64_t* outInodesTotal, int64_t* outInodesFree);
|
|
};
|
|
|
|
|