The Samba-Bugzilla – Attachment 6825 Details for
Bug 8419
Make VFS op "streaminfo" stackable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fixed patch
vfs-stackable-streaminfo.patch (text/plain), 2.28 KB, created by
franklahm
on 2011-08-29 13:41:19 UTC
(
hide
)
Description:
Fixed patch
Filename:
MIME Type:
Creator:
franklahm
Created:
2011-08-29 13:41:19 UTC
Size:
2.28 KB
patch
obsolete
>diff --git a/source3/include/vfs.h b/source3/include/vfs.h >index 185bc76..0c0a04b 100644 >--- a/source3/include/vfs.h >+++ b/source3/include/vfs.h >@@ -655,6 +655,12 @@ int smb_vfs_call_chflags(struct vfs_handle_struct *handle, const char *path, > unsigned int flags); > struct file_id smb_vfs_call_file_id_create(struct vfs_handle_struct *handle, > const SMB_STRUCT_STAT *sbuf); >+NTSTATUS smb_vfs_call_streaminfo_start(struct vfs_handle_struct *handle, >+ struct files_struct *fsp, >+ const char *fname, >+ TALLOC_CTX *mem_ctx, >+ unsigned int *num_streams, >+ struct stream_struct **streams); > NTSTATUS smb_vfs_call_streaminfo(struct vfs_handle_struct *handle, > struct files_struct *fsp, > const char *fname, >diff --git a/source3/include/vfs_macros.h b/source3/include/vfs_macros.h >index d04be9b..bbd12a5 100644 >--- a/source3/include/vfs_macros.h >+++ b/source3/include/vfs_macros.h >@@ -320,7 +320,7 @@ > smb_vfs_call_file_id_create((handle)->next, (sbuf)) > > #define SMB_VFS_STREAMINFO(conn, fsp, fname, mem_ctx, num_streams, streams) \ >- smb_vfs_call_streaminfo((conn)->vfs_handles, (fsp), (fname), (mem_ctx), (num_streams), (streams)) >+ smb_vfs_call_streaminfo_start((conn)->vfs_handles, (fsp), (fname), (mem_ctx), (num_streams), (streams)) > #define SMB_VFS_NEXT_STREAMINFO(handle, fsp, fname, mem_ctx, num_streams, streams) \ > smb_vfs_call_streaminfo((handle)->next, (fsp), (fname), (mem_ctx), (num_streams), (streams)) > >diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c >index 35a8331..cd02954 100644 >--- a/source3/smbd/vfs.c >+++ b/source3/smbd/vfs.c >@@ -1665,6 +1665,20 @@ struct file_id smb_vfs_call_file_id_create(struct vfs_handle_struct *handle, > return handle->fns->file_id_create(handle, sbuf); > } > >+NTSTATUS smb_vfs_call_streaminfo_start(struct vfs_handle_struct *handle, >+ struct files_struct *fsp, >+ const char *fname, >+ TALLOC_CTX *mem_ctx, >+ unsigned int *num_streams, >+ struct stream_struct **streams) >+{ >+ VFS_FIND(streaminfo); >+ *num_streams = 0; >+ *streams = NULL; >+ return handle->fns->streaminfo(handle, fsp, fname, mem_ctx, >+ num_streams, streams); >+} >+ > NTSTATUS smb_vfs_call_streaminfo(struct vfs_handle_struct *handle, > struct files_struct *fsp, > const char *fname,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8419
:
6824
|
6825
|
6838
|
6843
|
6924
|
7002
|
7006
|
7011