forked from xmirror/moosefs
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmetadata.h
48 lines (39 loc) · 1.4 KB
/
metadata.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (C) 2015 Jakub Kruszona-Zawadzki, Core Technology Sp. z o.o.
*
* 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 2 (only).
*
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* or visit http://www.gnu.org/licenses/gpl-2.0.html
*/
#ifndef _METADATA_H_
#define _METADATA_H_
#include <stdio.h>
#include <inttypes.h>
uint64_t meta_version_inc(void);
uint64_t meta_version(void);
void meta_cleanup(void);
void meta_setignoreflag(void);
void meta_allowautorestore(void);
void meta_emptystart(void);
void meta_incverboselevel(void);
void meta_sendall(int socket);
int meta_downloadall(int socket);
void meta_text_dump(FILE *fd);
uint64_t meta_get_fileid(void);
void meta_set_fileid(uint64_t metaid);
uint8_t meta_mr_setmetaid(uint64_t metaid);
void meta_info(uint32_t *lsstore,uint32_t *lstime,uint8_t *lsstat);
int meta_init(void);
#endif