gpfs: Move get_gpfs_quota to vfs_gpfs.c
[samba.git] / source3 / modules / vfs_gpfs.h
1 /*
2    Unix SMB/CIFS implementation.
3    Wrap gpfs calls in vfs functions.
4
5    Copyright (C) Christian Ambach <cambach1@de.ibm.com> 2006
6
7    Major code contributions by Chetan Shringarpure <chetan.sh@in.ibm.com>
8                             and Gomati Mohanan <gomati.mohanan@in.ibm.com>
9
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 2 of the License, or
13    (at your option) any later version.
14
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.
19
20    You should have received a copy of the GNU General Public License
21    along with this program; if not, write to the Free Software
22    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23
24 */
25
26 #ifndef GPFS_GETACL_NATIVE
27 #define GPFS_GETACL_NATIVE 0x00000004
28 #endif
29
30 int gpfswrap_init(void);
31 int gpfswrap_set_share(int fd, unsigned int allow, unsigned int deny);
32 int gpfswrap_set_lease(int fd, unsigned int type);
33 int gpfswrap_getacl(char *pathname, int flags, void *acl);
34 int gpfswrap_putacl(char *pathname, int flags, void *acl);
35 int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len);
36 int gpfswrap_set_winattrs_path(char *pathname, int flags,
37                                struct gpfs_winattr *attrs);
38 int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs);
39 int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs);
40 int gpfswrap_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes);
41 int gpfswrap_ftruncate(int fd, gpfs_off64_t length);
42 int gpfswrap_lib_init(int flags);
43 int gpfswrap_set_times_path(char *pathname, int flags,
44                             gpfs_timestruc_t times[4]);
45 int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp);
46 int gpfswrap_fcntl(int fd, void *argp);
47 int gpfswrap_getfilesetid(char *pathname, char *name, int *idp);
48 int get_gpfs_fset_id(const char *pathname, int *fset_id);
49 int smbd_gpfs_set_times_path(char *path, struct smb_file_time *ft);