New upstream version 8.1.0
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <common/net/message/session/opening/CloseChunkFileMsg.h>
|
||||
|
||||
class CloseChunkFileMsgEx : public CloseChunkFileMsg
|
||||
{
|
||||
private:
|
||||
struct DynamicAttribs
|
||||
{
|
||||
int64_t filesize;
|
||||
int64_t allocedBlocks; // allocated 512byte blocks (relevant for sparse files)
|
||||
int64_t modificationTimeSecs;
|
||||
int64_t lastAccessTimeSecs;
|
||||
uint64_t storageVersion;
|
||||
};
|
||||
|
||||
public:
|
||||
virtual bool processIncoming(ResponseContext& ctx);
|
||||
|
||||
private:
|
||||
FhgfsOpsErr forwardToSecondary(ResponseContext& ctx);
|
||||
bool getDynamicAttribsByFD(int fd, std::string fileHandleID, uint16_t targetID,
|
||||
DynamicAttribs& outDynAttribs);
|
||||
bool getDynamicAttribsByPath(std::string fileHandleID, uint16_t targetID,
|
||||
DynamicAttribs& outDynAttribs);
|
||||
|
||||
std::pair<FhgfsOpsErr, DynamicAttribs> close(ResponseContext& ctx);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user