diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-05-11 18:23:58 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-05-18 19:13:00 +0530 |
commit | e3e7f850eda010ab8c84417e57a4fbace4073022 (patch) | |
tree | e8a9477c451480e7916e18a1af39856b0102d17d /booster/src/booster_stat.c | |
parent | 358f5ba40866545ce240ed8fda77c4d2e57a4262 (diff) |
booster: Add seekdir API
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'booster/src/booster_stat.c')
-rw-r--r-- | booster/src/booster_stat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/booster/src/booster_stat.c b/booster/src/booster_stat.c index 9c58b0c9a3b..a16dab86a64 100644 --- a/booster/src/booster_stat.c +++ b/booster/src/booster_stat.c @@ -17,6 +17,7 @@ <http://www.gnu.org/licenses/>. */ +#include <sys/types.h> extern int booster_stat (const char *path, void *buf); @@ -65,6 +66,9 @@ booster_readdir (void *dir); extern void booster_rewinddir (void *dir); +extern void +booster_seekdir (void *dir, off_t offset); + int stat (const char *path, void *buf) { @@ -178,3 +182,9 @@ rewinddir (void *dir) { return booster_rewinddir (dir); } + +void +seekdir (void *dir, off_t offset) +{ + return booster_seekdir (dir, offset); +} |