You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.3 KiB
59 lines
1.3 KiB
/*++
|
|
|
|
Copyright (c) 2000 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
fsapi.h
|
|
|
|
Abstract:
|
|
|
|
External APIs to replication file system
|
|
|
|
Author:
|
|
|
|
Ahmed Mohamed (ahmedm) 1-Feb-2000
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _FS_API_H
|
|
#define _FS_API_H
|
|
|
|
// upto 16 nodes for now, node id start from 1
|
|
#define FsMaxNodes 17
|
|
|
|
// initial crs log is 16 sectors, which is 8k
|
|
#define FsCrsNumSectors 16
|
|
|
|
DWORD FsInit(PVOID, PVOID *);
|
|
void FsExit(PVOID);
|
|
void FsEnd(PVOID);
|
|
DWORD FsRegister(PVOID, LPWSTR name, LPWSTR ipcshare, LPWSTR disks[], DWORD disksz, DWORD ArbTime, HANDLE *fsid);
|
|
DWORD FsUpdateReplicaSet(HANDLE fsid, LPWSTR disks[], DWORD disksz);
|
|
PVOID FsArbitrate(PVOID vid, HANDLE *event, HANDLE *ArbThread);
|
|
DWORD FsCompleteArbitration(PVOID arg, DWORD delta);
|
|
DWORD FsIsOnlineReadonly(PVOID vid);
|
|
DWORD FsIsOnlineReadWrite(PVOID vid);
|
|
DWORD FsRelease(PVOID vid);
|
|
DWORD FsReserve(PVOID vid);
|
|
VOID FsSignalShutdown(PVOID arg);
|
|
|
|
BOOL IsArbInProgress(PVOID arg);
|
|
VOID ArbitrationStart(PVOID arg);
|
|
VOID ArbitrationEnd(PVOID arg);
|
|
VOID WaitForArbCompletion(PVOID arg);
|
|
|
|
|
|
DWORD SrvInit(PVOID, PVOID, PVOID *);
|
|
DWORD SrvOnline(PVOID, LPWSTR name, DWORD nic);
|
|
DWORD SrvOffline(PVOID);
|
|
void SrvExit(PVOID);
|
|
|
|
extern void WINAPI error_log(char *, ...);
|
|
extern void WINAPI debug_log(char *, ...);
|
|
|
|
|
|
|
|
#endif
|