2 * VFS module with "not implemented " helper functions for other modules.
4 * Copyright (C) Tim Potter, 1999-2000
5 * Copyright (C) Alexander Bokovoy, 2002
6 * Copyright (C) Stefan (metze) Metzmacher, 2003,2018
7 * Copyright (C) Jeremy Allison 2009
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 3 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 #include "lib/util/tevent_unix.h"
25 #include "lib/util/tevent_ntstatus.h"
27 int vfs_not_implemented_connect(
28 vfs_handle_struct *handle,
36 void vfs_not_implemented_disconnect(vfs_handle_struct *handle)
41 uint64_t vfs_not_implemented_disk_free(vfs_handle_struct *handle,
42 const struct smb_filename *smb_fname,
53 int vfs_not_implemented_get_quota(vfs_handle_struct *handle,
54 const struct smb_filename *smb_fname,
55 enum SMB_QUOTA_TYPE qtype,
63 int vfs_not_implemented_set_quota(vfs_handle_struct *handle,
64 enum SMB_QUOTA_TYPE qtype,
65 unid_t id, SMB_DISK_QUOTA *dq)
71 int vfs_not_implemented_get_shadow_copy_data(vfs_handle_struct *handle,
73 struct shadow_copy_data *shadow_copy_data,
80 int vfs_not_implemented_statvfs(struct vfs_handle_struct *handle,
81 const struct smb_filename *smb_fname,
82 struct vfs_statvfs_struct *statbuf)
88 uint32_t vfs_not_implemented_fs_capabilities(struct vfs_handle_struct *handle,
89 enum timestamp_set_resolution *p_ts_res)
94 NTSTATUS vfs_not_implemented_get_dfs_referrals(struct vfs_handle_struct *handle,
95 struct dfs_GetDFSReferral *r)
97 return NT_STATUS_NOT_IMPLEMENTED;
100 NTSTATUS vfs_not_implemented_create_dfs_pathat(struct vfs_handle_struct *handle,
101 struct files_struct *dirfsp,
102 const struct smb_filename *smb_fname,
103 const struct referral *reflist,
104 size_t referral_count)
106 return NT_STATUS_NOT_IMPLEMENTED;
109 NTSTATUS vfs_not_implemented_read_dfs_pathat(struct vfs_handle_struct *handle,
111 struct files_struct *dirfsp,
112 struct smb_filename *smb_fname,
113 struct referral **ppreflist,
114 size_t *preferral_count)
116 return NT_STATUS_NOT_IMPLEMENTED;
119 NTSTATUS vfs_not_implemented_snap_check_path(struct vfs_handle_struct *handle,
121 const char *service_path,
124 return NT_STATUS_NOT_SUPPORTED;
127 NTSTATUS vfs_not_implemented_snap_create(struct vfs_handle_struct *handle,
129 const char *base_volume,
135 return NT_STATUS_NOT_SUPPORTED;
138 NTSTATUS vfs_not_implemented_snap_delete(struct vfs_handle_struct *handle,
143 return NT_STATUS_NOT_SUPPORTED;
146 DIR *vfs_not_implemented_fdopendir(vfs_handle_struct *handle, files_struct *fsp,
147 const char *mask, uint32_t attr)
153 struct dirent *vfs_not_implemented_readdir(vfs_handle_struct *handle,
154 struct files_struct *dirfsp,
156 SMB_STRUCT_STAT *sbuf)
162 void vfs_not_implemented_seekdir(vfs_handle_struct *handle, DIR *dirp, long offset)
167 long vfs_not_implemented_telldir(vfs_handle_struct *handle, DIR *dirp)
173 void vfs_not_implemented_rewind_dir(vfs_handle_struct *handle, DIR *dirp)
178 int vfs_not_implemented_mkdirat(vfs_handle_struct *handle,
179 struct files_struct *dirfsp,
180 const struct smb_filename *smb_fname,
187 int vfs_not_implemented_closedir(vfs_handle_struct *handle, DIR *dir)
193 int vfs_not_implemented_openat(vfs_handle_struct *handle,
194 const struct files_struct *dirfsp,
195 const struct smb_filename *smb_fname,
196 struct files_struct *fsp,
204 NTSTATUS vfs_not_implemented_create_file(struct vfs_handle_struct *handle,
205 struct smb_request *req,
206 struct smb_filename *smb_fname,
207 uint32_t access_mask,
208 uint32_t share_access,
209 uint32_t create_disposition,
210 uint32_t create_options,
211 uint32_t file_attributes,
212 uint32_t oplock_request,
213 const struct smb2_lease *lease,
214 uint64_t allocation_size,
215 uint32_t private_flags,
216 struct security_descriptor *sd,
217 struct ea_list *ea_list,
218 files_struct **result, int *pinfo,
219 const struct smb2_create_blobs *in_context_blobs,
220 struct smb2_create_blobs *out_context_blobs)
222 return NT_STATUS_NOT_IMPLEMENTED;
225 int vfs_not_implemented_close_fn(vfs_handle_struct *handle, files_struct *fsp)
231 ssize_t vfs_not_implemented_pread(vfs_handle_struct *handle, files_struct *fsp,
232 void *data, size_t n, off_t offset)
238 struct tevent_req *vfs_not_implemented_pread_send(struct vfs_handle_struct *handle,
240 struct tevent_context *ev,
241 struct files_struct *fsp,
242 void *data, size_t n, off_t offset)
247 ssize_t vfs_not_implemented_pread_recv(struct tevent_req *req,
248 struct vfs_aio_state *vfs_aio_state)
250 vfs_aio_state->error = ENOSYS;
254 ssize_t vfs_not_implemented_pwrite(vfs_handle_struct *handle, files_struct *fsp,
255 const void *data, size_t n, off_t offset)
261 struct tevent_req *vfs_not_implemented_pwrite_send(struct vfs_handle_struct *handle,
263 struct tevent_context *ev,
264 struct files_struct *fsp,
266 size_t n, off_t offset)
271 ssize_t vfs_not_implemented_pwrite_recv(struct tevent_req *req,
272 struct vfs_aio_state *vfs_aio_state)
274 vfs_aio_state->error = ENOSYS;
278 off_t vfs_not_implemented_lseek(vfs_handle_struct *handle, files_struct *fsp,
279 off_t offset, int whence)
285 ssize_t vfs_not_implemented_sendfile(vfs_handle_struct *handle, int tofd,
286 files_struct *fromfsp, const DATA_BLOB *hdr,
287 off_t offset, size_t n)
293 ssize_t vfs_not_implemented_recvfile(vfs_handle_struct *handle, int fromfd,
294 files_struct *tofsp, off_t offset, size_t n)
300 int vfs_not_implemented_renameat(vfs_handle_struct *handle,
301 files_struct *srcfsp,
302 const struct smb_filename *smb_fname_src,
303 files_struct *dstfsp,
304 const struct smb_filename *smb_fname_dst)
310 struct tevent_req *vfs_not_implemented_fsync_send(struct vfs_handle_struct *handle,
312 struct tevent_context *ev,
313 struct files_struct *fsp)
318 int vfs_not_implemented_fsync_recv(struct tevent_req *req,
319 struct vfs_aio_state *vfs_aio_state)
321 vfs_aio_state->error = ENOSYS;
325 int vfs_not_implemented_stat(vfs_handle_struct *handle, struct smb_filename *smb_fname)
331 int vfs_not_implemented_fstat(vfs_handle_struct *handle, files_struct *fsp,
332 SMB_STRUCT_STAT *sbuf)
338 int vfs_not_implemented_lstat(vfs_handle_struct *handle,
339 struct smb_filename *smb_fname)
345 uint64_t vfs_not_implemented_get_alloc_size(struct vfs_handle_struct *handle,
346 struct files_struct *fsp,
347 const SMB_STRUCT_STAT *sbuf)
353 int vfs_not_implemented_unlinkat(vfs_handle_struct *handle,
354 struct files_struct *dirfsp,
355 const struct smb_filename *smb_fname,
362 int vfs_not_implemented_chmod(vfs_handle_struct *handle,
363 const struct smb_filename *smb_fname,
370 int vfs_not_implemented_fchmod(vfs_handle_struct *handle, files_struct *fsp,
377 int vfs_not_implemented_fchown(vfs_handle_struct *handle, files_struct *fsp,
378 uid_t uid, gid_t gid)
384 int vfs_not_implemented_lchown(vfs_handle_struct *handle,
385 const struct smb_filename *smb_fname,
393 int vfs_not_implemented_chdir(vfs_handle_struct *handle,
394 const struct smb_filename *smb_fname)
400 struct smb_filename *vfs_not_implemented_getwd(vfs_handle_struct *handle,
407 int vfs_not_implemented_ntimes(vfs_handle_struct *handle,
408 const struct smb_filename *smb_fname,
409 struct smb_file_time *ft)
415 int vfs_not_implemented_ftruncate(vfs_handle_struct *handle, files_struct *fsp,
422 int vfs_not_implemented_fallocate(vfs_handle_struct *handle, files_struct *fsp,
423 uint32_t mode, off_t offset, off_t len)
429 bool vfs_not_implemented_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
430 off_t offset, off_t count, int type)
436 int vfs_not_implemented_kernel_flock(struct vfs_handle_struct *handle,
437 struct files_struct *fsp,
438 uint32_t share_access, uint32_t access_mask)
444 int vfs_not_implemented_fcntl(struct vfs_handle_struct *handle,
445 struct files_struct *fsp, int cmd,
452 int vfs_not_implemented_linux_setlease(struct vfs_handle_struct *handle,
453 struct files_struct *fsp, int leasetype)
459 bool vfs_not_implemented_getlock(vfs_handle_struct *handle, files_struct *fsp,
460 off_t *poffset, off_t *pcount, int *ptype,
467 int vfs_not_implemented_symlinkat(vfs_handle_struct *handle,
468 const struct smb_filename *link_contents,
469 struct files_struct *dirfsp,
470 const struct smb_filename *new_smb_fname)
476 int vfs_not_implemented_vfs_readlinkat(vfs_handle_struct *handle,
477 const struct files_struct *dirfsp,
478 const struct smb_filename *smb_fname,
486 int vfs_not_implemented_linkat(vfs_handle_struct *handle,
487 files_struct *srcfsp,
488 const struct smb_filename *old_smb_fname,
489 files_struct *dstfsp,
490 const struct smb_filename *new_smb_fname,
497 int vfs_not_implemented_mknodat(vfs_handle_struct *handle,
498 files_struct *dirfsp,
499 const struct smb_filename *smb_fname,
507 struct smb_filename *vfs_not_implemented_realpath(vfs_handle_struct *handle,
509 const struct smb_filename *smb_fname)
515 int vfs_not_implemented_chflags(vfs_handle_struct *handle,
516 const struct smb_filename *smb_fname,
523 struct file_id vfs_not_implemented_file_id_create(vfs_handle_struct *handle,
524 const SMB_STRUCT_STAT *sbuf)
532 uint64_t vfs_not_implemented_fs_file_id(vfs_handle_struct *handle,
533 const SMB_STRUCT_STAT *sbuf)
539 struct vfs_not_implemented_offload_read_state {
543 struct tevent_req *vfs_not_implemented_offload_read_send(
545 struct tevent_context *ev,
546 struct vfs_handle_struct *handle,
547 struct files_struct *fsp,
553 struct tevent_req *req = NULL;
554 struct vfs_not_implemented_offload_read_state *state = NULL;
556 req = tevent_req_create(mem_ctx, &state,
557 struct vfs_not_implemented_offload_read_state);
562 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
563 return tevent_req_post(req, ev);
566 NTSTATUS vfs_not_implemented_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);
578 tevent_req_received(req);
582 struct vfs_not_implemented_offload_write_state {
586 struct tevent_req *vfs_not_implemented_offload_write_send(
587 struct vfs_handle_struct *handle,
589 struct tevent_context *ev,
592 off_t transfer_offset,
593 struct files_struct *dest_fsp,
597 struct tevent_req *req;
598 struct vfs_not_implemented_offload_write_state *state;
600 req = tevent_req_create(mem_ctx, &state,
601 struct vfs_not_implemented_offload_write_state);
606 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
607 return tevent_req_post(req, ev);
610 NTSTATUS vfs_not_implemented_offload_write_recv(struct vfs_handle_struct *handle,
611 struct tevent_req *req,
616 if (tevent_req_is_nterror(req, &status)) {
617 tevent_req_received(req);
621 tevent_req_received(req);
625 NTSTATUS vfs_not_implemented_get_compression(struct vfs_handle_struct *handle,
627 struct files_struct *fsp,
628 struct smb_filename *smb_fname,
629 uint16_t *_compression_fmt)
631 return NT_STATUS_INVALID_DEVICE_REQUEST;
634 NTSTATUS vfs_not_implemented_set_compression(struct vfs_handle_struct *handle,
636 struct files_struct *fsp,
637 uint16_t compression_fmt)
639 return NT_STATUS_INVALID_DEVICE_REQUEST;
642 NTSTATUS vfs_not_implemented_streaminfo(struct vfs_handle_struct *handle,
643 struct files_struct *fsp,
644 const struct smb_filename *smb_fname,
646 unsigned int *num_streams,
647 struct stream_struct **streams)
649 return NT_STATUS_NOT_IMPLEMENTED;
652 int vfs_not_implemented_get_real_filename(struct vfs_handle_struct *handle,
653 const struct smb_filename *path,
662 const char *vfs_not_implemented_connectpath(struct vfs_handle_struct *handle,
663 const struct smb_filename *smb_fname)
669 NTSTATUS vfs_not_implemented_brl_lock_windows(struct vfs_handle_struct *handle,
670 struct byte_range_lock *br_lck,
671 struct lock_struct *plock)
673 return NT_STATUS_NOT_IMPLEMENTED;
676 bool vfs_not_implemented_brl_unlock_windows(struct vfs_handle_struct *handle,
677 struct byte_range_lock *br_lck,
678 const struct lock_struct *plock)
684 bool vfs_not_implemented_strict_lock_check(struct vfs_handle_struct *handle,
685 struct files_struct *fsp,
686 struct lock_struct *plock)
692 NTSTATUS vfs_not_implemented_translate_name(struct vfs_handle_struct *handle,
693 const char *mapped_name,
694 enum vfs_translate_direction direction,
695 TALLOC_CTX *mem_ctx, char **pmapped_name)
697 return NT_STATUS_NOT_IMPLEMENTED;
700 NTSTATUS vfs_not_implemented_fsctl(struct vfs_handle_struct *handle,
701 struct files_struct *fsp,
704 uint16_t req_flags, /* Needed for UNICODE ... */
705 const uint8_t *_in_data,
708 uint32_t max_out_len, uint32_t *out_len)
710 return NT_STATUS_NOT_IMPLEMENTED;
713 NTSTATUS vfs_not_implemented_readdir_attr(struct vfs_handle_struct *handle,
714 const struct smb_filename *fname,
716 struct readdir_attr_data **pattr_data)
718 return NT_STATUS_NOT_IMPLEMENTED;
721 struct vfs_not_implemented_get_dos_attributes_state {
722 struct vfs_aio_state aio_state;
726 struct tevent_req *vfs_not_implemented_get_dos_attributes_send(
728 struct tevent_context *ev,
729 struct vfs_handle_struct *handle,
730 files_struct *dir_fsp,
731 struct smb_filename *smb_fname)
733 struct tevent_req *req = NULL;
734 struct vfs_not_implemented_get_dos_attributes_state *state = NULL;
736 req = tevent_req_create(mem_ctx, &state,
737 struct vfs_not_implemented_get_dos_attributes_state);
742 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
743 return tevent_req_post(req, ev);
746 NTSTATUS vfs_not_implemented_get_dos_attributes_recv(
747 struct tevent_req *req,
748 struct vfs_aio_state *aio_state,
751 struct vfs_not_implemented_get_dos_attributes_state *state =
753 struct vfs_not_implemented_get_dos_attributes_state);
756 if (tevent_req_is_nterror(req, &status)) {
757 tevent_req_received(req);
761 *aio_state = state->aio_state;
762 *dosmode = state->dosmode;
763 tevent_req_received(req);
767 NTSTATUS vfs_not_implemented_fget_dos_attributes(struct vfs_handle_struct *handle,
768 struct files_struct *fsp,
771 return NT_STATUS_NOT_IMPLEMENTED;
774 NTSTATUS vfs_not_implemented_set_dos_attributes(struct vfs_handle_struct *handle,
775 const struct smb_filename *smb_fname,
778 return NT_STATUS_NOT_IMPLEMENTED;
781 NTSTATUS vfs_not_implemented_fset_dos_attributes(struct vfs_handle_struct *handle,
782 struct files_struct *fsp,
785 return NT_STATUS_NOT_IMPLEMENTED;
788 NTSTATUS vfs_not_implemented_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
789 uint32_t security_info,
791 struct security_descriptor **ppdesc)
793 return NT_STATUS_NOT_IMPLEMENTED;
796 NTSTATUS vfs_not_implemented_get_nt_acl_at(vfs_handle_struct *handle,
797 struct files_struct *dirfsp,
798 const struct smb_filename *smb_fname,
799 uint32_t security_info,
801 struct security_descriptor **ppdesc)
803 return NT_STATUS_NOT_IMPLEMENTED;
806 NTSTATUS vfs_not_implemented_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
807 uint32_t security_info_sent,
808 const struct security_descriptor *psd)
810 return NT_STATUS_NOT_IMPLEMENTED;
813 SMB_ACL_T vfs_not_implemented_sys_acl_get_file(vfs_handle_struct *handle,
814 const struct smb_filename *smb_fname,
819 return (SMB_ACL_T) NULL;
822 SMB_ACL_T vfs_not_implemented_sys_acl_get_fd(vfs_handle_struct *handle,
823 files_struct *fsp, TALLOC_CTX *mem_ctx)
826 return (SMB_ACL_T) NULL;
829 int vfs_not_implemented_sys_acl_blob_get_file(vfs_handle_struct *handle,
830 const struct smb_filename *smb_fname,
832 char **blob_description,
839 int vfs_not_implemented_sys_acl_blob_get_fd(vfs_handle_struct *handle,
840 files_struct *fsp, TALLOC_CTX *mem_ctx,
841 char **blob_description, DATA_BLOB *blob)
847 int vfs_not_implemented_sys_acl_set_file(vfs_handle_struct *handle,
848 const struct smb_filename *smb_fname,
849 SMB_ACL_TYPE_T acltype,
856 int vfs_not_implemented_sys_acl_set_fd(vfs_handle_struct *handle, files_struct *fsp,
863 int vfs_not_implemented_sys_acl_delete_def_file(vfs_handle_struct *handle,
864 const struct smb_filename *smb_fname)
870 ssize_t vfs_not_implemented_getxattr(vfs_handle_struct *handle,
871 const struct smb_filename *smb_fname,
880 struct vfs_not_implemented_getxattrat_state {
881 struct vfs_aio_state aio_state;
883 uint8_t *xattr_value;
886 struct tevent_req *vfs_not_implemented_getxattrat_send(
888 struct tevent_context *ev,
889 struct vfs_handle_struct *handle,
890 files_struct *dir_fsp,
891 const struct smb_filename *smb_fname,
892 const char *xattr_name,
895 struct tevent_req *req = NULL;
896 struct vfs_not_implemented_getxattrat_state *state = NULL;
898 req = tevent_req_create(mem_ctx, &state,
899 struct vfs_not_implemented_getxattrat_state);
904 tevent_req_error(req, ENOSYS);
905 return tevent_req_post(req, ev);
908 ssize_t vfs_not_implemented_getxattrat_recv(struct tevent_req *req,
909 struct vfs_aio_state *aio_state,
911 uint8_t **xattr_value)
913 struct vfs_not_implemented_getxattrat_state *state = tevent_req_data(
914 req, struct vfs_not_implemented_getxattrat_state);
917 if (tevent_req_is_unix_error(req, &aio_state->error)) {
918 tevent_req_received(req);
922 *aio_state = state->aio_state;
923 xattr_size = state->xattr_size;
924 if (xattr_value != NULL) {
925 *xattr_value = talloc_move(mem_ctx, &state->xattr_value);
928 tevent_req_received(req);
932 ssize_t vfs_not_implemented_fgetxattr(vfs_handle_struct *handle,
933 struct files_struct *fsp, const char *name,
934 void *value, size_t size)
940 ssize_t vfs_not_implemented_listxattr(vfs_handle_struct *handle,
941 const struct smb_filename *smb_fname,
949 ssize_t vfs_not_implemented_flistxattr(vfs_handle_struct *handle,
950 struct files_struct *fsp, char *list,
957 int vfs_not_implemented_removexattr(vfs_handle_struct *handle,
958 const struct smb_filename *smb_fname,
965 int vfs_not_implemented_fremovexattr(vfs_handle_struct *handle,
966 struct files_struct *fsp, const char *name)
972 int vfs_not_implemented_setxattr(vfs_handle_struct *handle,
973 const struct smb_filename *smb_fname,
983 int vfs_not_implemented_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp,
984 const char *name, const void *value, size_t size,
991 bool vfs_not_implemented_aio_force(struct vfs_handle_struct *handle,
992 struct files_struct *fsp)
998 NTSTATUS vfs_not_implemented_audit_file(struct vfs_handle_struct *handle,
999 struct smb_filename *file,
1000 struct security_acl *sacl,
1001 uint32_t access_requested,
1002 uint32_t access_denied)
1004 return NT_STATUS_NOT_IMPLEMENTED;
1007 NTSTATUS vfs_not_implemented_durable_cookie(struct vfs_handle_struct *handle,
1008 struct files_struct *fsp,
1009 TALLOC_CTX *mem_ctx,
1012 return NT_STATUS_NOT_IMPLEMENTED;
1015 NTSTATUS vfs_not_implemented_durable_disconnect(struct vfs_handle_struct *handle,
1016 struct files_struct *fsp,
1017 const DATA_BLOB old_cookie,
1018 TALLOC_CTX *mem_ctx,
1019 DATA_BLOB *new_cookie)
1021 return NT_STATUS_NOT_IMPLEMENTED;
1024 NTSTATUS vfs_not_implemented_durable_reconnect(struct vfs_handle_struct *handle,
1025 struct smb_request *smb1req,
1026 struct smbXsrv_open *op,
1027 const DATA_BLOB old_cookie,
1028 TALLOC_CTX *mem_ctx,
1029 struct files_struct **fsp,
1030 DATA_BLOB *new_cookie)
1032 return NT_STATUS_NOT_IMPLEMENTED;
1035 /* VFS operations structure */
1037 static struct vfs_fn_pointers vfs_not_implemented_fns = {
1038 /* Disk operations */
1040 .connect_fn = vfs_not_implemented_connect,
1041 .disconnect_fn = vfs_not_implemented_disconnect,
1042 .disk_free_fn = vfs_not_implemented_disk_free,
1043 .get_quota_fn = vfs_not_implemented_get_quota,
1044 .set_quota_fn = vfs_not_implemented_set_quota,
1045 .get_shadow_copy_data_fn = vfs_not_implemented_get_shadow_copy_data,
1046 .statvfs_fn = vfs_not_implemented_statvfs,
1047 .fs_capabilities_fn = vfs_not_implemented_fs_capabilities,
1048 .get_dfs_referrals_fn = vfs_not_implemented_get_dfs_referrals,
1049 .create_dfs_pathat_fn = vfs_not_implemented_create_dfs_pathat,
1050 .read_dfs_pathat_fn = vfs_not_implemented_read_dfs_pathat,
1051 .snap_check_path_fn = vfs_not_implemented_snap_check_path,
1052 .snap_create_fn = vfs_not_implemented_snap_create,
1053 .snap_delete_fn = vfs_not_implemented_snap_delete,
1055 /* Directory operations */
1057 .fdopendir_fn = vfs_not_implemented_fdopendir,
1058 .readdir_fn = vfs_not_implemented_readdir,
1059 .seekdir_fn = vfs_not_implemented_seekdir,
1060 .telldir_fn = vfs_not_implemented_telldir,
1061 .rewind_dir_fn = vfs_not_implemented_rewind_dir,
1062 .mkdirat_fn = vfs_not_implemented_mkdirat,
1063 .closedir_fn = vfs_not_implemented_closedir,
1065 /* File operations */
1067 .openat_fn = vfs_not_implemented_openat,
1068 .create_file_fn = vfs_not_implemented_create_file,
1069 .close_fn = vfs_not_implemented_close_fn,
1070 .pread_fn = vfs_not_implemented_pread,
1071 .pread_send_fn = vfs_not_implemented_pread_send,
1072 .pread_recv_fn = vfs_not_implemented_pread_recv,
1073 .pwrite_fn = vfs_not_implemented_pwrite,
1074 .pwrite_send_fn = vfs_not_implemented_pwrite_send,
1075 .pwrite_recv_fn = vfs_not_implemented_pwrite_recv,
1076 .lseek_fn = vfs_not_implemented_lseek,
1077 .sendfile_fn = vfs_not_implemented_sendfile,
1078 .recvfile_fn = vfs_not_implemented_recvfile,
1079 .renameat_fn = vfs_not_implemented_renameat,
1080 .fsync_send_fn = vfs_not_implemented_fsync_send,
1081 .fsync_recv_fn = vfs_not_implemented_fsync_recv,
1082 .stat_fn = vfs_not_implemented_stat,
1083 .fstat_fn = vfs_not_implemented_fstat,
1084 .lstat_fn = vfs_not_implemented_lstat,
1085 .get_alloc_size_fn = vfs_not_implemented_get_alloc_size,
1086 .unlinkat_fn = vfs_not_implemented_unlinkat,
1087 .chmod_fn = vfs_not_implemented_chmod,
1088 .fchmod_fn = vfs_not_implemented_fchmod,
1089 .fchown_fn = vfs_not_implemented_fchown,
1090 .lchown_fn = vfs_not_implemented_lchown,
1091 .chdir_fn = vfs_not_implemented_chdir,
1092 .getwd_fn = vfs_not_implemented_getwd,
1093 .ntimes_fn = vfs_not_implemented_ntimes,
1094 .ftruncate_fn = vfs_not_implemented_ftruncate,
1095 .fallocate_fn = vfs_not_implemented_fallocate,
1096 .lock_fn = vfs_not_implemented_lock,
1097 .kernel_flock_fn = vfs_not_implemented_kernel_flock,
1098 .fcntl_fn = vfs_not_implemented_fcntl,
1099 .linux_setlease_fn = vfs_not_implemented_linux_setlease,
1100 .getlock_fn = vfs_not_implemented_getlock,
1101 .symlinkat_fn = vfs_not_implemented_symlinkat,
1102 .readlinkat_fn = vfs_not_implemented_vfs_readlinkat,
1103 .linkat_fn = vfs_not_implemented_linkat,
1104 .mknodat_fn = vfs_not_implemented_mknodat,
1105 .realpath_fn = vfs_not_implemented_realpath,
1106 .chflags_fn = vfs_not_implemented_chflags,
1107 .file_id_create_fn = vfs_not_implemented_file_id_create,
1108 .fs_file_id_fn = vfs_not_implemented_fs_file_id,
1109 .offload_read_send_fn = vfs_not_implemented_offload_read_send,
1110 .offload_read_recv_fn = vfs_not_implemented_offload_read_recv,
1111 .offload_write_send_fn = vfs_not_implemented_offload_write_send,
1112 .offload_write_recv_fn = vfs_not_implemented_offload_write_recv,
1113 .get_compression_fn = vfs_not_implemented_get_compression,
1114 .set_compression_fn = vfs_not_implemented_set_compression,
1116 .streaminfo_fn = vfs_not_implemented_streaminfo,
1117 .get_real_filename_fn = vfs_not_implemented_get_real_filename,
1118 .connectpath_fn = vfs_not_implemented_connectpath,
1119 .brl_lock_windows_fn = vfs_not_implemented_brl_lock_windows,
1120 .brl_unlock_windows_fn = vfs_not_implemented_brl_unlock_windows,
1121 .strict_lock_check_fn = vfs_not_implemented_strict_lock_check,
1122 .translate_name_fn = vfs_not_implemented_translate_name,
1123 .fsctl_fn = vfs_not_implemented_fsctl,
1124 .readdir_attr_fn = vfs_not_implemented_readdir_attr,
1125 .audit_file_fn = vfs_not_implemented_audit_file,
1127 /* DOS attributes. */
1128 .get_dos_attributes_send_fn = vfs_not_implemented_get_dos_attributes_send,
1129 .get_dos_attributes_recv_fn = vfs_not_implemented_get_dos_attributes_recv,
1130 .fget_dos_attributes_fn = vfs_not_implemented_fget_dos_attributes,
1131 .set_dos_attributes_fn = vfs_not_implemented_set_dos_attributes,
1132 .fset_dos_attributes_fn = vfs_not_implemented_fset_dos_attributes,
1134 /* NT ACL operations. */
1136 .fget_nt_acl_fn = vfs_not_implemented_fget_nt_acl,
1137 .get_nt_acl_at_fn = vfs_not_implemented_get_nt_acl_at,
1138 .fset_nt_acl_fn = vfs_not_implemented_fset_nt_acl,
1140 /* POSIX ACL operations. */
1142 .sys_acl_get_file_fn = vfs_not_implemented_sys_acl_get_file,
1143 .sys_acl_get_fd_fn = vfs_not_implemented_sys_acl_get_fd,
1144 .sys_acl_blob_get_file_fn = vfs_not_implemented_sys_acl_blob_get_file,
1145 .sys_acl_blob_get_fd_fn = vfs_not_implemented_sys_acl_blob_get_fd,
1146 .sys_acl_set_file_fn = vfs_not_implemented_sys_acl_set_file,
1147 .sys_acl_set_fd_fn = vfs_not_implemented_sys_acl_set_fd,
1148 .sys_acl_delete_def_file_fn = vfs_not_implemented_sys_acl_delete_def_file,
1150 /* EA operations. */
1151 .getxattr_fn = vfs_not_implemented_getxattr,
1152 .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
1153 .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
1154 .fgetxattr_fn = vfs_not_implemented_fgetxattr,
1155 .listxattr_fn = vfs_not_implemented_listxattr,
1156 .flistxattr_fn = vfs_not_implemented_flistxattr,
1157 .removexattr_fn = vfs_not_implemented_removexattr,
1158 .fremovexattr_fn = vfs_not_implemented_fremovexattr,
1159 .setxattr_fn = vfs_not_implemented_setxattr,
1160 .fsetxattr_fn = vfs_not_implemented_fsetxattr,
1162 /* aio operations */
1163 .aio_force_fn = vfs_not_implemented_aio_force,
1165 /* durable handle operations */
1166 .durable_cookie_fn = vfs_not_implemented_durable_cookie,
1167 .durable_disconnect_fn = vfs_not_implemented_durable_disconnect,
1168 .durable_reconnect_fn = vfs_not_implemented_durable_reconnect,
1172 NTSTATUS vfs_not_implemented_init(TALLOC_CTX *ctx)
1175 * smb_vfs_assert_all_fns() makes sure every
1176 * call is implemented.
1178 smb_vfs_assert_all_fns(&vfs_not_implemented_fns, "vfs_not_implemented");
1179 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "vfs_not_implemented",
1180 &vfs_not_implemented_fns);