summaryrefslogtreecommitdiff
path: root/source3/modules/onefs.h
diff options
context:
space:
mode:
authorAravind Srinivasan <aravind.srinivasan@isilon.com>2009-02-18 17:36:25 -0800
committerSteven Danneman <steven.danneman@isilon.com>2009-02-18 20:49:31 -0800
commit8e8aa27e1b1366c8c4e3cf6d8a681fec80cca858 (patch)
tree944be11156941821050a504a442a7e46b87a1fd7 /source3/modules/onefs.h
parentc19214424b0f8ca0dfa5970880e54807880c443c (diff)
downloadsamba-8e8aa27e1b1366c8c4e3cf6d8a681fec80cca858.tar.gz
samba-8e8aa27e1b1366c8c4e3cf6d8a681fec80cca858.tar.bz2
samba-8e8aa27e1b1366c8c4e3cf6d8a681fec80cca858.zip
s3: Fix streams enumeration bug in OneFS implementation
Previously, we didn’t call SMB_VFS_OPEN_DIR from the streams module, instead we called fdopendir(). As a result we failed to populate the dir_state list in the readdirplus module. So when we tried to view the stream data, we will always returned NULL. To solve this I separated onefs_opendir() and the initialization of the dir_state list. This is done by introducing a new utility function “onefs_rdp_add_dir_state()”, which initializes the dir_state structure and adds it to the dir_state list. This function is called from the streams module before calling readdir().
Diffstat (limited to 'source3/modules/onefs.h')
-rw-r--r--source3/modules/onefs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/modules/onefs.h b/source3/modules/onefs.h
index b979cfd7eb..c002739f1f 100644
--- a/source3/modules/onefs.h
+++ b/source3/modules/onefs.h
@@ -224,6 +224,9 @@ NTSTATUS onefs_split_ntfs_stream_name(TALLOC_CTX *mem_ctx, const char *fname,
bool onefs_get_config(int snum, int config_type,
struct onefs_vfs_config *cfg);
+
+int onefs_rdp_add_dir_state(connection_struct *conn, SMB_STRUCT_DIR *dirp);
+
/*
* System Interfaces
*/