Changeset 745 for trunk/server/examples/VFS/skel_opaque.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_opaque.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 … … 66 67 } 67 68 68 static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, SHADOW_COPY_DATA*shadow_copy_data, bool labels)69 static int skel_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fsp, struct shadow_copy_data *shadow_copy_data, bool labels) 69 70 { 70 71 errno = ENOSYS; … … 84 85 85 86 static SMB_STRUCT_DIR *skel_opendir(vfs_handle_struct *handle, const char *fname, const char *mask, uint32 attr) 87 { 88 return NULL; 89 } 90 91 static SMB_STRUCT_DIR *skel_fdopendir(vfs_handle_struct *handle, files_struct *fsp, const char *mask, uint32 attr) 86 92 { 87 93 return NULL; … … 151 157 uint32_t oplock_request, 152 158 uint64_t allocation_size, 159 uint32_t private_flags, 153 160 struct security_descriptor *sd, 154 161 struct ea_list *ea_list, … … 308 315 } 309 316 317 static int skel_fallocate(vfs_handle_struct *handle, files_struct *fsp, 318 enum vfs_fallocate_mode mode, 319 SMB_OFF_T offset, SMB_OFF_T len) 320 { 321 errno = ENOSYS; 322 return -1; 323 } 324 310 325 static bool skel_lock(vfs_handle_struct *handle, files_struct *fsp, int op, SMB_OFF_T offset, SMB_OFF_T count, int type) 311 326 { … … 356 371 } 357 372 358 static char *skel_realpath(vfs_handle_struct *handle, const char *path , char *resolved_path)373 static char *skel_realpath(vfs_handle_struct *handle, const char *path) 359 374 { 360 375 errno = ENOSYS; … … 464 479 465 480 static NTSTATUS skel_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, 466 uint32 security_info, SEC_DESC**ppdesc)481 uint32 security_info, struct security_descriptor **ppdesc) 467 482 { 468 483 return NT_STATUS_NOT_IMPLEMENTED; … … 470 485 471 486 static NTSTATUS skel_get_nt_acl(vfs_handle_struct *handle, 472 const char *name, uint32 security_info, SEC_DESC**ppdesc)487 const char *name, uint32 security_info, struct security_descriptor **ppdesc) 473 488 { 474 489 return NT_STATUS_NOT_IMPLEMENTED; … … 476 491 477 492 static NTSTATUS skel_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp, 478 uint32 security_info_sent, const SEC_DESC*psd)493 uint32 security_info_sent, const struct security_descriptor *psd) 479 494 { 480 495 return NT_STATUS_NOT_IMPLEMENTED; … … 747 762 } 748 763 749 static bool skel_is_offline(struct vfs_handle_struct *handle, const char *path, SMB_STRUCT_STAT *sbuf)764 static bool skel_is_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname, SMB_STRUCT_STAT *sbuf) 750 765 { 751 766 errno = ENOSYS; … … 753 768 } 754 769 755 static int skel_set_offline(struct vfs_handle_struct *handle, const char *path)770 static int skel_set_offline(struct vfs_handle_struct *handle, const struct smb_filename *fname) 756 771 { 757 772 errno = ENOSYS; … … 776 791 777 792 .opendir = skel_opendir, 793 .fdopendir = skel_fdopendir, 778 794 .readdir = skel_readdir, 779 795 .seekdir = skel_seekdir, … … 787 803 /* File operations */ 788 804 789 .open = skel_open,805 .open_fn = skel_open, 790 806 .create_file = skel_create_file, 791 807 .close_fn = skel_close_fn, … … 813 829 .ntimes = skel_ntimes, 814 830 .ftruncate = skel_ftruncate, 831 .fallocate = skel_fallocate, 815 832 .lock = skel_lock, 816 833 .kernel_flock = skel_kernel_flock,
Note:
See TracChangeset
for help on using the changeset viewer.