2 * Unix SMB/CIFS implementation.
3 * Wrapper for GPFS library
4 * Copyright (C) Christian Ambach <cambach1@de.ibm.com> 2006
5 * Copyright (C) Christof Schmitt 2015
7 * Major code contributions by Chetan Shringarpure <chetan.sh@in.ibm.com>
8 * and Gomati Mohanan <gomati.mohanan@in.ibm.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 #ifndef __GPFSWRAP_H__
25 #define __GPFSWRAP_H__
29 int gpfswrap_init(void);
30 int gpfswrap_set_share(int fd
, unsigned int allow
, unsigned int deny
);
31 int gpfswrap_set_lease(int fd
, unsigned int type
);
32 int gpfswrap_fgetacl(int fd
, int flags
, void *acl
);
33 int gpfswrap_putacl(const char *pathname
, int flags
, void *acl
);
34 int gpfswrap_get_realfilename_path(const char *pathname
,
37 int gpfswrap_register_cifs_export(void);
38 int gpfswrap_set_winattrs_path(const char *pathname
,
40 struct gpfs_winattr
*attrs
);
41 int gpfswrap_set_winattrs(int fd
, int flags
, struct gpfs_winattr
*attrs
);
42 int gpfswrap_get_winattrs(int fd
, struct gpfs_winattr
*attrs
);
43 int gpfswrap_ftruncate(int fd
, gpfs_off64_t length
);
44 int gpfswrap_lib_init(int flags
);
45 int gpfswrap_set_times(int fd
, int flags
, gpfs_timestruc_t times
[4]);
46 int gpfswrap_set_times_path(char *path
, int flags
, gpfs_timestruc_t times
[4]);
47 int gpfswrap_quotactl(const char *pathname
, int cmd
, int id
, void *bufp
);
48 int gpfswrap_init_trace(void);
49 int gpfswrap_query_trace(void);
50 void gpfswrap_add_trace(int level
, const char *msg
);
51 void gpfswrap_fini_trace(void);
52 int gpfswrap_fstat_x(int fd
, unsigned int *litemask
,
53 struct gpfs_iattr64
*iattr
, size_t len
);
54 int gpfswrap_stat_x(const char *pathname
, unsigned int *litemask
,
55 struct gpfs_iattr64
*iattr
, size_t len
);