1 /* 2 Copyright 2005-2010 Jakub Kruszona-Zawadzki, Gemius SA, 2013-2014 EditShare, 2013-2015 Skytechnology sp. z o.o.. 3 4 This file was part of MooseFS and is part of LizardFS. 5 6 LizardFS is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, version 3. 9 10 LizardFS is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with LizardFS If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #pragma once 20 21 #include "common/platform.h" 22 23 #include <inttypes.h> 24 25 void matoclserv_stats(uint64_t stats[5]); 26 /* 27 void matoclserv_notify_attr(uint32_t dirinode,uint32_t inode,const uint8_t attr[35]); 28 void matoclserv_notify_link(uint32_t dirinode,uint8_t nleng,const uint8_t *name,uint32_t inode,const uint8_t attr[35],uint32_t ts); 29 void matoclserv_notify_unlink(uint32_t dirinode,uint8_t nleng,const uint8_t *name,uint32_t ts); 30 void matoclserv_notify_remove(uint32_t dirinode); 31 void matoclserv_notify_parent(uint32_t dirinode,uint32_t parent); 32 */ 33 void matoclserv_chunk_status(uint64_t chunkid,uint8_t status); 34 void matoclserv_add_open_file(uint32_t sessionid,uint32_t inode); 35 void matoclserv_remove_open_file(uint32_t sessionid,uint32_t inode); 36 int matoclserv_sessionsinit(void); 37 int matoclserv_networkinit(void); 38 void matoclserv_session_unload(void); 39 40 /// Notify interested clients about the status of metadata saving process. 41 void matoclserv_broadcast_metadata_saved(uint8_t status); 42 43 /// Notify interested clients about the status of metadata checksum recalculation process. 44 void matoclserv_broadcast_metadata_checksum_recalculated(uint8_t status); 45