1 /* 2 * Copyright (C) 2021 Jakub Kruszona-Zawadzki, Core Technology Sp. z o.o. 3 * 4 * This file is part of MooseFS. 5 * 6 * MooseFS 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 2 (only). 9 * 10 * MooseFS 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 MooseFS; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA 18 * or visit http://www.gnu.org/licenses/gpl-2.0.html 19 */ 20 21 #ifndef _MFS_META_FUSE_H_ 22 #define _MFS_META_FUSE_H_ 23 24 #include "fusecommon.h" 25 26 #if FUSE_USE_VERSION >= 26 27 void mfs_meta_statfs(fuse_req_t req, fuse_ino_t ino); 28 #else 29 void mfs_meta_statfs(fuse_req_t req); 30 #endif 31 //void mfs_meta_access(fuse_req_t req, fuse_ino_t ino, int mask); 32 void mfs_meta_lookup(fuse_req_t req, fuse_ino_t parent, const char *name); 33 void mfs_meta_getattr(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); 34 void mfs_meta_setattr(fuse_req_t req, fuse_ino_t ino, struct stat *stbuf, int to_set, struct fuse_file_info *fi); 35 void mfs_meta_unlink(fuse_req_t req, fuse_ino_t parent, const char *name); 36 #if FUSE_VERSION >= 30 37 void mfs_meta_rename(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname,unsigned int flags); 38 #else 39 void mfs_meta_rename(fuse_req_t req, fuse_ino_t parent, const char *name, fuse_ino_t newparent, const char *newname); 40 #endif 41 void mfs_meta_opendir(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); 42 void mfs_meta_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi); 43 void mfs_meta_releasedir(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); 44 void mfs_meta_open(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); 45 void mfs_meta_release(fuse_req_t req, fuse_ino_t ino, struct fuse_file_info *fi); 46 void mfs_meta_read(fuse_req_t req, fuse_ino_t ino, size_t size, off_t off, struct fuse_file_info *fi); 47 void mfs_meta_write(fuse_req_t req, fuse_ino_t ino, const char *buf, size_t size, off_t off, struct fuse_file_info *fi); 48 void mfs_meta_init(int debug_mode_in,double entry_cache_timeout_in,double attr_cache_timeout_in,int flat_trash_in); 49 50 #endif 51