2 * Skeleton VFS module. Implements dummy versions of all VFS
5 * Copyright (C) Tim Potter, 1999-2000
6 * Copyright (C) Alexander Bokovoy, 2002
7 * Copyright (C) Stefan (metze) Metzmacher, 2003
8 * Copyright (C) Jeremy Allison 2009
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 #include "../source3/include/includes.h"
25 #include "lib/util/tevent_ntstatus.h"
27 /* PLEASE,PLEASE READ THE VFS MODULES CHAPTER OF THE
28 SAMBA DEVELOPERS GUIDE!!!!!!
31 /* If you take this file as template for your module
32 * you must re-implement every function.
35 static int skel_connect(vfs_handle_struct
*handle
, const char *service
,
42 static void skel_disconnect(vfs_handle_struct
*handle
)
47 static uint64_t skel_disk_free(vfs_handle_struct
*handle
,
48 const struct smb_filename
*smb_fname
,
59 static int skel_get_quota(vfs_handle_struct
*handle
,
60 const struct smb_filename
*smb_fname
,
61 enum SMB_QUOTA_TYPE qtype
,
69 static int skel_set_quota(vfs_handle_struct
*handle
, enum SMB_QUOTA_TYPE qtype
,
70 unid_t id
, SMB_DISK_QUOTA
*dq
)
76 static int skel_get_shadow_copy_data(vfs_handle_struct
*handle
,
78 struct shadow_copy_data
*shadow_copy_data
,
85 static int skel_statvfs(struct vfs_handle_struct
*handle
,
86 const struct smb_filename
*smb_fname
,
87 struct vfs_statvfs_struct
*statbuf
)
93 static uint32_t skel_fs_capabilities(struct vfs_handle_struct
*handle
,
94 enum timestamp_set_resolution
*p_ts_res
)
99 static NTSTATUS
skel_get_dfs_referrals(struct vfs_handle_struct
*handle
,
100 struct dfs_GetDFSReferral
*r
)
102 return NT_STATUS_NOT_IMPLEMENTED
;
105 static DIR *skel_opendir(vfs_handle_struct
*handle
,
106 const struct smb_filename
*smb_fname
,
113 static NTSTATUS
skel_snap_check_path(struct vfs_handle_struct
*handle
,
115 const char *service_path
,
118 return NT_STATUS_NOT_SUPPORTED
;
121 static NTSTATUS
skel_snap_create(struct vfs_handle_struct
*handle
,
123 const char *base_volume
,
129 return NT_STATUS_NOT_SUPPORTED
;
132 static NTSTATUS
skel_snap_delete(struct vfs_handle_struct
*handle
,
137 return NT_STATUS_NOT_SUPPORTED
;
140 static DIR *skel_fdopendir(vfs_handle_struct
*handle
, files_struct
*fsp
,
141 const char *mask
, uint32_t attr
)
146 static struct dirent
*skel_readdir(vfs_handle_struct
*handle
,
147 DIR *dirp
, SMB_STRUCT_STAT
*sbuf
)
152 static void skel_seekdir(vfs_handle_struct
*handle
, DIR *dirp
, long offset
)
157 static long skel_telldir(vfs_handle_struct
*handle
, DIR *dirp
)
162 static void skel_rewind_dir(vfs_handle_struct
*handle
, DIR *dirp
)
167 static int skel_mkdir(vfs_handle_struct
*handle
,
168 const struct smb_filename
*smb_fname
,
175 static int skel_rmdir(vfs_handle_struct
*handle
,
176 const struct smb_filename
*smb_fname
)
182 static int skel_closedir(vfs_handle_struct
*handle
, DIR *dir
)
188 static void skel_init_search_op(struct vfs_handle_struct
*handle
, DIR *dirp
)
193 static int skel_open(vfs_handle_struct
*handle
, struct smb_filename
*smb_fname
,
194 files_struct
*fsp
, int flags
, mode_t mode
)
200 static NTSTATUS
skel_create_file(struct vfs_handle_struct
*handle
,
201 struct smb_request
*req
,
202 uint16_t root_dir_fid
,
203 struct smb_filename
*smb_fname
,
204 uint32_t access_mask
,
205 uint32_t share_access
,
206 uint32_t create_disposition
,
207 uint32_t create_options
,
208 uint32_t file_attributes
,
209 uint32_t oplock_request
,
210 struct smb2_lease
*lease
,
211 uint64_t allocation_size
,
212 uint32_t private_flags
,
213 struct security_descriptor
*sd
,
214 struct ea_list
*ea_list
,
215 files_struct
**result
, int *pinfo
,
216 const struct smb2_create_blobs
*in_context_blobs
,
217 struct smb2_create_blobs
*out_context_blobs
)
219 return NT_STATUS_NOT_IMPLEMENTED
;
222 static int skel_close_fn(vfs_handle_struct
*handle
, files_struct
*fsp
)
228 static ssize_t
skel_vfs_read(vfs_handle_struct
*handle
, files_struct
*fsp
,
229 void *data
, size_t n
)
235 static ssize_t
skel_pread(vfs_handle_struct
*handle
, files_struct
*fsp
,
236 void *data
, size_t n
, off_t offset
)
242 static struct tevent_req
*skel_pread_send(struct vfs_handle_struct
*handle
,
244 struct tevent_context
*ev
,
245 struct files_struct
*fsp
,
246 void *data
, size_t n
, off_t offset
)
251 static ssize_t
skel_pread_recv(struct tevent_req
*req
,
252 struct vfs_aio_state
*vfs_aio_state
)
254 vfs_aio_state
->error
= ENOSYS
;
258 static ssize_t
skel_write(vfs_handle_struct
*handle
, files_struct
*fsp
,
259 const void *data
, size_t n
)
265 static ssize_t
skel_pwrite(vfs_handle_struct
*handle
, files_struct
*fsp
,
266 const void *data
, size_t n
, off_t offset
)
272 static struct tevent_req
*skel_pwrite_send(struct vfs_handle_struct
*handle
,
274 struct tevent_context
*ev
,
275 struct files_struct
*fsp
,
277 size_t n
, off_t offset
)
282 static ssize_t
skel_pwrite_recv(struct tevent_req
*req
,
283 struct vfs_aio_state
*vfs_aio_state
)
285 vfs_aio_state
->error
= ENOSYS
;
289 static off_t
skel_lseek(vfs_handle_struct
*handle
, files_struct
*fsp
,
290 off_t offset
, int whence
)
296 static ssize_t
skel_sendfile(vfs_handle_struct
*handle
, int tofd
,
297 files_struct
*fromfsp
, const DATA_BLOB
*hdr
,
298 off_t offset
, size_t n
)
304 static ssize_t
skel_recvfile(vfs_handle_struct
*handle
, int fromfd
,
305 files_struct
*tofsp
, off_t offset
, size_t n
)
311 static int skel_rename(vfs_handle_struct
*handle
,
312 const struct smb_filename
*smb_fname_src
,
313 const struct smb_filename
*smb_fname_dst
)
319 static int skel_fsync(vfs_handle_struct
*handle
, files_struct
*fsp
)
325 static struct tevent_req
*skel_fsync_send(struct vfs_handle_struct
*handle
,
327 struct tevent_context
*ev
,
328 struct files_struct
*fsp
)
333 static int skel_fsync_recv(struct tevent_req
*req
,
334 struct vfs_aio_state
*vfs_aio_state
)
336 vfs_aio_state
->error
= ENOSYS
;
340 static int skel_stat(vfs_handle_struct
*handle
, struct smb_filename
*smb_fname
)
346 static int skel_fstat(vfs_handle_struct
*handle
, files_struct
*fsp
,
347 SMB_STRUCT_STAT
*sbuf
)
353 static int skel_lstat(vfs_handle_struct
*handle
,
354 struct smb_filename
*smb_fname
)
360 static uint64_t skel_get_alloc_size(struct vfs_handle_struct
*handle
,
361 struct files_struct
*fsp
,
362 const SMB_STRUCT_STAT
*sbuf
)
368 static int skel_unlink(vfs_handle_struct
*handle
,
369 const struct smb_filename
*smb_fname
)
375 static int skel_chmod(vfs_handle_struct
*handle
,
376 const struct smb_filename
*smb_fname
,
383 static int skel_fchmod(vfs_handle_struct
*handle
, files_struct
*fsp
,
390 static int skel_chown(vfs_handle_struct
*handle
,
391 const struct smb_filename
*smb_fname
,
399 static int skel_fchown(vfs_handle_struct
*handle
, files_struct
*fsp
,
400 uid_t uid
, gid_t gid
)
406 static int skel_lchown(vfs_handle_struct
*handle
,
407 const struct smb_filename
*smb_fname
,
415 static int skel_chdir(vfs_handle_struct
*handle
,
416 const struct smb_filename
*smb_fname
)
422 static struct smb_filename
*skel_getwd(vfs_handle_struct
*handle
,
429 static int skel_ntimes(vfs_handle_struct
*handle
,
430 const struct smb_filename
*smb_fname
,
431 struct smb_file_time
*ft
)
437 static int skel_ftruncate(vfs_handle_struct
*handle
, files_struct
*fsp
,
444 static int skel_fallocate(vfs_handle_struct
*handle
, files_struct
*fsp
,
445 uint32_t mode
, off_t offset
, off_t len
)
451 static bool skel_lock(vfs_handle_struct
*handle
, files_struct
*fsp
, int op
,
452 off_t offset
, off_t count
, int type
)
458 static int skel_kernel_flock(struct vfs_handle_struct
*handle
,
459 struct files_struct
*fsp
,
460 uint32_t share_mode
, uint32_t access_mask
)
466 static int skel_linux_setlease(struct vfs_handle_struct
*handle
,
467 struct files_struct
*fsp
, int leasetype
)
473 static bool skel_getlock(vfs_handle_struct
*handle
, files_struct
*fsp
,
474 off_t
*poffset
, off_t
*pcount
, int *ptype
,
481 static int skel_symlink(vfs_handle_struct
*handle
,
482 const char *link_contents
,
483 const struct smb_filename
*new_smb_fname
)
489 static int skel_vfs_readlink(vfs_handle_struct
*handle
,
490 const struct smb_filename
*smb_fname
,
498 static int skel_link(vfs_handle_struct
*handle
,
499 const struct smb_filename
*old_smb_fname
,
500 const struct smb_filename
*new_smb_fname
)
506 static int skel_mknod(vfs_handle_struct
*handle
,
507 const struct smb_filename
*smb_fname
,
515 static struct smb_filename
*skel_realpath(vfs_handle_struct
*handle
,
517 const struct smb_filename
*smb_fname
)
523 static int skel_chflags(vfs_handle_struct
*handle
,
524 const struct smb_filename
*smb_fname
,
531 static struct file_id
skel_file_id_create(vfs_handle_struct
*handle
,
532 const SMB_STRUCT_STAT
*sbuf
)
540 struct skel_offload_read_state
{
544 static struct tevent_req
*skel_offload_read_send(
546 struct tevent_context
*ev
,
547 struct vfs_handle_struct
*handle
,
548 struct files_struct
*fsp
,
554 struct tevent_req
*req
= NULL
;
555 struct skel_offload_read_state
*state
= NULL
;
557 req
= tevent_req_create(mem_ctx
, &state
, struct skel_offload_read_state
);
562 tevent_req_nterror(req
, NT_STATUS_NOT_IMPLEMENTED
);
563 return tevent_req_post(req
, ev
);
566 static NTSTATUS
skel_offload_read_recv(struct tevent_req
*req
,
567 struct vfs_handle_struct
*handle
,
569 DATA_BLOB
*_token_blob
)
573 if (tevent_req_is_nterror(req
, &status
)) {
574 tevent_req_received(req
);
577 tevent_req_received(req
);
582 struct skel_cc_state
{
585 static struct tevent_req
*skel_offload_write_send(struct vfs_handle_struct
*handle
,
587 struct tevent_context
*ev
,
590 off_t transfer_offset
,
591 struct files_struct
*dest_fsp
,
595 struct tevent_req
*req
;
596 struct skel_cc_state
*cc_state
;
598 req
= tevent_req_create(mem_ctx
, &cc_state
, struct skel_cc_state
);
603 tevent_req_nterror(req
, NT_STATUS_NOT_IMPLEMENTED
);
604 return tevent_req_post(req
, ev
);
607 static NTSTATUS
skel_offload_write_recv(struct vfs_handle_struct
*handle
,
608 struct tevent_req
*req
,
613 if (tevent_req_is_nterror(req
, &status
)) {
614 tevent_req_received(req
);
617 tevent_req_received(req
);
622 static NTSTATUS
skel_get_compression(struct vfs_handle_struct
*handle
,
624 struct files_struct
*fsp
,
625 struct smb_filename
*smb_fname
,
626 uint16_t *_compression_fmt
)
628 return NT_STATUS_INVALID_DEVICE_REQUEST
;
631 static NTSTATUS
skel_set_compression(struct vfs_handle_struct
*handle
,
633 struct files_struct
*fsp
,
634 uint16_t compression_fmt
)
636 return NT_STATUS_INVALID_DEVICE_REQUEST
;
639 static NTSTATUS
skel_streaminfo(struct vfs_handle_struct
*handle
,
640 struct files_struct
*fsp
,
641 const struct smb_filename
*smb_fname
,
643 unsigned int *num_streams
,
644 struct stream_struct
**streams
)
646 return NT_STATUS_NOT_IMPLEMENTED
;
649 static int skel_get_real_filename(struct vfs_handle_struct
*handle
,
652 TALLOC_CTX
*mem_ctx
, char **found_name
)
658 static const char *skel_connectpath(struct vfs_handle_struct
*handle
,
659 const struct smb_filename
*smb_fname
)
665 static NTSTATUS
skel_brl_lock_windows(struct vfs_handle_struct
*handle
,
666 struct byte_range_lock
*br_lck
,
667 struct lock_struct
*plock
,
670 return NT_STATUS_NOT_IMPLEMENTED
;
673 static bool skel_brl_unlock_windows(struct vfs_handle_struct
*handle
,
674 struct messaging_context
*msg_ctx
,
675 struct byte_range_lock
*br_lck
,
676 const struct lock_struct
*plock
)
682 static bool skel_brl_cancel_windows(struct vfs_handle_struct
*handle
,
683 struct byte_range_lock
*br_lck
,
684 struct lock_struct
*plock
)
690 static bool skel_strict_lock_check(struct vfs_handle_struct
*handle
,
691 struct files_struct
*fsp
,
692 struct lock_struct
*plock
)
698 static NTSTATUS
skel_translate_name(struct vfs_handle_struct
*handle
,
699 const char *mapped_name
,
700 enum vfs_translate_direction direction
,
701 TALLOC_CTX
*mem_ctx
, char **pmapped_name
)
703 return NT_STATUS_NOT_IMPLEMENTED
;
706 static NTSTATUS
skel_fsctl(struct vfs_handle_struct
*handle
,
707 struct files_struct
*fsp
,
710 uint16_t req_flags
, /* Needed for UNICODE ... */
711 const uint8_t *_in_data
,
714 uint32_t max_out_len
, uint32_t *out_len
)
716 return NT_STATUS_NOT_IMPLEMENTED
;
719 static NTSTATUS
skel_readdir_attr(struct vfs_handle_struct
*handle
,
720 const struct smb_filename
*fname
,
722 struct readdir_attr_data
**pattr_data
)
724 return NT_STATUS_NOT_IMPLEMENTED
;
727 static NTSTATUS
skel_get_dos_attributes(struct vfs_handle_struct
*handle
,
728 struct smb_filename
*smb_fname
,
731 return NT_STATUS_NOT_IMPLEMENTED
;
734 static NTSTATUS
skel_fget_dos_attributes(struct vfs_handle_struct
*handle
,
735 struct files_struct
*fsp
,
738 return NT_STATUS_NOT_IMPLEMENTED
;
741 static NTSTATUS
skel_set_dos_attributes(struct vfs_handle_struct
*handle
,
742 const struct smb_filename
*smb_fname
,
745 return NT_STATUS_NOT_IMPLEMENTED
;
748 static NTSTATUS
skel_fset_dos_attributes(struct vfs_handle_struct
*handle
,
749 struct files_struct
*fsp
,
752 return NT_STATUS_NOT_IMPLEMENTED
;
755 static NTSTATUS
skel_fget_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
756 uint32_t security_info
,
758 struct security_descriptor
**ppdesc
)
760 return NT_STATUS_NOT_IMPLEMENTED
;
763 static NTSTATUS
skel_get_nt_acl(vfs_handle_struct
*handle
,
764 const struct smb_filename
*smb_fname
,
765 uint32_t security_info
,
767 struct security_descriptor
**ppdesc
)
769 return NT_STATUS_NOT_IMPLEMENTED
;
772 static NTSTATUS
skel_fset_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
773 uint32_t security_info_sent
,
774 const struct security_descriptor
*psd
)
776 return NT_STATUS_NOT_IMPLEMENTED
;
779 static int skel_chmod_acl(vfs_handle_struct
*handle
,
780 const struct smb_filename
*smb_fname
,
787 static int skel_fchmod_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
794 static SMB_ACL_T
skel_sys_acl_get_file(vfs_handle_struct
*handle
,
795 const struct smb_filename
*smb_fname
,
800 return (SMB_ACL_T
) NULL
;
803 static SMB_ACL_T
skel_sys_acl_get_fd(vfs_handle_struct
*handle
,
804 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
)
807 return (SMB_ACL_T
) NULL
;
810 static int skel_sys_acl_blob_get_file(vfs_handle_struct
*handle
,
811 const struct smb_filename
*smb_fname
,
813 char **blob_description
,
820 static int skel_sys_acl_blob_get_fd(vfs_handle_struct
*handle
,
821 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
,
822 char **blob_description
, DATA_BLOB
*blob
)
828 static int skel_sys_acl_set_file(vfs_handle_struct
*handle
,
829 const struct smb_filename
*smb_fname
,
830 SMB_ACL_TYPE_T acltype
,
837 static int skel_sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
844 static int skel_sys_acl_delete_def_file(vfs_handle_struct
*handle
,
845 const struct smb_filename
*smb_fname
)
851 static ssize_t
skel_getxattr(vfs_handle_struct
*handle
,
852 const struct smb_filename
*smb_fname
,
861 static ssize_t
skel_fgetxattr(vfs_handle_struct
*handle
,
862 struct files_struct
*fsp
, const char *name
,
863 void *value
, size_t size
)
869 static ssize_t
skel_listxattr(vfs_handle_struct
*handle
,
870 const struct smb_filename
*smb_fname
,
878 static ssize_t
skel_flistxattr(vfs_handle_struct
*handle
,
879 struct files_struct
*fsp
, char *list
,
886 static int skel_removexattr(vfs_handle_struct
*handle
,
887 const struct smb_filename
*smb_fname
,
894 static int skel_fremovexattr(vfs_handle_struct
*handle
,
895 struct files_struct
*fsp
, const char *name
)
899 return SMB_VFS_NEXT_FREMOVEXATTR(handle
, fsp
, name
);
902 static int skel_setxattr(vfs_handle_struct
*handle
,
903 const struct smb_filename
*smb_fname
,
913 static int skel_fsetxattr(vfs_handle_struct
*handle
, struct files_struct
*fsp
,
914 const char *name
, const void *value
, size_t size
,
921 static bool skel_aio_force(struct vfs_handle_struct
*handle
,
922 struct files_struct
*fsp
)
928 /* VFS operations structure */
930 struct vfs_fn_pointers skel_opaque_fns
= {
931 /* Disk operations */
933 .connect_fn
= skel_connect
,
934 .disconnect_fn
= skel_disconnect
,
935 .disk_free_fn
= skel_disk_free
,
936 .get_quota_fn
= skel_get_quota
,
937 .set_quota_fn
= skel_set_quota
,
938 .get_shadow_copy_data_fn
= skel_get_shadow_copy_data
,
939 .statvfs_fn
= skel_statvfs
,
940 .fs_capabilities_fn
= skel_fs_capabilities
,
941 .get_dfs_referrals_fn
= skel_get_dfs_referrals
,
942 .snap_check_path_fn
= skel_snap_check_path
,
943 .snap_create_fn
= skel_snap_create
,
944 .snap_delete_fn
= skel_snap_delete
,
946 /* Directory operations */
948 .opendir_fn
= skel_opendir
,
949 .fdopendir_fn
= skel_fdopendir
,
950 .readdir_fn
= skel_readdir
,
951 .seekdir_fn
= skel_seekdir
,
952 .telldir_fn
= skel_telldir
,
953 .rewind_dir_fn
= skel_rewind_dir
,
954 .mkdir_fn
= skel_mkdir
,
955 .rmdir_fn
= skel_rmdir
,
956 .closedir_fn
= skel_closedir
,
957 .init_search_op_fn
= skel_init_search_op
,
959 /* File operations */
961 .open_fn
= skel_open
,
962 .create_file_fn
= skel_create_file
,
963 .close_fn
= skel_close_fn
,
964 .read_fn
= skel_vfs_read
,
965 .pread_fn
= skel_pread
,
966 .pread_send_fn
= skel_pread_send
,
967 .pread_recv_fn
= skel_pread_recv
,
968 .write_fn
= skel_write
,
969 .pwrite_fn
= skel_pwrite
,
970 .pwrite_send_fn
= skel_pwrite_send
,
971 .pwrite_recv_fn
= skel_pwrite_recv
,
972 .lseek_fn
= skel_lseek
,
973 .sendfile_fn
= skel_sendfile
,
974 .recvfile_fn
= skel_recvfile
,
975 .rename_fn
= skel_rename
,
976 .fsync_fn
= skel_fsync
,
977 .fsync_send_fn
= skel_fsync_send
,
978 .fsync_recv_fn
= skel_fsync_recv
,
979 .stat_fn
= skel_stat
,
980 .fstat_fn
= skel_fstat
,
981 .lstat_fn
= skel_lstat
,
982 .get_alloc_size_fn
= skel_get_alloc_size
,
983 .unlink_fn
= skel_unlink
,
984 .chmod_fn
= skel_chmod
,
985 .fchmod_fn
= skel_fchmod
,
986 .chown_fn
= skel_chown
,
987 .fchown_fn
= skel_fchown
,
988 .lchown_fn
= skel_lchown
,
989 .chdir_fn
= skel_chdir
,
990 .getwd_fn
= skel_getwd
,
991 .ntimes_fn
= skel_ntimes
,
992 .ftruncate_fn
= skel_ftruncate
,
993 .fallocate_fn
= skel_fallocate
,
994 .lock_fn
= skel_lock
,
995 .kernel_flock_fn
= skel_kernel_flock
,
996 .linux_setlease_fn
= skel_linux_setlease
,
997 .getlock_fn
= skel_getlock
,
998 .symlink_fn
= skel_symlink
,
999 .readlink_fn
= skel_vfs_readlink
,
1000 .link_fn
= skel_link
,
1001 .mknod_fn
= skel_mknod
,
1002 .realpath_fn
= skel_realpath
,
1003 .chflags_fn
= skel_chflags
,
1004 .file_id_create_fn
= skel_file_id_create
,
1005 .offload_read_send_fn
= skel_offload_read_send
,
1006 .offload_read_recv_fn
= skel_offload_read_recv
,
1007 .offload_write_send_fn
= skel_offload_write_send
,
1008 .offload_write_recv_fn
= skel_offload_write_recv
,
1009 .get_compression_fn
= skel_get_compression
,
1010 .set_compression_fn
= skel_set_compression
,
1012 .streaminfo_fn
= skel_streaminfo
,
1013 .get_real_filename_fn
= skel_get_real_filename
,
1014 .connectpath_fn
= skel_connectpath
,
1015 .brl_lock_windows_fn
= skel_brl_lock_windows
,
1016 .brl_unlock_windows_fn
= skel_brl_unlock_windows
,
1017 .brl_cancel_windows_fn
= skel_brl_cancel_windows
,
1018 .strict_lock_check_fn
= skel_strict_lock_check
,
1019 .translate_name_fn
= skel_translate_name
,
1020 .fsctl_fn
= skel_fsctl
,
1021 .readdir_attr_fn
= skel_readdir_attr
,
1023 /* DOS attributes. */
1024 .get_dos_attributes_fn
= skel_get_dos_attributes
,
1025 .fget_dos_attributes_fn
= skel_fget_dos_attributes
,
1026 .set_dos_attributes_fn
= skel_set_dos_attributes
,
1027 .fset_dos_attributes_fn
= skel_fset_dos_attributes
,
1029 /* NT ACL operations. */
1031 .fget_nt_acl_fn
= skel_fget_nt_acl
,
1032 .get_nt_acl_fn
= skel_get_nt_acl
,
1033 .fset_nt_acl_fn
= skel_fset_nt_acl
,
1035 /* POSIX ACL operations. */
1037 .chmod_acl_fn
= skel_chmod_acl
,
1038 .fchmod_acl_fn
= skel_fchmod_acl
,
1040 .sys_acl_get_file_fn
= skel_sys_acl_get_file
,
1041 .sys_acl_get_fd_fn
= skel_sys_acl_get_fd
,
1042 .sys_acl_blob_get_file_fn
= skel_sys_acl_blob_get_file
,
1043 .sys_acl_blob_get_fd_fn
= skel_sys_acl_blob_get_fd
,
1044 .sys_acl_set_file_fn
= skel_sys_acl_set_file
,
1045 .sys_acl_set_fd_fn
= skel_sys_acl_set_fd
,
1046 .sys_acl_delete_def_file_fn
= skel_sys_acl_delete_def_file
,
1048 /* EA operations. */
1049 .getxattr_fn
= skel_getxattr
,
1050 .fgetxattr_fn
= skel_fgetxattr
,
1051 .listxattr_fn
= skel_listxattr
,
1052 .flistxattr_fn
= skel_flistxattr
,
1053 .removexattr_fn
= skel_removexattr
,
1054 .fremovexattr_fn
= skel_fremovexattr
,
1055 .setxattr_fn
= skel_setxattr
,
1056 .fsetxattr_fn
= skel_fsetxattr
,
1058 /* aio operations */
1059 .aio_force_fn
= skel_aio_force
,
1063 NTSTATUS
vfs_skel_opaque_init(TALLOC_CTX
*ctx
)
1065 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION
, "skel_opaque",