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/include/vfs_macros.h

    r414 r745  
    7575        smb_vfs_call_opendir((handle)->next, (fname), (mask), (attr))
    7676
     77#define SMB_VFS_FDOPENDIR(fsp, mask, attr) \
     78        smb_vfs_call_fdopendir((fsp)->conn->vfs_handles, (fsp), (mask), (attr))
     79#define SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr) \
     80        smb_vfs_call_fdopendir((handle)->next, (fsp), (mask), (attr))
     81
    7782#define SMB_VFS_READDIR(conn, dirp, sbuf) \
    7883        smb_vfs_call_readdir((conn)->vfs_handles, (dirp), (sbuf))
     
    121126        smb_vfs_call_open((handle)->next, (fname), (fsp), (flags), (mode))
    122127
    123 #define SMB_VFS_CREATE_FILE(conn, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, create_options, file_attributes, oplock_request, allocation_size, sd, ea_list, result, pinfo) \
    124         smb_vfs_call_create_file((conn)->vfs_handles, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), (create_options), (file_attributes), (oplock_request), (allocation_size), (sd), (ea_list), (result), (pinfo))
    125 #define SMB_VFS_NEXT_CREATE_FILE(handle, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, create_options, file_attributes, oplock_request, allocation_size, sd, ea_list, result, pinfo) \
    126         smb_vfs_call_create_file((handle)->next, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), (create_options), (file_attributes), (oplock_request), (allocation_size), (sd), (ea_list), (result), (pinfo))
     128#define SMB_VFS_CREATE_FILE(conn, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, \
     129        create_options, file_attributes, oplock_request, allocation_size, private_flags, sd, ea_list, result, pinfo) \
     130        smb_vfs_call_create_file((conn)->vfs_handles, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), \
     131        (create_options), (file_attributes), (oplock_request), (allocation_size), (private_flags), (sd), (ea_list), (result), (pinfo))
     132#define SMB_VFS_NEXT_CREATE_FILE(handle, req, root_dir_fid, smb_fname, access_mask, share_access, create_disposition, \
     133        create_options, file_attributes, oplock_request, allocation_size, private_flags, sd, ea_list, result, pinfo) \
     134        smb_vfs_call_create_file((handle)->next, (req), (root_dir_fid), (smb_fname), (access_mask), (share_access), (create_disposition), \
     135        (create_options), (file_attributes), (oplock_request), (allocation_size), (private_flags), (sd), (ea_list), (result), (pinfo))
    127136
    128137#define SMB_VFS_CLOSE(fsp) \
     
    246255        smb_vfs_call_ftruncate((handle)->next, (fsp), (offset))
    247256
     257#define SMB_VFS_FALLOCATE(fsp, mode, offset, len) \
     258        smb_vfs_call_fallocate((fsp)->conn->vfs_handles, (fsp), (mode), (offset), (len))
     259#define SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len) \
     260        smb_vfs_call_fallocate((handle)->next, (fsp), (mode), (offset), (len))
     261
    248262#define SMB_VFS_LOCK(fsp, op, offset, count, type) \
    249263        smb_vfs_call_lock((fsp)->conn->vfs_handles, (fsp), (op), (offset), (count), (type))
     
    286300        smb_vfs_call_mknod((handle)->next, (path), (mode), (dev))
    287301
    288 #define SMB_VFS_REALPATH(conn, path, resolved_path) \
    289         smb_vfs_call_realpath((conn)->vfs_handles, (path), (resolved_path))
    290 #define SMB_VFS_NEXT_REALPATH(handle, path, resolved_path) \
    291         smb_vfs_call_realpath((handle)->next, (path), (resolved_path))
     302#define SMB_VFS_REALPATH(conn, path) \
     303        smb_vfs_call_realpath((conn)->vfs_handles, (path))
     304#define SMB_VFS_NEXT_REALPATH(handle, path) \
     305        smb_vfs_call_realpath((handle)->next, (path))
    292306
    293307#define SMB_VFS_NOTIFY_WATCH(conn, ctx, e, callback, private_data, handle_p) \
     
    589603        smb_vfs_call_aio_force((handle)->next,(fsp))
    590604
    591 #define SMB_VFS_IS_OFFLINE(conn,path,sbuf) \
    592         smb_vfs_call_is_offline((conn)->vfs_handles,(path),(sbuf))
    593 #define SMB_VFS_NEXT_IS_OFFLINE(handle,path,sbuf) \
    594         smb_vfs_call_is_offline((handle)->next,(path),(sbuf))
    595 
    596 #define SMB_VFS_SET_OFFLINE(conn,path) \
    597         smb_vfs_call_set_offline((conn)->vfs_handles,(path))
    598 #define SMB_VFS_NEXT_SET_OFFLINE(handle,path) \
    599         smb_vfs_call_set_offline((handle)->next, (path))
     605#define SMB_VFS_IS_OFFLINE(conn,fname,sbuf) \
     606        smb_vfs_call_is_offline((conn)->vfs_handles,(fname),(sbuf))
     607#define SMB_VFS_NEXT_IS_OFFLINE(handle,fname,sbuf) \
     608        smb_vfs_call_is_offline((handle)->next,(fname),(sbuf))
     609
     610#define SMB_VFS_SET_OFFLINE(conn,fname) \
     611        smb_vfs_call_set_offline((conn)->vfs_handles,(fname))
     612#define SMB_VFS_NEXT_SET_OFFLINE(handle,fname) \
     613        smb_vfs_call_set_offline((handle)->next, (fname))
    600614
    601615#endif /* _VFS_MACROS_H */
Note: See TracChangeset for help on using the changeset viewer.