2008-01-16 12:18:57 +03:00
/*
Unix SMB / CIFS implementation .
Wrap gpfs calls in vfs functions .
2011-05-31 23:59:24 +04:00
2008-01-16 12:18:57 +03:00
Copyright ( C ) Christian Ambach < cambach1 @ de . ibm . com > 2006
2011-05-31 23:59:24 +04: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 23:59:24 +04: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 23:59:24 +04: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 23:59:24 +04: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 .
*/
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 09:31:47 +04:00
int smbd_gpfs_get_realfilename_path ( char * pathname , char * filenamep ,
int * buflen ) ;
2009-05-29 02:20:10 +04:00
int smbd_fget_gpfs_winattrs ( int fd , struct gpfs_winattr * attrs ) ;
2009-05-27 14:03:12 +04: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-09 01:57:12 +04:00
int smbd_gpfs_prealloc ( int fd , gpfs_off64_t start , gpfs_off64_t bytes ) ;
2010-10-08 15:43:17 +04:00
int smbd_gpfs_ftruncate ( int fd , gpfs_off64_t length ) ;
2012-03-03 01:26:19 +04: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 ) ;
2008-01-16 12:18:57 +03:00
void init_gpfs ( void ) ;
2012-03-22 21:12:07 +04:00
void smbd_gpfs_lib_init ( void ) ;