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

27 lines
682 B
C++

#pragma once
#include <common/Common.h>
#include <common/storage/EntryInfo.h>
#include <storage/MetaStore.h>
#include <storage/MetadataEx.h>
class MsgHelperOpen
{
public:
static FhgfsOpsErr openFile(EntryInfo* entryInfo, unsigned accessFlags,
bool useQuota, bool bypassAccessCheck, unsigned msgUserID, MetaFileHandle& outFileInode,
bool isSecondary);
private:
MsgHelperOpen() {}
static FhgfsOpsErr openMetaFile(EntryInfo* entryInfo,
unsigned accessFlags, bool bypassAccessCheck, MetaFileHandle& outOpenInode);
static void openMetaFileCompensate(EntryInfo* entryInfo,
MetaFileHandle inode, unsigned accessFlags);
};