27 lines
682 B
C++
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);
|
|
|
|
};
|
|
|