git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfs: Add SMB_VFS_FSTATAT
[samba.git]
/
examples
/
VFS
/
skel_opaque.c
diff --git
a/examples/VFS/skel_opaque.c
b/examples/VFS/skel_opaque.c
index cc7bb880d5c27069d71329632450a5a4069b00bd..e39668ed2a8aa73227bb5d8ab79095106930216d 100644
(file)
--- a/
examples/VFS/skel_opaque.c
+++ b/
examples/VFS/skel_opaque.c
@@
-345,6
+345,17
@@
static int skel_lstat(vfs_handle_struct *handle,
return -1;
}
return -1;
}
+static int skel_fstatat(
+ struct vfs_handle_struct *handle,
+ const struct files_struct *dirfsp,
+ const struct smb_filename *smb_fname,
+ SMB_STRUCT_STAT *sbuf,
+ int flags)
+{
+ errno = ENOSYS;
+ return -1;
+}
+
static uint64_t skel_get_alloc_size(struct vfs_handle_struct *handle,
struct files_struct *fsp,
const SMB_STRUCT_STAT *sbuf)
static uint64_t skel_get_alloc_size(struct vfs_handle_struct *handle,
struct files_struct *fsp,
const SMB_STRUCT_STAT *sbuf)
@@
-1001,6
+1012,7
@@
static struct vfs_fn_pointers skel_opaque_fns = {
.stat_fn = skel_stat,
.fstat_fn = skel_fstat,
.lstat_fn = skel_lstat,
.stat_fn = skel_stat,
.fstat_fn = skel_fstat,
.lstat_fn = skel_lstat,
+ .fstatat_fn = skel_fstatat,
.get_alloc_size_fn = skel_get_alloc_size,
.unlinkat_fn = skel_unlinkat,
.fchmod_fn = skel_fchmod,
.get_alloc_size_fn = skel_get_alloc_size,
.unlinkat_fn = skel_unlinkat,
.fchmod_fn = skel_fchmod,