Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2012-04-05 | build: Remove sys_rewinddir wrapper | Andrew Bartlett | 1 | -1/+1 | |
2012-04-05 | build: Remove sys_telldir wrapper | Andrew Bartlett | 1 | -1/+1 | |
2012-04-05 | build: Remove sys_seekdir wrapper | Andrew Bartlett | 1 | -1/+1 | |
2012-04-05 | build: Remove sys_readdir wrapper | Andrew Bartlett | 1 | -1/+1 | |
2011-03-30 | s3-vfs: include smbd/smbd.h in vfs modules. | Günther Deschner | 1 | -0/+1 | |
Guenther | |||||
2009-05-28 | s3 onefs: update the onefs module to be compliant with stat_ex | Tim Prouty | 1 | -4/+8 | |
2009-05-05 | s3:onefs.so Change system function names | Steven Danneman | 1 | -4/+4 | |
Addendum to c49730e1. Use newer cookie conversion names. | |||||
2009-05-04 | s3:onefs.so fix issue with missing entries when enumerating directories | Steven Danneman | 1 | -130/+75 | |
This bug prompted several, fairly large changes to the of OneFS's readdirplus() within Samba. One fundamental problem is that we kept our cache cursor pointed at the next entry to be returned from onefs_readdir(), while the resume cookie needed to refill the cache such that our cursor would be on this entry, was located in the previous cache entry. This meant that to correctly handle seekdir() cases which could be found within the existing cache, and cases where a cache reload was needed, required that the cache always hold at least two entries: the entry we wished to return, and the previous entry which held the resume cookie. Since the readdirplus() syscall gives us no guarantee that it will always return these two direntries, there was a fundamental problem with this design. To fix this problem, I have rearchitected the onefs_readdir() path to keep its pointer on the entry which contains the resume_cookie, not the entry which will be returned next. Essentially, I changed onefs_readdir() from a "return an entry then increment the cursor" model to "increment the cursor then return an entry". By doing this, we only require that a single entry be within the cache: the entry containing the resume cookie. Second, there have been numerous off-by-one bugs in my implementation of onefs_seekdir() which did a mapping between the 64-bit resume cookie returned by readdirplus() and its own monotonically increasing "location" offset. Furthermore, this design caused a somewhat frequent waste of cycles, as in some cases we'd need to re-enumerate the entire directory to recover the current "location" from an old resume cookie. As this code was somewhat difficult to understand, prone to bugs, and innefficient in some cases I decided it was better to wholesale replace it now, rather than later. It is possible to algorithmically map the 64-bit resume cookies from readdirplus() into 32-bit offset values which SMB requires. The onefs.so module now calls into a system library to do this conversion. This greatly simplifies both the seekdir() and telldir() paths and is more efficient. | |||||
2009-03-01 | s3 OneFS: Refactor config code and cleanup includes | Tim Prouty | 1 | -0/+2 | |
2009-02-18 | s3: Fix streams enumeration bug in OneFS implementation | Aravind Srinivasan | 1 | -18/+52 | |
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(). | |||||
2009-02-09 | s3: OneFS bulk directory enumeration support | Steven Danneman | 1 | -0/+636 | |
OneFS provides the bulk directory enumeration syscall readdirplus(). This syscall has the same semantics as the NFSv3 READDIRPLUS command, returning a batch of directory entries with prefetched stat information via one syscall. This commit wraps the readdirplus() call in the existing POSIX readdir/seekdir VFS interface. By default a batch of 128 directory entries are optimistically read from the kernel into a global cache, and fed to iterative calls of VFS_OP_READDIR. The global buffers could be avoided in the future by hanging connection specific buffers off the conn struct. Added new parameter "onefs:use readdirplus" which toggles usage of this code on or off. |