Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/modules/gpfs.c

    r599 r745  
    1919
    2020#include "includes.h"
     21
    2122
    2223#ifdef HAVE_GPFS
    2324
     25
    2426#include "gpfs_gpl.h"
    2527#include "vfs_gpfs.h"
     
    3941static int (*gpfs_get_winattrs_fn)(int fd, struct gpfs_winattr *attrs);
    4042static int (*gpfs_ftruncate_fn)(int fd, gpfs_off64_t length);
     43
    4144
    4245bool set_gpfs_sharemode(files_struct *fsp, uint32 access_mask,
     
    133136}
    134137
    135 int smbd_gpfs_ftrunctate(int fd, gpfs_off64_t length)
    136 {
    137        if (!gpfs_do_ftruncate || (gpfs_ftruncate_fn == NULL)) {
    138                errno = ENOSYS;
    139                return -1;
    140        }
    141 
    142        return gpfs_ftruncate_fn(fd, length);
     138int smbd_gpfs_ftruncate(int fd, gpfs_off64_t length)
     139{
     140if (!gpfs_do_ftruncate || (gpfs_ftruncate_fn == NULL)) {
     141errno = ENOSYS;
     142return -1;
     143}
     144
     145return gpfs_ftruncate_fn(fd, length);
    143146}
    144147
     
    186189        DEBUG(10, ("gpfs_set_winattrs_path:open call %s\n",pathname));
    187190        return gpfs_set_winattrs_path_fn(pathname,flags, attrs);
     191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
    188202}
    189203
     
    249263        init_gpfs_function(&gpfs_set_winattrs_path_fn,"gpfs_set_winattrs_path");
    250264        init_gpfs_function(&gpfs_get_winattrs_fn,"gpfs_get_winattrs");
    251         init_gpfs_function(&gpfs_ftruncate_fn,"gpfs_ftruncate");
     265        init_gpfs_function(&gpfs_ftruncate_fn, "gpfs_ftruncate");
     266        init_gpfs_function(&gpfs_lib_init_fn,"gpfs_lib_init");
    252267
    253268        gpfs_getrealfilename = lp_parm_bool(-1, "gpfs", "getrealfilename",
    254269                                            True);
    255270        gpfs_winattr = lp_parm_bool(-1, "gpfs", "winattr", False);
    256 
    257271        gpfs_do_ftruncate = lp_parm_bool(-1, "gpfs", "ftruncate", True);
    258272
     
    311325}
    312326
     327
     328
     329
     330
     331
    313332void init_gpfs(void)
    314333{
Note: See TracChangeset for help on using the changeset viewer.