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
, const char *path
,
49 uint64_t *dfree
, uint64_t *dsize
)
57 static int skel_get_quota(vfs_handle_struct
*handle
, const char *path
,
58 enum SMB_QUOTA_TYPE qtype
, unid_t id
,
65 static int skel_set_quota(vfs_handle_struct
*handle
, enum SMB_QUOTA_TYPE qtype
,
66 unid_t id
, SMB_DISK_QUOTA
*dq
)
72 static int skel_get_shadow_copy_data(vfs_handle_struct
*handle
,
74 struct shadow_copy_data
*shadow_copy_data
,
81 static int skel_statvfs(struct vfs_handle_struct
*handle
,
82 const char *path
, struct vfs_statvfs_struct
*statbuf
)
88 static uint32_t skel_fs_capabilities(struct vfs_handle_struct
*handle
,
89 enum timestamp_set_resolution
*p_ts_res
)
94 static NTSTATUS
skel_get_dfs_referrals(struct vfs_handle_struct
*handle
,
95 struct dfs_GetDFSReferral
*r
)
97 return NT_STATUS_NOT_IMPLEMENTED
;
100 static DIR *skel_opendir(vfs_handle_struct
*handle
,
101 const struct smb_filename
*smb_fname
,
108 static NTSTATUS
skel_snap_check_path(struct vfs_handle_struct
*handle
,
110 const char *service_path
,
113 return NT_STATUS_NOT_SUPPORTED
;
116 static NTSTATUS
skel_snap_create(struct vfs_handle_struct
*handle
,
118 const char *base_volume
,
124 return NT_STATUS_NOT_SUPPORTED
;
127 static NTSTATUS
skel_snap_delete(struct vfs_handle_struct
*handle
,
132 return NT_STATUS_NOT_SUPPORTED
;
135 static DIR *skel_fdopendir(vfs_handle_struct
*handle
, files_struct
*fsp
,
136 const char *mask
, uint32_t attr
)
141 static struct dirent
*skel_readdir(vfs_handle_struct
*handle
,
142 DIR *dirp
, SMB_STRUCT_STAT
*sbuf
)
147 static void skel_seekdir(vfs_handle_struct
*handle
, DIR *dirp
, long offset
)
152 static long skel_telldir(vfs_handle_struct
*handle
, DIR *dirp
)
157 static void skel_rewind_dir(vfs_handle_struct
*handle
, DIR *dirp
)
162 static int skel_mkdir(vfs_handle_struct
*handle
,
163 const struct smb_filename
*smb_fname
,
170 static int skel_rmdir(vfs_handle_struct
*handle
,
171 const struct smb_filename
*smb_fname
)
177 static int skel_closedir(vfs_handle_struct
*handle
, DIR *dir
)
183 static void skel_init_search_op(struct vfs_handle_struct
*handle
, DIR *dirp
)
188 static int skel_open(vfs_handle_struct
*handle
, struct smb_filename
*smb_fname
,
189 files_struct
*fsp
, int flags
, mode_t mode
)
195 static NTSTATUS
skel_create_file(struct vfs_handle_struct
*handle
,
196 struct smb_request
*req
,
197 uint16_t root_dir_fid
,
198 struct smb_filename
*smb_fname
,
199 uint32_t access_mask
,
200 uint32_t share_access
,
201 uint32_t create_disposition
,
202 uint32_t create_options
,
203 uint32_t file_attributes
,
204 uint32_t oplock_request
,
205 struct smb2_lease
*lease
,
206 uint64_t allocation_size
,
207 uint32_t private_flags
,
208 struct security_descriptor
*sd
,
209 struct ea_list
*ea_list
,
210 files_struct
**result
, int *pinfo
,
211 const struct smb2_create_blobs
*in_context_blobs
,
212 struct smb2_create_blobs
*out_context_blobs
)
214 return NT_STATUS_NOT_IMPLEMENTED
;
217 static int skel_close_fn(vfs_handle_struct
*handle
, files_struct
*fsp
)
223 static ssize_t
skel_vfs_read(vfs_handle_struct
*handle
, files_struct
*fsp
,
224 void *data
, size_t n
)
230 static ssize_t
skel_pread(vfs_handle_struct
*handle
, files_struct
*fsp
,
231 void *data
, size_t n
, off_t offset
)
237 static struct tevent_req
*skel_pread_send(struct vfs_handle_struct
*handle
,
239 struct tevent_context
*ev
,
240 struct files_struct
*fsp
,
241 void *data
, size_t n
, off_t offset
)
246 static ssize_t
skel_pread_recv(struct tevent_req
*req
,
247 struct vfs_aio_state
*vfs_aio_state
)
249 vfs_aio_state
->error
= ENOSYS
;
253 static ssize_t
skel_write(vfs_handle_struct
*handle
, files_struct
*fsp
,
254 const void *data
, size_t n
)
260 static ssize_t
skel_pwrite(vfs_handle_struct
*handle
, files_struct
*fsp
,
261 const void *data
, size_t n
, off_t offset
)
267 static struct tevent_req
*skel_pwrite_send(struct vfs_handle_struct
*handle
,
269 struct tevent_context
*ev
,
270 struct files_struct
*fsp
,
272 size_t n
, off_t offset
)
277 static ssize_t
skel_pwrite_recv(struct tevent_req
*req
,
278 struct vfs_aio_state
*vfs_aio_state
)
280 vfs_aio_state
->error
= ENOSYS
;
284 static off_t
skel_lseek(vfs_handle_struct
*handle
, files_struct
*fsp
,
285 off_t offset
, int whence
)
291 static ssize_t
skel_sendfile(vfs_handle_struct
*handle
, int tofd
,
292 files_struct
*fromfsp
, const DATA_BLOB
*hdr
,
293 off_t offset
, size_t n
)
299 static ssize_t
skel_recvfile(vfs_handle_struct
*handle
, int fromfd
,
300 files_struct
*tofsp
, off_t offset
, size_t n
)
306 static int skel_rename(vfs_handle_struct
*handle
,
307 const struct smb_filename
*smb_fname_src
,
308 const struct smb_filename
*smb_fname_dst
)
314 static int skel_fsync(vfs_handle_struct
*handle
, files_struct
*fsp
)
320 static struct tevent_req
*skel_fsync_send(struct vfs_handle_struct
*handle
,
322 struct tevent_context
*ev
,
323 struct files_struct
*fsp
)
328 static int skel_fsync_recv(struct tevent_req
*req
,
329 struct vfs_aio_state
*vfs_aio_state
)
331 vfs_aio_state
->error
= ENOSYS
;
335 static int skel_stat(vfs_handle_struct
*handle
, struct smb_filename
*smb_fname
)
341 static int skel_fstat(vfs_handle_struct
*handle
, files_struct
*fsp
,
342 SMB_STRUCT_STAT
*sbuf
)
348 static int skel_lstat(vfs_handle_struct
*handle
,
349 struct smb_filename
*smb_fname
)
355 static uint64_t skel_get_alloc_size(struct vfs_handle_struct
*handle
,
356 struct files_struct
*fsp
,
357 const SMB_STRUCT_STAT
*sbuf
)
363 static int skel_unlink(vfs_handle_struct
*handle
,
364 const struct smb_filename
*smb_fname
)
370 static int skel_chmod(vfs_handle_struct
*handle
,
371 const struct smb_filename
*smb_fname
,
378 static int skel_fchmod(vfs_handle_struct
*handle
, files_struct
*fsp
,
385 static int skel_chown(vfs_handle_struct
*handle
,
386 const struct smb_filename
*smb_fname
,
394 static int skel_fchown(vfs_handle_struct
*handle
, files_struct
*fsp
,
395 uid_t uid
, gid_t gid
)
401 static int skel_lchown(vfs_handle_struct
*handle
,
402 const struct smb_filename
*smb_fname
,
410 static int skel_chdir(vfs_handle_struct
*handle
, const char *path
)
416 static char *skel_getwd(vfs_handle_struct
*handle
)
422 static int skel_ntimes(vfs_handle_struct
*handle
,
423 const struct smb_filename
*smb_fname
,
424 struct smb_file_time
*ft
)
430 static int skel_ftruncate(vfs_handle_struct
*handle
, files_struct
*fsp
,
437 static int skel_fallocate(vfs_handle_struct
*handle
, files_struct
*fsp
,
438 uint32_t mode
, off_t offset
, off_t len
)
444 static bool skel_lock(vfs_handle_struct
*handle
, files_struct
*fsp
, int op
,
445 off_t offset
, off_t count
, int type
)
451 static int skel_kernel_flock(struct vfs_handle_struct
*handle
,
452 struct files_struct
*fsp
,
453 uint32_t share_mode
, uint32_t access_mask
)
459 static int skel_linux_setlease(struct vfs_handle_struct
*handle
,
460 struct files_struct
*fsp
, int leasetype
)
466 static bool skel_getlock(vfs_handle_struct
*handle
, files_struct
*fsp
,
467 off_t
*poffset
, off_t
*pcount
, int *ptype
,
474 static int skel_symlink(vfs_handle_struct
*handle
, const char *oldpath
,
481 static int skel_vfs_readlink(vfs_handle_struct
*handle
, const char *path
,
482 char *buf
, size_t bufsiz
)
488 static int skel_link(vfs_handle_struct
*handle
, const char *oldpath
,
495 static int skel_mknod(vfs_handle_struct
*handle
, const char *path
, mode_t mode
,
502 static char *skel_realpath(vfs_handle_struct
*handle
, const char *path
)
508 static int skel_chflags(vfs_handle_struct
*handle
, const char *path
,
515 static struct file_id
skel_file_id_create(vfs_handle_struct
*handle
,
516 const SMB_STRUCT_STAT
*sbuf
)
524 struct skel_cc_state
{
527 static struct tevent_req
*skel_copy_chunk_send(struct vfs_handle_struct
*handle
,
529 struct tevent_context
*ev
,
530 struct files_struct
*src_fsp
,
532 struct files_struct
*dest_fsp
,
537 struct tevent_req
*req
;
538 struct skel_cc_state
*cc_state
;
540 req
= tevent_req_create(mem_ctx
, &cc_state
, struct skel_cc_state
);
545 tevent_req_nterror(req
, NT_STATUS_NOT_IMPLEMENTED
);
546 return tevent_req_post(req
, ev
);
549 static NTSTATUS
skel_copy_chunk_recv(struct vfs_handle_struct
*handle
,
550 struct tevent_req
*req
,
555 if (tevent_req_is_nterror(req
, &status
)) {
556 tevent_req_received(req
);
559 tevent_req_received(req
);
564 static NTSTATUS
skel_get_compression(struct vfs_handle_struct
*handle
,
566 struct files_struct
*fsp
,
567 struct smb_filename
*smb_fname
,
568 uint16_t *_compression_fmt
)
570 return NT_STATUS_INVALID_DEVICE_REQUEST
;
573 static NTSTATUS
skel_set_compression(struct vfs_handle_struct
*handle
,
575 struct files_struct
*fsp
,
576 uint16_t compression_fmt
)
578 return NT_STATUS_INVALID_DEVICE_REQUEST
;
581 static NTSTATUS
skel_streaminfo(struct vfs_handle_struct
*handle
,
582 struct files_struct
*fsp
,
583 const struct smb_filename
*smb_fname
,
585 unsigned int *num_streams
,
586 struct stream_struct
**streams
)
588 return NT_STATUS_NOT_IMPLEMENTED
;
591 static int skel_get_real_filename(struct vfs_handle_struct
*handle
,
594 TALLOC_CTX
*mem_ctx
, char **found_name
)
600 static const char *skel_connectpath(struct vfs_handle_struct
*handle
,
601 const char *filename
)
607 static NTSTATUS
skel_brl_lock_windows(struct vfs_handle_struct
*handle
,
608 struct byte_range_lock
*br_lck
,
609 struct lock_struct
*plock
,
612 return NT_STATUS_NOT_IMPLEMENTED
;
615 static bool skel_brl_unlock_windows(struct vfs_handle_struct
*handle
,
616 struct messaging_context
*msg_ctx
,
617 struct byte_range_lock
*br_lck
,
618 const struct lock_struct
*plock
)
624 static bool skel_brl_cancel_windows(struct vfs_handle_struct
*handle
,
625 struct byte_range_lock
*br_lck
,
626 struct lock_struct
*plock
)
632 static bool skel_strict_lock(struct vfs_handle_struct
*handle
,
633 struct files_struct
*fsp
,
634 struct lock_struct
*plock
)
640 static void skel_strict_unlock(struct vfs_handle_struct
*handle
,
641 struct files_struct
*fsp
,
642 struct lock_struct
*plock
)
647 static NTSTATUS
skel_translate_name(struct vfs_handle_struct
*handle
,
648 const char *mapped_name
,
649 enum vfs_translate_direction direction
,
650 TALLOC_CTX
*mem_ctx
, char **pmapped_name
)
652 return NT_STATUS_NOT_IMPLEMENTED
;
655 static NTSTATUS
skel_fsctl(struct vfs_handle_struct
*handle
,
656 struct files_struct
*fsp
,
659 uint16_t req_flags
, /* Needed for UNICODE ... */
660 const uint8_t *_in_data
,
663 uint32_t max_out_len
, uint32_t *out_len
)
665 return NT_STATUS_NOT_IMPLEMENTED
;
668 static NTSTATUS
skel_readdir_attr(struct vfs_handle_struct
*handle
,
669 const struct smb_filename
*fname
,
671 struct readdir_attr_data
**pattr_data
)
673 return NT_STATUS_NOT_IMPLEMENTED
;
676 static NTSTATUS
skel_get_dos_attributes(struct vfs_handle_struct
*handle
,
677 struct smb_filename
*smb_fname
,
680 return NT_STATUS_NOT_IMPLEMENTED
;
683 static NTSTATUS
skel_fget_dos_attributes(struct vfs_handle_struct
*handle
,
684 struct files_struct
*fsp
,
687 return NT_STATUS_NOT_IMPLEMENTED
;
690 static NTSTATUS
skel_set_dos_attributes(struct vfs_handle_struct
*handle
,
691 const struct smb_filename
*smb_fname
,
694 return NT_STATUS_NOT_IMPLEMENTED
;
697 static NTSTATUS
skel_fset_dos_attributes(struct vfs_handle_struct
*handle
,
698 struct files_struct
*fsp
,
701 return NT_STATUS_NOT_IMPLEMENTED
;
704 static NTSTATUS
skel_fget_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
705 uint32_t security_info
,
707 struct security_descriptor
**ppdesc
)
709 return NT_STATUS_NOT_IMPLEMENTED
;
712 static NTSTATUS
skel_get_nt_acl(vfs_handle_struct
*handle
,
713 const struct smb_filename
*smb_fname
,
714 uint32_t security_info
,
716 struct security_descriptor
**ppdesc
)
718 return NT_STATUS_NOT_IMPLEMENTED
;
721 static NTSTATUS
skel_fset_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
722 uint32_t security_info_sent
,
723 const struct security_descriptor
*psd
)
725 return NT_STATUS_NOT_IMPLEMENTED
;
728 static int skel_chmod_acl(vfs_handle_struct
*handle
,
729 const struct smb_filename
*smb_fname
,
736 static int skel_fchmod_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
743 static SMB_ACL_T
skel_sys_acl_get_file(vfs_handle_struct
*handle
,
744 const struct smb_filename
*smb_fname
,
749 return (SMB_ACL_T
) NULL
;
752 static SMB_ACL_T
skel_sys_acl_get_fd(vfs_handle_struct
*handle
,
753 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
)
756 return (SMB_ACL_T
) NULL
;
759 static int skel_sys_acl_blob_get_file(vfs_handle_struct
*handle
,
760 const struct smb_filename
*smb_fname
,
762 char **blob_description
,
769 static int skel_sys_acl_blob_get_fd(vfs_handle_struct
*handle
,
770 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
,
771 char **blob_description
, DATA_BLOB
*blob
)
777 static int skel_sys_acl_set_file(vfs_handle_struct
*handle
,
778 const struct smb_filename
*smb_fname
,
779 SMB_ACL_TYPE_T acltype
,
786 static int skel_sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
793 static int skel_sys_acl_delete_def_file(vfs_handle_struct
*handle
,
794 const struct smb_filename
*smb_fname
)
800 static ssize_t
skel_getxattr(vfs_handle_struct
*handle
,
801 const struct smb_filename
*smb_fname
,
810 static ssize_t
skel_fgetxattr(vfs_handle_struct
*handle
,
811 struct files_struct
*fsp
, const char *name
,
812 void *value
, size_t size
)
818 static ssize_t
skel_listxattr(vfs_handle_struct
*handle
,
819 const struct smb_filename
*smb_fname
,
827 static ssize_t
skel_flistxattr(vfs_handle_struct
*handle
,
828 struct files_struct
*fsp
, char *list
,
835 static int skel_removexattr(vfs_handle_struct
*handle
,
836 const struct smb_filename
*smb_fname
,
843 static int skel_fremovexattr(vfs_handle_struct
*handle
,
844 struct files_struct
*fsp
, const char *name
)
848 return SMB_VFS_NEXT_FREMOVEXATTR(handle
, fsp
, name
);
851 static int skel_setxattr(vfs_handle_struct
*handle
,
852 const struct smb_filename
*smb_fname
,
862 static int skel_fsetxattr(vfs_handle_struct
*handle
, struct files_struct
*fsp
,
863 const char *name
, const void *value
, size_t size
,
870 static bool skel_aio_force(struct vfs_handle_struct
*handle
,
871 struct files_struct
*fsp
)
877 /* VFS operations structure */
879 struct vfs_fn_pointers skel_opaque_fns
= {
880 /* Disk operations */
882 .connect_fn
= skel_connect
,
883 .disconnect_fn
= skel_disconnect
,
884 .disk_free_fn
= skel_disk_free
,
885 .get_quota_fn
= skel_get_quota
,
886 .set_quota_fn
= skel_set_quota
,
887 .get_shadow_copy_data_fn
= skel_get_shadow_copy_data
,
888 .statvfs_fn
= skel_statvfs
,
889 .fs_capabilities_fn
= skel_fs_capabilities
,
890 .get_dfs_referrals_fn
= skel_get_dfs_referrals
,
891 .snap_check_path_fn
= skel_snap_check_path
,
892 .snap_create_fn
= skel_snap_create
,
893 .snap_delete_fn
= skel_snap_delete
,
895 /* Directory operations */
897 .opendir_fn
= skel_opendir
,
898 .fdopendir_fn
= skel_fdopendir
,
899 .readdir_fn
= skel_readdir
,
900 .seekdir_fn
= skel_seekdir
,
901 .telldir_fn
= skel_telldir
,
902 .rewind_dir_fn
= skel_rewind_dir
,
903 .mkdir_fn
= skel_mkdir
,
904 .rmdir_fn
= skel_rmdir
,
905 .closedir_fn
= skel_closedir
,
906 .init_search_op_fn
= skel_init_search_op
,
908 /* File operations */
910 .open_fn
= skel_open
,
911 .create_file_fn
= skel_create_file
,
912 .close_fn
= skel_close_fn
,
913 .read_fn
= skel_vfs_read
,
914 .pread_fn
= skel_pread
,
915 .pread_send_fn
= skel_pread_send
,
916 .pread_recv_fn
= skel_pread_recv
,
917 .write_fn
= skel_write
,
918 .pwrite_fn
= skel_pwrite
,
919 .pwrite_send_fn
= skel_pwrite_send
,
920 .pwrite_recv_fn
= skel_pwrite_recv
,
921 .lseek_fn
= skel_lseek
,
922 .sendfile_fn
= skel_sendfile
,
923 .recvfile_fn
= skel_recvfile
,
924 .rename_fn
= skel_rename
,
925 .fsync_fn
= skel_fsync
,
926 .fsync_send_fn
= skel_fsync_send
,
927 .fsync_recv_fn
= skel_fsync_recv
,
928 .stat_fn
= skel_stat
,
929 .fstat_fn
= skel_fstat
,
930 .lstat_fn
= skel_lstat
,
931 .get_alloc_size_fn
= skel_get_alloc_size
,
932 .unlink_fn
= skel_unlink
,
933 .chmod_fn
= skel_chmod
,
934 .fchmod_fn
= skel_fchmod
,
935 .chown_fn
= skel_chown
,
936 .fchown_fn
= skel_fchown
,
937 .lchown_fn
= skel_lchown
,
938 .chdir_fn
= skel_chdir
,
939 .getwd_fn
= skel_getwd
,
940 .ntimes_fn
= skel_ntimes
,
941 .ftruncate_fn
= skel_ftruncate
,
942 .fallocate_fn
= skel_fallocate
,
943 .lock_fn
= skel_lock
,
944 .kernel_flock_fn
= skel_kernel_flock
,
945 .linux_setlease_fn
= skel_linux_setlease
,
946 .getlock_fn
= skel_getlock
,
947 .symlink_fn
= skel_symlink
,
948 .readlink_fn
= skel_vfs_readlink
,
949 .link_fn
= skel_link
,
950 .mknod_fn
= skel_mknod
,
951 .realpath_fn
= skel_realpath
,
952 .chflags_fn
= skel_chflags
,
953 .file_id_create_fn
= skel_file_id_create
,
954 .copy_chunk_send_fn
= skel_copy_chunk_send
,
955 .copy_chunk_recv_fn
= skel_copy_chunk_recv
,
956 .get_compression_fn
= skel_get_compression
,
957 .set_compression_fn
= skel_set_compression
,
959 .streaminfo_fn
= skel_streaminfo
,
960 .get_real_filename_fn
= skel_get_real_filename
,
961 .connectpath_fn
= skel_connectpath
,
962 .brl_lock_windows_fn
= skel_brl_lock_windows
,
963 .brl_unlock_windows_fn
= skel_brl_unlock_windows
,
964 .brl_cancel_windows_fn
= skel_brl_cancel_windows
,
965 .strict_lock_fn
= skel_strict_lock
,
966 .strict_unlock_fn
= skel_strict_unlock
,
967 .translate_name_fn
= skel_translate_name
,
968 .fsctl_fn
= skel_fsctl
,
969 .readdir_attr_fn
= skel_readdir_attr
,
971 /* DOS attributes. */
972 .get_dos_attributes_fn
= skel_get_dos_attributes
,
973 .fget_dos_attributes_fn
= skel_fget_dos_attributes
,
974 .set_dos_attributes_fn
= skel_set_dos_attributes
,
975 .fset_dos_attributes_fn
= skel_fset_dos_attributes
,
977 /* NT ACL operations. */
979 .fget_nt_acl_fn
= skel_fget_nt_acl
,
980 .get_nt_acl_fn
= skel_get_nt_acl
,
981 .fset_nt_acl_fn
= skel_fset_nt_acl
,
983 /* POSIX ACL operations. */
985 .chmod_acl_fn
= skel_chmod_acl
,
986 .fchmod_acl_fn
= skel_fchmod_acl
,
988 .sys_acl_get_file_fn
= skel_sys_acl_get_file
,
989 .sys_acl_get_fd_fn
= skel_sys_acl_get_fd
,
990 .sys_acl_blob_get_file_fn
= skel_sys_acl_blob_get_file
,
991 .sys_acl_blob_get_fd_fn
= skel_sys_acl_blob_get_fd
,
992 .sys_acl_set_file_fn
= skel_sys_acl_set_file
,
993 .sys_acl_set_fd_fn
= skel_sys_acl_set_fd
,
994 .sys_acl_delete_def_file_fn
= skel_sys_acl_delete_def_file
,
997 .getxattr_fn
= skel_getxattr
,
998 .fgetxattr_fn
= skel_fgetxattr
,
999 .listxattr_fn
= skel_listxattr
,
1000 .flistxattr_fn
= skel_flistxattr
,
1001 .removexattr_fn
= skel_removexattr
,
1002 .fremovexattr_fn
= skel_fremovexattr
,
1003 .setxattr_fn
= skel_setxattr
,
1004 .fsetxattr_fn
= skel_fsetxattr
,
1006 /* aio operations */
1007 .aio_force_fn
= skel_aio_force
,
1011 NTSTATUS
vfs_skel_opaque_init(TALLOC_CTX
*ctx
)
1013 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION
, "skel_opaque",