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_fchmod(vfs_handle_struct *handle, files_struct *fsp,
369 int vfs_not_implemented_fchown(vfs_handle_struct *handle, files_struct *fsp,
370 uid_t uid, gid_t gid)
376 int vfs_not_implemented_lchown(vfs_handle_struct *handle,
377 const struct smb_filename *smb_fname,
385 int vfs_not_implemented_chdir(vfs_handle_struct *handle,
386 const struct smb_filename *smb_fname)
392 struct smb_filename *vfs_not_implemented_getwd(vfs_handle_struct *handle,
399 int vfs_not_implemented_fntimes(vfs_handle_struct *handle,
401 struct smb_file_time *ft)
407 int vfs_not_implemented_ftruncate(vfs_handle_struct *handle, files_struct *fsp,
414 int vfs_not_implemented_fallocate(vfs_handle_struct *handle, files_struct *fsp,
415 uint32_t mode, off_t offset, off_t len)
421 bool vfs_not_implemented_lock(vfs_handle_struct *handle, files_struct *fsp, int op,
422 off_t offset, off_t count, int type)
428 int vfs_not_implemented_kernel_flock(struct vfs_handle_struct *handle,
429 struct files_struct *fsp,
430 uint32_t share_access, uint32_t access_mask)
436 int vfs_not_implemented_fcntl(struct vfs_handle_struct *handle,
437 struct files_struct *fsp, int cmd,
444 int vfs_not_implemented_linux_setlease(struct vfs_handle_struct *handle,
445 struct files_struct *fsp, int leasetype)
451 bool vfs_not_implemented_getlock(vfs_handle_struct *handle, files_struct *fsp,
452 off_t *poffset, off_t *pcount, int *ptype,
459 int vfs_not_implemented_symlinkat(vfs_handle_struct *handle,
460 const struct smb_filename *link_contents,
461 struct files_struct *dirfsp,
462 const struct smb_filename *new_smb_fname)
468 int vfs_not_implemented_vfs_readlinkat(vfs_handle_struct *handle,
469 const struct files_struct *dirfsp,
470 const struct smb_filename *smb_fname,
478 int vfs_not_implemented_linkat(vfs_handle_struct *handle,
479 files_struct *srcfsp,
480 const struct smb_filename *old_smb_fname,
481 files_struct *dstfsp,
482 const struct smb_filename *new_smb_fname,
489 int vfs_not_implemented_mknodat(vfs_handle_struct *handle,
490 files_struct *dirfsp,
491 const struct smb_filename *smb_fname,
499 struct smb_filename *vfs_not_implemented_realpath(vfs_handle_struct *handle,
501 const struct smb_filename *smb_fname)
507 int vfs_not_implemented_fchflags(vfs_handle_struct *handle,
508 struct files_struct *fsp,
515 struct file_id vfs_not_implemented_file_id_create(vfs_handle_struct *handle,
516 const SMB_STRUCT_STAT *sbuf)
524 uint64_t vfs_not_implemented_fs_file_id(vfs_handle_struct *handle,
525 const SMB_STRUCT_STAT *sbuf)
531 struct vfs_not_implemented_offload_read_state {
535 struct tevent_req *vfs_not_implemented_offload_read_send(
537 struct tevent_context *ev,
538 struct vfs_handle_struct *handle,
539 struct files_struct *fsp,
545 struct tevent_req *req = NULL;
546 struct vfs_not_implemented_offload_read_state *state = NULL;
548 req = tevent_req_create(mem_ctx, &state,
549 struct vfs_not_implemented_offload_read_state);
554 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
555 return tevent_req_post(req, ev);
558 NTSTATUS vfs_not_implemented_offload_read_recv(struct tevent_req *req,
559 struct vfs_handle_struct *handle,
561 DATA_BLOB *_token_blob)
565 if (tevent_req_is_nterror(req, &status)) {
566 tevent_req_received(req);
570 tevent_req_received(req);
574 struct vfs_not_implemented_offload_write_state {
578 struct tevent_req *vfs_not_implemented_offload_write_send(
579 struct vfs_handle_struct *handle,
581 struct tevent_context *ev,
584 off_t transfer_offset,
585 struct files_struct *dest_fsp,
589 struct tevent_req *req;
590 struct vfs_not_implemented_offload_write_state *state;
592 req = tevent_req_create(mem_ctx, &state,
593 struct vfs_not_implemented_offload_write_state);
598 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
599 return tevent_req_post(req, ev);
602 NTSTATUS vfs_not_implemented_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);
613 tevent_req_received(req);
617 NTSTATUS vfs_not_implemented_fget_compression(struct vfs_handle_struct *handle,
619 struct files_struct *fsp,
620 uint16_t *_compression_fmt)
622 return NT_STATUS_INVALID_DEVICE_REQUEST;
625 NTSTATUS vfs_not_implemented_set_compression(struct vfs_handle_struct *handle,
627 struct files_struct *fsp,
628 uint16_t compression_fmt)
630 return NT_STATUS_INVALID_DEVICE_REQUEST;
633 NTSTATUS vfs_not_implemented_fstreaminfo(struct vfs_handle_struct *handle,
634 struct files_struct *fsp,
636 unsigned int *num_streams,
637 struct stream_struct **streams)
639 return NT_STATUS_NOT_IMPLEMENTED;
642 int vfs_not_implemented_get_real_filename(struct vfs_handle_struct *handle,
643 const struct smb_filename *path,
652 const char *vfs_not_implemented_connectpath(struct vfs_handle_struct *handle,
653 const struct smb_filename *smb_fname)
659 NTSTATUS vfs_not_implemented_brl_lock_windows(struct vfs_handle_struct *handle,
660 struct byte_range_lock *br_lck,
661 struct lock_struct *plock)
663 return NT_STATUS_NOT_IMPLEMENTED;
666 bool vfs_not_implemented_brl_unlock_windows(struct vfs_handle_struct *handle,
667 struct byte_range_lock *br_lck,
668 const struct lock_struct *plock)
674 bool vfs_not_implemented_strict_lock_check(struct vfs_handle_struct *handle,
675 struct files_struct *fsp,
676 struct lock_struct *plock)
682 NTSTATUS vfs_not_implemented_translate_name(struct vfs_handle_struct *handle,
683 const char *mapped_name,
684 enum vfs_translate_direction direction,
685 TALLOC_CTX *mem_ctx, char **pmapped_name)
687 return NT_STATUS_NOT_IMPLEMENTED;
690 NTSTATUS vfs_not_implemented_parent_pathname(struct vfs_handle_struct *handle,
692 const struct smb_filename *smb_fname_in,
693 struct smb_filename **parent_dir_out,
694 struct smb_filename **atname_out)
696 return NT_STATUS_NOT_IMPLEMENTED;
699 NTSTATUS vfs_not_implemented_fsctl(struct vfs_handle_struct *handle,
700 struct files_struct *fsp,
703 uint16_t req_flags, /* Needed for UNICODE ... */
704 const uint8_t *_in_data,
707 uint32_t max_out_len, uint32_t *out_len)
709 return NT_STATUS_NOT_IMPLEMENTED;
712 NTSTATUS vfs_not_implemented_freaddir_attr(struct vfs_handle_struct *handle,
713 struct files_struct *fsp,
715 struct readdir_attr_data **pattr_data)
717 return NT_STATUS_NOT_IMPLEMENTED;
720 struct vfs_not_implemented_get_dos_attributes_state {
721 struct vfs_aio_state aio_state;
725 struct tevent_req *vfs_not_implemented_get_dos_attributes_send(
727 struct tevent_context *ev,
728 struct vfs_handle_struct *handle,
729 files_struct *dir_fsp,
730 struct smb_filename *smb_fname)
732 struct tevent_req *req = NULL;
733 struct vfs_not_implemented_get_dos_attributes_state *state = NULL;
735 req = tevent_req_create(mem_ctx, &state,
736 struct vfs_not_implemented_get_dos_attributes_state);
741 tevent_req_nterror(req, NT_STATUS_NOT_IMPLEMENTED);
742 return tevent_req_post(req, ev);
745 NTSTATUS vfs_not_implemented_get_dos_attributes_recv(
746 struct tevent_req *req,
747 struct vfs_aio_state *aio_state,
750 struct vfs_not_implemented_get_dos_attributes_state *state =
752 struct vfs_not_implemented_get_dos_attributes_state);
755 if (tevent_req_is_nterror(req, &status)) {
756 tevent_req_received(req);
760 *aio_state = state->aio_state;
761 *dosmode = state->dosmode;
762 tevent_req_received(req);
766 NTSTATUS vfs_not_implemented_fget_dos_attributes(struct vfs_handle_struct *handle,
767 struct files_struct *fsp,
770 return NT_STATUS_NOT_IMPLEMENTED;
773 NTSTATUS vfs_not_implemented_fset_dos_attributes(struct vfs_handle_struct *handle,
774 struct files_struct *fsp,
777 return NT_STATUS_NOT_IMPLEMENTED;
780 NTSTATUS vfs_not_implemented_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
781 uint32_t security_info,
783 struct security_descriptor **ppdesc)
785 return NT_STATUS_NOT_IMPLEMENTED;
788 NTSTATUS vfs_not_implemented_fset_nt_acl(vfs_handle_struct *handle, files_struct *fsp,
789 uint32_t security_info_sent,
790 const struct security_descriptor *psd)
792 return NT_STATUS_NOT_IMPLEMENTED;
795 SMB_ACL_T vfs_not_implemented_sys_acl_get_fd(vfs_handle_struct *handle,
801 return (SMB_ACL_T) NULL;
804 int vfs_not_implemented_sys_acl_blob_get_fd(vfs_handle_struct *handle,
805 files_struct *fsp, TALLOC_CTX *mem_ctx,
806 char **blob_description, DATA_BLOB *blob)
812 int vfs_not_implemented_sys_acl_set_fd(vfs_handle_struct *handle,
813 struct files_struct *fsp,
821 int vfs_not_implemented_sys_acl_delete_def_fd(vfs_handle_struct *handle,
822 struct files_struct *fsp)
828 struct vfs_not_implemented_getxattrat_state {
829 struct vfs_aio_state aio_state;
831 uint8_t *xattr_value;
834 struct tevent_req *vfs_not_implemented_getxattrat_send(
836 struct tevent_context *ev,
837 struct vfs_handle_struct *handle,
838 files_struct *dir_fsp,
839 const struct smb_filename *smb_fname,
840 const char *xattr_name,
843 struct tevent_req *req = NULL;
844 struct vfs_not_implemented_getxattrat_state *state = NULL;
846 req = tevent_req_create(mem_ctx, &state,
847 struct vfs_not_implemented_getxattrat_state);
852 tevent_req_error(req, ENOSYS);
853 return tevent_req_post(req, ev);
856 ssize_t vfs_not_implemented_getxattrat_recv(struct tevent_req *req,
857 struct vfs_aio_state *aio_state,
859 uint8_t **xattr_value)
861 struct vfs_not_implemented_getxattrat_state *state = tevent_req_data(
862 req, struct vfs_not_implemented_getxattrat_state);
865 if (tevent_req_is_unix_error(req, &aio_state->error)) {
866 tevent_req_received(req);
870 *aio_state = state->aio_state;
871 xattr_size = state->xattr_size;
872 if (xattr_value != NULL) {
873 *xattr_value = talloc_move(mem_ctx, &state->xattr_value);
876 tevent_req_received(req);
880 ssize_t vfs_not_implemented_fgetxattr(vfs_handle_struct *handle,
881 struct files_struct *fsp, const char *name,
882 void *value, size_t size)
888 ssize_t vfs_not_implemented_flistxattr(vfs_handle_struct *handle,
889 struct files_struct *fsp, char *list,
896 int vfs_not_implemented_fremovexattr(vfs_handle_struct *handle,
897 struct files_struct *fsp, const char *name)
903 int vfs_not_implemented_fsetxattr(vfs_handle_struct *handle, struct files_struct *fsp,
904 const char *name, const void *value, size_t size,
911 bool vfs_not_implemented_aio_force(struct vfs_handle_struct *handle,
912 struct files_struct *fsp)
918 NTSTATUS vfs_not_implemented_audit_file(struct vfs_handle_struct *handle,
919 struct smb_filename *file,
920 struct security_acl *sacl,
921 uint32_t access_requested,
922 uint32_t access_denied)
924 return NT_STATUS_NOT_IMPLEMENTED;
927 NTSTATUS vfs_not_implemented_durable_cookie(struct vfs_handle_struct *handle,
928 struct files_struct *fsp,
932 return NT_STATUS_NOT_IMPLEMENTED;
935 NTSTATUS vfs_not_implemented_durable_disconnect(struct vfs_handle_struct *handle,
936 struct files_struct *fsp,
937 const DATA_BLOB old_cookie,
939 DATA_BLOB *new_cookie)
941 return NT_STATUS_NOT_IMPLEMENTED;
944 NTSTATUS vfs_not_implemented_durable_reconnect(struct vfs_handle_struct *handle,
945 struct smb_request *smb1req,
946 struct smbXsrv_open *op,
947 const DATA_BLOB old_cookie,
949 struct files_struct **fsp,
950 DATA_BLOB *new_cookie)
952 return NT_STATUS_NOT_IMPLEMENTED;
955 /* VFS operations structure */
957 static struct vfs_fn_pointers vfs_not_implemented_fns = {
958 /* Disk operations */
960 .connect_fn = vfs_not_implemented_connect,
961 .disconnect_fn = vfs_not_implemented_disconnect,
962 .disk_free_fn = vfs_not_implemented_disk_free,
963 .get_quota_fn = vfs_not_implemented_get_quota,
964 .set_quota_fn = vfs_not_implemented_set_quota,
965 .get_shadow_copy_data_fn = vfs_not_implemented_get_shadow_copy_data,
966 .statvfs_fn = vfs_not_implemented_statvfs,
967 .fs_capabilities_fn = vfs_not_implemented_fs_capabilities,
968 .get_dfs_referrals_fn = vfs_not_implemented_get_dfs_referrals,
969 .create_dfs_pathat_fn = vfs_not_implemented_create_dfs_pathat,
970 .read_dfs_pathat_fn = vfs_not_implemented_read_dfs_pathat,
971 .snap_check_path_fn = vfs_not_implemented_snap_check_path,
972 .snap_create_fn = vfs_not_implemented_snap_create,
973 .snap_delete_fn = vfs_not_implemented_snap_delete,
975 /* Directory operations */
977 .fdopendir_fn = vfs_not_implemented_fdopendir,
978 .readdir_fn = vfs_not_implemented_readdir,
979 .seekdir_fn = vfs_not_implemented_seekdir,
980 .telldir_fn = vfs_not_implemented_telldir,
981 .rewind_dir_fn = vfs_not_implemented_rewind_dir,
982 .mkdirat_fn = vfs_not_implemented_mkdirat,
983 .closedir_fn = vfs_not_implemented_closedir,
985 /* File operations */
987 .openat_fn = vfs_not_implemented_openat,
988 .create_file_fn = vfs_not_implemented_create_file,
989 .close_fn = vfs_not_implemented_close_fn,
990 .pread_fn = vfs_not_implemented_pread,
991 .pread_send_fn = vfs_not_implemented_pread_send,
992 .pread_recv_fn = vfs_not_implemented_pread_recv,
993 .pwrite_fn = vfs_not_implemented_pwrite,
994 .pwrite_send_fn = vfs_not_implemented_pwrite_send,
995 .pwrite_recv_fn = vfs_not_implemented_pwrite_recv,
996 .lseek_fn = vfs_not_implemented_lseek,
997 .sendfile_fn = vfs_not_implemented_sendfile,
998 .recvfile_fn = vfs_not_implemented_recvfile,
999 .renameat_fn = vfs_not_implemented_renameat,
1000 .fsync_send_fn = vfs_not_implemented_fsync_send,
1001 .fsync_recv_fn = vfs_not_implemented_fsync_recv,
1002 .stat_fn = vfs_not_implemented_stat,
1003 .fstat_fn = vfs_not_implemented_fstat,
1004 .lstat_fn = vfs_not_implemented_lstat,
1005 .get_alloc_size_fn = vfs_not_implemented_get_alloc_size,
1006 .unlinkat_fn = vfs_not_implemented_unlinkat,
1007 .fchmod_fn = vfs_not_implemented_fchmod,
1008 .fchown_fn = vfs_not_implemented_fchown,
1009 .lchown_fn = vfs_not_implemented_lchown,
1010 .chdir_fn = vfs_not_implemented_chdir,
1011 .getwd_fn = vfs_not_implemented_getwd,
1012 .fntimes_fn = vfs_not_implemented_fntimes,
1013 .ftruncate_fn = vfs_not_implemented_ftruncate,
1014 .fallocate_fn = vfs_not_implemented_fallocate,
1015 .lock_fn = vfs_not_implemented_lock,
1016 .kernel_flock_fn = vfs_not_implemented_kernel_flock,
1017 .fcntl_fn = vfs_not_implemented_fcntl,
1018 .linux_setlease_fn = vfs_not_implemented_linux_setlease,
1019 .getlock_fn = vfs_not_implemented_getlock,
1020 .symlinkat_fn = vfs_not_implemented_symlinkat,
1021 .readlinkat_fn = vfs_not_implemented_vfs_readlinkat,
1022 .linkat_fn = vfs_not_implemented_linkat,
1023 .mknodat_fn = vfs_not_implemented_mknodat,
1024 .realpath_fn = vfs_not_implemented_realpath,
1025 .fchflags_fn = vfs_not_implemented_fchflags,
1026 .file_id_create_fn = vfs_not_implemented_file_id_create,
1027 .fs_file_id_fn = vfs_not_implemented_fs_file_id,
1028 .offload_read_send_fn = vfs_not_implemented_offload_read_send,
1029 .offload_read_recv_fn = vfs_not_implemented_offload_read_recv,
1030 .offload_write_send_fn = vfs_not_implemented_offload_write_send,
1031 .offload_write_recv_fn = vfs_not_implemented_offload_write_recv,
1032 .fget_compression_fn = vfs_not_implemented_fget_compression,
1033 .set_compression_fn = vfs_not_implemented_set_compression,
1035 .fstreaminfo_fn = vfs_not_implemented_fstreaminfo,
1036 .get_real_filename_fn = vfs_not_implemented_get_real_filename,
1037 .connectpath_fn = vfs_not_implemented_connectpath,
1038 .brl_lock_windows_fn = vfs_not_implemented_brl_lock_windows,
1039 .brl_unlock_windows_fn = vfs_not_implemented_brl_unlock_windows,
1040 .strict_lock_check_fn = vfs_not_implemented_strict_lock_check,
1041 .translate_name_fn = vfs_not_implemented_translate_name,
1042 .parent_pathname_fn = vfs_not_implemented_parent_pathname,
1043 .fsctl_fn = vfs_not_implemented_fsctl,
1044 .freaddir_attr_fn = vfs_not_implemented_freaddir_attr,
1045 .audit_file_fn = vfs_not_implemented_audit_file,
1047 /* DOS attributes. */
1048 .get_dos_attributes_send_fn = vfs_not_implemented_get_dos_attributes_send,
1049 .get_dos_attributes_recv_fn = vfs_not_implemented_get_dos_attributes_recv,
1050 .fget_dos_attributes_fn = vfs_not_implemented_fget_dos_attributes,
1051 .fset_dos_attributes_fn = vfs_not_implemented_fset_dos_attributes,
1053 /* NT ACL operations. */
1055 .fget_nt_acl_fn = vfs_not_implemented_fget_nt_acl,
1056 .fset_nt_acl_fn = vfs_not_implemented_fset_nt_acl,
1058 /* POSIX ACL operations. */
1060 .sys_acl_get_fd_fn = vfs_not_implemented_sys_acl_get_fd,
1061 .sys_acl_blob_get_fd_fn = vfs_not_implemented_sys_acl_blob_get_fd,
1062 .sys_acl_set_fd_fn = vfs_not_implemented_sys_acl_set_fd,
1063 .sys_acl_delete_def_fd_fn = vfs_not_implemented_sys_acl_delete_def_fd,
1065 /* EA operations. */
1066 .getxattrat_send_fn = vfs_not_implemented_getxattrat_send,
1067 .getxattrat_recv_fn = vfs_not_implemented_getxattrat_recv,
1068 .fgetxattr_fn = vfs_not_implemented_fgetxattr,
1069 .flistxattr_fn = vfs_not_implemented_flistxattr,
1070 .fremovexattr_fn = vfs_not_implemented_fremovexattr,
1071 .fsetxattr_fn = vfs_not_implemented_fsetxattr,
1073 /* aio operations */
1074 .aio_force_fn = vfs_not_implemented_aio_force,
1076 /* durable handle operations */
1077 .durable_cookie_fn = vfs_not_implemented_durable_cookie,
1078 .durable_disconnect_fn = vfs_not_implemented_durable_disconnect,
1079 .durable_reconnect_fn = vfs_not_implemented_durable_reconnect,
1083 NTSTATUS vfs_not_implemented_init(TALLOC_CTX *ctx)
1086 * smb_vfs_assert_all_fns() makes sure every
1087 * call is implemented.
1089 smb_vfs_assert_all_fns(&vfs_not_implemented_fns, "vfs_not_implemented");
1090 return smb_register_vfs(SMB_VFS_INTERFACE_VERSION, "vfs_not_implemented",
1091 &vfs_not_implemented_fns);