diff options
author | Frank Lahm <franklahm@googlemail.com> | 2011-10-13 15:41:53 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-10-14 03:26:06 +0200 |
commit | 7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27 (patch) | |
tree | fad7ac26c5589be626395bd9fd710b3440fd5f54 /source3/modules/vfs_streams_xattr.c | |
parent | 1b27efd9107eef290e2c7d4826953157bab2f3c4 (diff) | |
download | samba-7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27.tar.gz samba-7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27.tar.bz2 samba-7a0b5d6fc51d5d212529e82e5ed8e21516bfbe27.zip |
Add support for VFS op streaminfo chaining in all relevant VFS modules.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_streams_xattr.c')
-rw-r--r-- | source3/modules/vfs_streams_xattr.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c index 2772c96c4d..8564760353 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -810,19 +810,8 @@ static NTSTATUS streams_xattr_streaminfo(vfs_handle_struct *handle, return map_nt_error_from_unix(errno); } - state.streams = NULL; - state.num_streams = 0; - - if (!S_ISDIR(sbuf.st_ex_mode)) { - if (!add_one_stream(mem_ctx, - &state.num_streams, &state.streams, - "::$DATA", sbuf.st_ex_size, - SMB_VFS_GET_ALLOC_SIZE(handle->conn, fsp, - &sbuf))) { - return NT_STATUS_NO_MEMORY; - } - } - + state.streams = *pstreams; + state.num_streams = *pnum_streams; state.mem_ctx = mem_ctx; state.handle = handle; state.status = NT_STATUS_OK; @@ -842,7 +831,8 @@ static NTSTATUS streams_xattr_streaminfo(vfs_handle_struct *handle, *pnum_streams = state.num_streams; *pstreams = state.streams; - return NT_STATUS_OK; + + return SMB_VFS_NEXT_STREAMINFO(handle, fsp, fname, mem_ctx, pnum_streams, pstreams); } static uint32_t streams_xattr_fs_capabilities(struct vfs_handle_struct *handle, |