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 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
,
411 const struct smb_filename
*smb_fname
)
417 static struct smb_filename
*skel_getwd(vfs_handle_struct
*handle
,
424 static int skel_ntimes(vfs_handle_struct
*handle
,
425 const struct smb_filename
*smb_fname
,
426 struct smb_file_time
*ft
)
432 static int skel_ftruncate(vfs_handle_struct
*handle
, files_struct
*fsp
,
439 static int skel_fallocate(vfs_handle_struct
*handle
, files_struct
*fsp
,
440 uint32_t mode
, off_t offset
, off_t len
)
446 static bool skel_lock(vfs_handle_struct
*handle
, files_struct
*fsp
, int op
,
447 off_t offset
, off_t count
, int type
)
453 static int skel_kernel_flock(struct vfs_handle_struct
*handle
,
454 struct files_struct
*fsp
,
455 uint32_t share_mode
, uint32_t access_mask
)
461 static int skel_linux_setlease(struct vfs_handle_struct
*handle
,
462 struct files_struct
*fsp
, int leasetype
)
468 static bool skel_getlock(vfs_handle_struct
*handle
, files_struct
*fsp
,
469 off_t
*poffset
, off_t
*pcount
, int *ptype
,
476 static int skel_symlink(vfs_handle_struct
*handle
,
477 const char *link_contents
,
478 const struct smb_filename
*new_smb_fname
)
484 static int skel_vfs_readlink(vfs_handle_struct
*handle
,
485 const struct smb_filename
*smb_fname
,
493 static int skel_link(vfs_handle_struct
*handle
,
494 const struct smb_filename
*old_smb_fname
,
495 const struct smb_filename
*new_smb_fname
)
501 static int skel_mknod(vfs_handle_struct
*handle
,
502 const struct smb_filename
*smb_fname
,
510 static struct smb_filename
*skel_realpath(vfs_handle_struct
*handle
,
512 const struct smb_filename
*smb_fname
)
518 static int skel_chflags(vfs_handle_struct
*handle
,
519 const struct smb_filename
*smb_fname
,
526 static struct file_id
skel_file_id_create(vfs_handle_struct
*handle
,
527 const SMB_STRUCT_STAT
*sbuf
)
535 struct skel_offload_read_state
{
539 static struct tevent_req
*skel_offload_read_send(
541 struct tevent_context
*ev
,
542 struct vfs_handle_struct
*handle
,
543 struct files_struct
*fsp
,
549 struct tevent_req
*req
= NULL
;
550 struct skel_offload_read_state
*state
= NULL
;
552 req
= tevent_req_create(mem_ctx
, &state
, struct skel_offload_read_state
);
557 tevent_req_nterror(req
, NT_STATUS_NOT_IMPLEMENTED
);
558 return tevent_req_post(req
, ev
);
561 static NTSTATUS
skel_offload_read_recv(struct tevent_req
*req
,
562 struct vfs_handle_struct
*handle
,
564 DATA_BLOB
*_token_blob
)
568 if (tevent_req_is_nterror(req
, &status
)) {
569 tevent_req_received(req
);
572 tevent_req_received(req
);
577 struct skel_cc_state
{
580 static struct tevent_req
*skel_offload_write_send(struct vfs_handle_struct
*handle
,
582 struct tevent_context
*ev
,
585 off_t transfer_offset
,
586 struct files_struct
*dest_fsp
,
590 struct tevent_req
*req
;
591 struct skel_cc_state
*cc_state
;
593 req
= tevent_req_create(mem_ctx
, &cc_state
, struct skel_cc_state
);
598 tevent_req_nterror(req
, NT_STATUS_NOT_IMPLEMENTED
);
599 return tevent_req_post(req
, ev
);
602 static NTSTATUS
skel_offload_write_recv(struct vfs_handle_struct
*handle
,
603 struct tevent_req
*req
,
608 if (tevent_req_is_nterror(req
, &status
)) {
609 tevent_req_received(req
);
612 tevent_req_received(req
);
617 static NTSTATUS
skel_get_compression(struct vfs_handle_struct
*handle
,
619 struct files_struct
*fsp
,
620 struct smb_filename
*smb_fname
,
621 uint16_t *_compression_fmt
)
623 return NT_STATUS_INVALID_DEVICE_REQUEST
;
626 static NTSTATUS
skel_set_compression(struct vfs_handle_struct
*handle
,
628 struct files_struct
*fsp
,
629 uint16_t compression_fmt
)
631 return NT_STATUS_INVALID_DEVICE_REQUEST
;
634 static NTSTATUS
skel_streaminfo(struct vfs_handle_struct
*handle
,
635 struct files_struct
*fsp
,
636 const struct smb_filename
*smb_fname
,
638 unsigned int *num_streams
,
639 struct stream_struct
**streams
)
641 return NT_STATUS_NOT_IMPLEMENTED
;
644 static int skel_get_real_filename(struct vfs_handle_struct
*handle
,
647 TALLOC_CTX
*mem_ctx
, char **found_name
)
653 static const char *skel_connectpath(struct vfs_handle_struct
*handle
,
654 const struct smb_filename
*smb_fname
)
660 static NTSTATUS
skel_brl_lock_windows(struct vfs_handle_struct
*handle
,
661 struct byte_range_lock
*br_lck
,
662 struct lock_struct
*plock
,
665 return NT_STATUS_NOT_IMPLEMENTED
;
668 static bool skel_brl_unlock_windows(struct vfs_handle_struct
*handle
,
669 struct messaging_context
*msg_ctx
,
670 struct byte_range_lock
*br_lck
,
671 const struct lock_struct
*plock
)
677 static bool skel_brl_cancel_windows(struct vfs_handle_struct
*handle
,
678 struct byte_range_lock
*br_lck
,
679 struct lock_struct
*plock
)
685 static bool skel_strict_lock_check(struct vfs_handle_struct
*handle
,
686 struct files_struct
*fsp
,
687 struct lock_struct
*plock
)
693 static NTSTATUS
skel_translate_name(struct vfs_handle_struct
*handle
,
694 const char *mapped_name
,
695 enum vfs_translate_direction direction
,
696 TALLOC_CTX
*mem_ctx
, char **pmapped_name
)
698 return NT_STATUS_NOT_IMPLEMENTED
;
701 static NTSTATUS
skel_fsctl(struct vfs_handle_struct
*handle
,
702 struct files_struct
*fsp
,
705 uint16_t req_flags
, /* Needed for UNICODE ... */
706 const uint8_t *_in_data
,
709 uint32_t max_out_len
, uint32_t *out_len
)
711 return NT_STATUS_NOT_IMPLEMENTED
;
714 static NTSTATUS
skel_readdir_attr(struct vfs_handle_struct
*handle
,
715 const struct smb_filename
*fname
,
717 struct readdir_attr_data
**pattr_data
)
719 return NT_STATUS_NOT_IMPLEMENTED
;
722 static NTSTATUS
skel_get_dos_attributes(struct vfs_handle_struct
*handle
,
723 struct smb_filename
*smb_fname
,
726 return NT_STATUS_NOT_IMPLEMENTED
;
729 static NTSTATUS
skel_fget_dos_attributes(struct vfs_handle_struct
*handle
,
730 struct files_struct
*fsp
,
733 return NT_STATUS_NOT_IMPLEMENTED
;
736 static NTSTATUS
skel_set_dos_attributes(struct vfs_handle_struct
*handle
,
737 const struct smb_filename
*smb_fname
,
740 return NT_STATUS_NOT_IMPLEMENTED
;
743 static NTSTATUS
skel_fset_dos_attributes(struct vfs_handle_struct
*handle
,
744 struct files_struct
*fsp
,
747 return NT_STATUS_NOT_IMPLEMENTED
;
750 static NTSTATUS
skel_fget_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
751 uint32_t security_info
,
753 struct security_descriptor
**ppdesc
)
755 return NT_STATUS_NOT_IMPLEMENTED
;
758 static NTSTATUS
skel_get_nt_acl(vfs_handle_struct
*handle
,
759 const struct smb_filename
*smb_fname
,
760 uint32_t security_info
,
762 struct security_descriptor
**ppdesc
)
764 return NT_STATUS_NOT_IMPLEMENTED
;
767 static NTSTATUS
skel_fset_nt_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
768 uint32_t security_info_sent
,
769 const struct security_descriptor
*psd
)
771 return NT_STATUS_NOT_IMPLEMENTED
;
774 static int skel_chmod_acl(vfs_handle_struct
*handle
,
775 const struct smb_filename
*smb_fname
,
782 static int skel_fchmod_acl(vfs_handle_struct
*handle
, files_struct
*fsp
,
789 static SMB_ACL_T
skel_sys_acl_get_file(vfs_handle_struct
*handle
,
790 const struct smb_filename
*smb_fname
,
795 return (SMB_ACL_T
) NULL
;
798 static SMB_ACL_T
skel_sys_acl_get_fd(vfs_handle_struct
*handle
,
799 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
)
802 return (SMB_ACL_T
) NULL
;
805 static int skel_sys_acl_blob_get_file(vfs_handle_struct
*handle
,
806 const struct smb_filename
*smb_fname
,
808 char **blob_description
,
815 static int skel_sys_acl_blob_get_fd(vfs_handle_struct
*handle
,
816 files_struct
*fsp
, TALLOC_CTX
*mem_ctx
,
817 char **blob_description
, DATA_BLOB
*blob
)
823 static int skel_sys_acl_set_file(vfs_handle_struct
*handle
,
824 const struct smb_filename
*smb_fname
,
825 SMB_ACL_TYPE_T acltype
,
832 static int skel_sys_acl_set_fd(vfs_handle_struct
*handle
, files_struct
*fsp
,
839 static int skel_sys_acl_delete_def_file(vfs_handle_struct
*handle
,
840 const struct smb_filename
*smb_fname
)
846 static ssize_t
skel_getxattr(vfs_handle_struct
*handle
,
847 const struct smb_filename
*smb_fname
,
856 static ssize_t
skel_fgetxattr(vfs_handle_struct
*handle
,
857 struct files_struct
*fsp
, const char *name
,
858 void *value
, size_t size
)
864 static ssize_t
skel_listxattr(vfs_handle_struct
*handle
,
865 const struct smb_filename
*smb_fname
,
873 static ssize_t
skel_flistxattr(vfs_handle_struct
*handle
,
874 struct files_struct
*fsp
, char *list
,
881 static int skel_removexattr(vfs_handle_struct
*handle
,
882 const struct smb_filename
*smb_fname
,
889 static int skel_fremovexattr(vfs_handle_struct
*handle
,
890 struct files_struct
*fsp
, const char *name
)
894 return SMB_VFS_NEXT_FREMOVEXATTR(handle
, fsp
, name
);
897 static int skel_setxattr(vfs_handle_struct
*handle
,
898 const struct smb_filename
*smb_fname
,
908 static int skel_fsetxattr(vfs_handle_struct
*handle
, struct files_struct
*fsp
,
909 const char *name
, const void *value
, size_t size
,
916 static bool skel_aio_force(struct vfs_handle_struct
*handle
,
917 struct files_struct
*fsp
)
923 /* VFS operations structure */
925 struct vfs_fn_pointers skel_opaque_fns
= {
926 /* Disk operations */
928 .connect_fn
= skel_connect
,
929 .disconnect_fn
= skel_disconnect
,
930 .disk_free_fn
= skel_disk_free
,
931 .get_quota_fn
= skel_get_quota
,
932 .set_quota_fn
= skel_set_quota
,
933 .get_shadow_copy_data_fn
= skel_get_shadow_copy_data
,
934 .statvfs_fn
= skel_statvfs
,
935 .fs_capabilities_fn
= skel_fs_capabilities
,
936 .get_dfs_referrals_fn
= skel_get_dfs_referrals
,
937 .snap_check_path_fn
= skel_snap_check_path
,
938 .snap_create_fn
= skel_snap_create
,
939 .snap_delete_fn
= skel_snap_delete
,
941 /* Directory operations */
943 .opendir_fn
= skel_opendir
,
944 .fdopendir_fn
= skel_fdopendir
,
945 .readdir_fn
= skel_readdir
,
946 .seekdir_fn
= skel_seekdir
,
947 .telldir_fn
= skel_telldir
,
948 .rewind_dir_fn
= skel_rewind_dir
,
949 .mkdir_fn
= skel_mkdir
,
950 .rmdir_fn
= skel_rmdir
,
951 .closedir_fn
= skel_closedir
,
953 /* File operations */
955 .open_fn
= skel_open
,
956 .create_file_fn
= skel_create_file
,
957 .close_fn
= skel_close_fn
,
958 .read_fn
= skel_vfs_read
,
959 .pread_fn
= skel_pread
,
960 .pread_send_fn
= skel_pread_send
,
961 .pread_recv_fn
= skel_pread_recv
,
962 .write_fn
= skel_write
,
963 .pwrite_fn
= skel_pwrite
,
964 .pwrite_send_fn
= skel_pwrite_send
,
965 .pwrite_recv_fn
= skel_pwrite_recv
,
966 .lseek_fn
= skel_lseek
,
967 .sendfile_fn
= skel_sendfile
,
968 .recvfile_fn
= skel_recvfile
,
969 .rename_fn
= skel_rename
,
970 .fsync_fn
= skel_fsync
,
971 .fsync_send_fn
= skel_fsync_send
,
972 .fsync_recv_fn
= skel_fsync_recv
,
973 .stat_fn
= skel_stat
,
974 .fstat_fn
= skel_fstat
,
975 .lstat_fn
= skel_lstat
,
976 .get_alloc_size_fn
= skel_get_alloc_size
,
977 .unlink_fn
= skel_unlink
,
978 .chmod_fn
= skel_chmod
,
979 .fchmod_fn
= skel_fchmod
,
980 .chown_fn
= skel_chown
,
981 .fchown_fn
= skel_fchown
,
982 .lchown_fn
= skel_lchown
,
983 .chdir_fn
= skel_chdir
,
984 .getwd_fn
= skel_getwd
,
985 .ntimes_fn
= skel_ntimes
,
986 .ftruncate_fn
= skel_ftruncate
,
987 .fallocate_fn
= skel_fallocate
,
988 .lock_fn
= skel_lock
,
989 .kernel_flock_fn
= skel_kernel_flock
,
990 .linux_setlease_fn
= skel_linux_setlease
,
991 .getlock_fn
= skel_getlock
,
992 .symlink_fn
= skel_symlink
,
993 .readlink_fn
= skel_vfs_readlink
,
994 .link_fn
= skel_link
,
995 .mknod_fn
= skel_mknod
,
996 .realpath_fn
= skel_realpath
,
997 .chflags_fn
= skel_chflags
,
998 .file_id_create_fn
= skel_file_id_create
,
999 .offload_read_send_fn
= skel_offload_read_send
,
1000 .offload_read_recv_fn
= skel_offload_read_recv
,
1001 .offload_write_send_fn
= skel_offload_write_send
,
1002 .offload_write_recv_fn
= skel_offload_write_recv
,
1003 .get_compression_fn
= skel_get_compression
,
1004 .set_compression_fn
= skel_set_compression
,
1006 .streaminfo_fn
= skel_streaminfo
,
1007 .get_real_filename_fn
= skel_get_real_filename
,
1008 .connectpath_fn
= skel_connectpath
,
1009 .brl_lock_windows_fn
= skel_brl_lock_windows
,
1010 .brl_unlock_windows_fn
= skel_brl_unlock_windows
,
1011 .brl_cancel_windows_fn
= skel_brl_cancel_windows
,
1012 .strict_lock_check_fn
= skel_strict_lock_check
,
1013 .translate_name_fn
= skel_translate_name
,
1014 .fsctl_fn
= skel_fsctl
,
1015 .readdir_attr_fn
= skel_readdir_attr
,
1017 /* DOS attributes. */
1018 .get_dos_attributes_fn
= skel_get_dos_attributes
,
1019 .fget_dos_attributes_fn
= skel_fget_dos_attributes
,
1020 .set_dos_attributes_fn
= skel_set_dos_attributes
,
1021 .fset_dos_attributes_fn
= skel_fset_dos_attributes
,
1023 /* NT ACL operations. */
1025 .fget_nt_acl_fn
= skel_fget_nt_acl
,
1026 .get_nt_acl_fn
= skel_get_nt_acl
,
1027 .fset_nt_acl_fn
= skel_fset_nt_acl
,
1029 /* POSIX ACL operations. */
1031 .chmod_acl_fn
= skel_chmod_acl
,
1032 .fchmod_acl_fn
= skel_fchmod_acl
,
1034 .sys_acl_get_file_fn
= skel_sys_acl_get_file
,
1035 .sys_acl_get_fd_fn
= skel_sys_acl_get_fd
,
1036 .sys_acl_blob_get_file_fn
= skel_sys_acl_blob_get_file
,
1037 .sys_acl_blob_get_fd_fn
= skel_sys_acl_blob_get_fd
,
1038 .sys_acl_set_file_fn
= skel_sys_acl_set_file
,
1039 .sys_acl_set_fd_fn
= skel_sys_acl_set_fd
,
1040 .sys_acl_delete_def_file_fn
= skel_sys_acl_delete_def_file
,
1042 /* EA operations. */
1043 .getxattr_fn
= skel_getxattr
,
1044 .fgetxattr_fn
= skel_fgetxattr
,
1045 .listxattr_fn
= skel_listxattr
,
1046 .flistxattr_fn
= skel_flistxattr
,
1047 .removexattr_fn
= skel_removexattr
,
1048 .fremovexattr_fn
= skel_fremovexattr
,
1049 .setxattr_fn
= skel_setxattr
,
1050 .fsetxattr_fn
= skel_fsetxattr
,
1052 /* aio operations */
1053 .aio_force_fn
= skel_aio_force
,
1057 NTSTATUS
vfs_skel_opaque_init(TALLOC_CTX
*ctx
)
1059 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION
, "skel_opaque",