beegfs/meta/source/net/msghelpers/MsgHelperLocking.h
2025-08-10 01:34:16 +02:00

28 lines
597 B
C++

#pragma once
#include <common/storage/EntryInfo.h>
#include <common/storage/StorageErrors.h>
#include <common/Common.h>
#include <session/SessionFileStore.h>
/**
* Common helpers for locking related messages.
*/
class MsgHelperLocking
{
public:
static FhgfsOpsErr trySesssionRecovery(EntryInfo* entryInfo, NumNodeID clientID,
unsigned ownerFD, SessionFileStore* sessionFiles, SessionFile** outSessionFile);
static FhgfsOpsErr flockAppend(EntryInfo* entryInfo, unsigned ownerFD,
EntryLockDetails& lockDetails);
private:
MsgHelperLocking() {}
};