Changeset 745 for trunk/server/examples/VFS/skel_transparent.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/examples/VFS/skel_transparent.c
r414 r745 24 24 25 25 #include "includes.h" 26 #include "smbd/proto.h" 26 27 27 28 /* PLEASE,PLEASE READ THE VFS MODULES CHAPTER OF THE … … 65 66 } 66 67 67 static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA*shadow_copy_data, bool labels)68 static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, struct shadow_copy_data *shadow_copy_data, bool labels) 68 69 { 69 70 return SMB_VFS_NEXT_GET_SHADOW_COPY_DATA(handle, fsp, shadow_copy_data, labels); … … 83 84 { 84 85 return SMB_VFS_NEXT_OPENDIR(handle, fname, mask, attr); 86 } 87 88 static SMB_STRUCT_DIR *skel_fdopendir(vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr) 89 { 90 return SMB_VFS_NEXT_FDOPENDIR(handle, fsp, mask, attr); 85 91 } 86 92 … … 144 150 uint32_t oplock_request, 145 151 uint64_t allocation_size, 152 uint32_t private_flags, 146 153 struct security_descriptor *sd, 147 154 struct ea_list *ea_list, … … 160 167 oplock_request, 161 168 allocation_size, 169 private_flags, 162 170 sd, 163 171 ea_list, … … 291 299 } 292 300 301 static int skel_fallocate(vfs_handle_struct *handle, files_struct *fsp, 302 enum vfs_fallocate_mode mode, 303 SMB_OFF_T offset, 304 SMB_OFF_T len) 305 { 306 return SMB_VFS_NEXT_FALLOCATE(handle, fsp, mode, offset, len); 307 } 308 293 309 static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type) 294 310 { … … 331 347 } 332 348 333 static char *skel_realpath(vfs_handle_struct *handle, const char *path , char *resolved_path)334 { 335 return SMB_VFS_NEXT_REALPATH(handle, path , resolved_path);349 static char *skel_realpath(vfs_handle_struct *handle, const char *path) 350 { 351 return SMB_VFS_NEXT_REALPATH(handle, path); 336 352 } 337 353 … … 454 470 455 471 static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, 456 uint32 security_info, SEC_DESC**ppdesc)472 uint32 security_info, struct security_descriptor **ppdesc) 457 473 { 458 474 return SMB_VFS_NEXT_FGET_NT_ACL(handle, fsp, security_info, ppdesc); … … 460 476 461 477 static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle, 462 const char *name, uint32 security_info, SEC_DESC**ppdesc)478 const char *name, uint32 security_info, struct security_descriptor **ppdesc) 463 479 { 464 480 return SMB_VFS_NEXT_GET_NT_ACL(handle, name, security_info, ppdesc); … … 466 482 467 483 static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, 468 uint32 security_info_sent, const SEC_DESC*psd)484 uint32 security_info_sent, const struct security_descriptor *psd) 469 485 { 470 486 return SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd); … … 692 708 } 693 709 694 static bool skel_is_offline(struct vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf)695 { 696 return SMB_VFS_NEXT_IS_OFFLINE(handle, path, sbuf);697 } 698 699 static int skel_set_offline(struct vfs_handle_struct *handle, const char *path)700 { 701 return SMB_VFS_NEXT_SET_OFFLINE(handle, path);710 static bool skel_is_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf) 711 { 712 return SMB_VFS_NEXT_IS_OFFLINE(handle, fname, sbuf); 713 } 714 715 static int skel_set_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname) 716 { 717 return SMB_VFS_NEXT_SET_OFFLINE(handle, fname); 702 718 } 703 719 … … 719 735 720 736 .opendir = skel_opendir, 737 .fdopendir = skel_fdopendir, 721 738 .readdir = skel_readdir, 722 739 .seekdir = skel_seekdir, … … 730 747 /* File operations */ 731 748 732 .open = skel_open,749 .open_fn = skel_open, 733 750 .create_file = skel_create_file, 734 751 .close_fn = skel_close_fn, … … 756 773 .ntimes = skel_ntimes, 757 774 .ftruncate = skel_ftruncate, 775 .fallocate = skel_fallocate, 758 776 .lock = skel_lock, 759 777 .kernel_flock = skel_kernel_flock,
Note:
See TracChangeset
for help on using the changeset viewer.