diff options
author | Samuel Cabrero <scabrero@samba.org> | 2021-05-10 12:38:58 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-05-14 20:04:28 +0000 |
commit | 6df8709fc9879049e95176f72193aa255e1b1452 (patch) | |
tree | af3823461acd8d0908643fd033b45cf77055986f /examples/VFS | |
parent | 9be3be8aca8d1ee198791c5ffebeddf997372caf (diff) | |
download | samba-6df8709fc9879049e95176f72193aa255e1b1452.tar.gz |
VFS: Add SMB_VFS_FREADDIR_ATTR()
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'examples/VFS')
-rw-r--r-- | examples/VFS/skel_opaque.c | 9 | ||||
-rw-r--r-- | examples/VFS/skel_transparent.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/examples/VFS/skel_opaque.c b/examples/VFS/skel_opaque.c index 256ab2a5e41..781c976b5dd 100644 --- a/examples/VFS/skel_opaque.c +++ b/examples/VFS/skel_opaque.c @@ -705,6 +705,14 @@ static NTSTATUS skel_readdir_attr(struct vfs_handle_struct *handle, return NT_STATUS_NOT_IMPLEMENTED; } +static NTSTATUS skel_freaddir_attr(struct vfs_handle_struct *handle, + struct files_struct *fsp, + TALLOC_CTX *mem_ctx, + struct readdir_attr_data **pattr_data) +{ + return NT_STATUS_NOT_IMPLEMENTED; +} + struct skel_get_dos_attributes_state { struct vfs_aio_state aio_state; uint32_t dosmode; @@ -1065,6 +1073,7 @@ static struct vfs_fn_pointers skel_opaque_fns = { .translate_name_fn = skel_translate_name, .fsctl_fn = skel_fsctl, .readdir_attr_fn = skel_readdir_attr, + .freaddir_attr_fn = skel_freaddir_attr, .audit_file_fn = skel_audit_file, /* DOS attributes. */ diff --git a/examples/VFS/skel_transparent.c b/examples/VFS/skel_transparent.c index dfb324d52a3..f6a66d2b8f9 100644 --- a/examples/VFS/skel_transparent.c +++ b/examples/VFS/skel_transparent.c @@ -925,6 +925,14 @@ static NTSTATUS skel_readdir_attr(struct vfs_handle_struct *handle, return SMB_VFS_NEXT_READDIR_ATTR(handle, fname, mem_ctx, pattr_data); } +static NTSTATUS skel_freaddir_attr(struct vfs_handle_struct *handle, + struct files_struct *fsp, + TALLOC_CTX *mem_ctx, + struct readdir_attr_data **pattr_data) +{ + return SMB_VFS_NEXT_FREADDIR_ATTR(handle, fsp, mem_ctx, pattr_data); +} + struct skel_get_dos_attributes_state { struct vfs_aio_state aio_state; uint32_t dosmode; @@ -1370,6 +1378,7 @@ static struct vfs_fn_pointers skel_transparent_fns = { .translate_name_fn = skel_translate_name, .fsctl_fn = skel_fsctl, .readdir_attr_fn = skel_readdir_attr, + .freaddir_attr_fn = skel_freaddir_attr, .audit_file_fn = skel_audit_file, /* DOS attributes. */ |