source: vendor/current/lib/util/gpfswrap.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.1 KB
Line 
1/*
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
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 3 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, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef __GPFSWRAP_H__
25#define __GPFSWRAP_H__
26
27#include <gpfs.h>
28
29int gpfswrap_init(void);
30int gpfswrap_set_share(int fd, unsigned int allow, unsigned int deny);
31int gpfswrap_set_lease(int fd, unsigned int type);
32int gpfswrap_getacl(char *pathname, int flags, void *acl);
33int gpfswrap_putacl(char *pathname, int flags, void *acl);
34int gpfswrap_get_realfilename_path(char *pathname, char *filenamep, int *len);
35int gpfswrap_set_winattrs_path(char *pathname, int flags,
36 struct gpfs_winattr *attrs);
37int gpfswrap_get_winattrs_path(char *pathname, struct gpfs_winattr *attrs);
38int gpfswrap_get_winattrs(int fd, struct gpfs_winattr *attrs);
39int gpfswrap_prealloc(int fd, gpfs_off64_t start, gpfs_off64_t bytes);
40int gpfswrap_ftruncate(int fd, gpfs_off64_t length);
41int gpfswrap_lib_init(int flags);
42int gpfswrap_set_times_path(char *pathname, int flags,
43 gpfs_timestruc_t times[4]);
44int gpfswrap_quotactl(char *pathname, int cmd, int id, void *bufp);
45int gpfswrap_getfilesetid(char *pathname, char *name, int *idp);
46int gpfswrap_init_trace(void);
47int gpfswrap_query_trace(void);
48void gpfswrap_add_trace(int level, const char *msg);
49void gpfswrap_fini_trace(void);
50
51#endif
Note: See TracBrowser for help on using the repository browser.