From 938191c57f0ef3a657a764033f70df6595dc736c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 5 May 2009 16:03:52 +0530 Subject: booster: Add stat API Signed-off-by: Anand V. Avati --- booster/src/booster_stat.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 booster/src/booster_stat.c (limited to 'booster/src/booster_stat.c') diff --git a/booster/src/booster_stat.c b/booster/src/booster_stat.c new file mode 100644 index 00000000000..cdf9230e6c2 --- /dev/null +++ b/booster/src/booster_stat.c @@ -0,0 +1,55 @@ +/* + Copyright (c) 2007-2009 Z RESEARCH, Inc. + This file is part of GlusterFS. + + GlusterFS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + GlusterFS is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + . +*/ + + +extern int +booster_stat (const char *path, void *buf); + +extern int +booster_stat64 (const char *path, void *buf); + +extern int +booster_xstat (int ver, const char *path, void *buf); + +extern int +booster_xstat64 (int ver, const char *path, void *buf); + +int +stat (const char *path, void *buf) +{ + return booster_stat (path, buf); +} + +int +stat64 (const char *path, void *buf) +{ + return booster_stat64 (path, buf); +} + +int +__xstat (int ver, const char *path, void *buf) +{ + return booster_xstat (ver, path, buf); +} + +int +__xstat64 (int ver, const char *path, void *buf) +{ + return booster_xstat64 (ver, path, buf); +} -- cgit