forked from ops-baidu/shadow-mfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmasterconn.h
33 lines (25 loc) · 1.21 KB
/
masterconn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
Copyright 2005-2010 Jakub Kruszona-Zawadzki, Gemius SA.
This file is part of MooseFS.
MooseFS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
MooseFS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with MooseFS. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _MASTERCONN_H_
#define _MASTERCONN_H_
#include <inttypes.h>
#include <stdio.h>
void masterconn_stats(uint32_t *bin,uint32_t *bout);
void masterconn_replicate_status(uint64_t chunkid,uint32_t version,uint8_t status);
// void masterconn_send_chunk_damaged(uint64_t chunkid);
// void masterconn_send_chunk_lost(uint64_t chunkid);
// void masterconn_send_error_occurred();
// void masterconn_send_space(uint64_t usedspace,uint64_t totalspace,uint32_t chunkcount,uint64_t tdusedspace,uint64_t tdtotalspace,uint32_t tdchunkcount);
int masterconn_init(FILE *msgfd);
#endif