2008-01-16 12:18:57 +03:00
/*
Unix SMB / CIFS implementation .
Wrap gpfs calls in vfs functions .
2011-05-31 21:59:24 +02:00
2008-01-16 12:18:57 +03:00
Copyright ( C ) Christian Ambach < cambach1 @ de . ibm . com > 2006
2011-05-31 21:59:24 +02:00
2008-01-16 12:18:57 +03:00
Major code contributions by Chetan Shringarpure < chetan . sh @ in . ibm . com >
and Gomati Mohanan < gomati . mohanan @ in . ibm . com >
2011-05-31 21:59:24 +02:00
2008-01-16 12:18:57 +03:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
( at your option ) any later version .
2011-05-31 21:59:24 +02:00
2008-01-16 12:18:57 +03:00
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
2011-05-31 21:59:24 +02:00
2008-01-16 12:18:57 +03:00
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
2013-01-08 15:15:02 +01:00
# ifndef GPFS_GETACL_NATIVE
# define GPFS_GETACL_NATIVE 0x00000004
# endif
2008-01-16 12:18:57 +03:00
bool set_gpfs_sharemode ( files_struct * fsp , uint32 access_mask ,
uint32 share_access ) ;
int set_gpfs_lease ( int fd , int leasetype ) ;
int smbd_gpfs_getacl ( char * pathname , int flags , void * acl ) ;
int smbd_gpfs_putacl ( char * pathname , int flags , void * acl ) ;
2009-04-05 07:31:47 +02:00
int smbd_gpfs_get_realfilename_path ( char * pathname , char * filenamep ,
int * buflen ) ;
2009-05-29 00:20:10 +02:00
int smbd_fget_gpfs_winattrs ( int fd , struct gpfs_winattr * attrs ) ;
2009-05-27 12:03:12 +02:00
int get_gpfs_winattrs ( char * pathname , struct gpfs_winattr * attrs ) ;
int set_gpfs_winattrs ( char * pathname , int flags , struct gpfs_winattr * attrs ) ;
2012-03-08 13:57:12 -08:00
int smbd_gpfs_prealloc ( int fd , gpfs_off64_t start , gpfs_off64_t bytes ) ;
2010-10-08 13:43:17 +02:00
int smbd_gpfs_ftruncate ( int fd , gpfs_off64_t length ) ;
2012-03-02 14:26:19 -07:00
int get_gpfs_quota ( const char * pathname , int type , int id ,
struct gpfs_quotaInfo * qi ) ;
int get_gpfs_fset_id ( const char * pathname , int * fset_id ) ;
2014-01-07 11:55:46 -07:00
int smbd_gpfs_set_times_path ( char * path , struct smb_file_time * ft ) ;
2012-03-02 14:26:19 -07:00
2008-01-16 12:18:57 +03:00
void init_gpfs ( void ) ;
2012-03-22 18:12:07 +01:00
void smbd_gpfs_lib_init ( void ) ;