summaryrefslogtreecommitdiffstats
path: root/booster/src/booster_stat.c
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-05-05 16:03:52 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-05 17:50:47 +0530
commit938191c57f0ef3a657a764033f70df6595dc736c (patch)
treed4737287e94a6731ed4498b8553a6d9a30ffe4b2 /booster/src/booster_stat.c
parentcec18ef672700dea563a8c899170ece4730257e5 (diff)
booster: Add stat 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.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/booster/src/booster_stat.c b/booster/src/booster_stat.c
new file mode 100644
index 000000000..cdf9230e6
--- /dev/null
+++ b/booster/src/booster_stat.c
@@ -0,0 +1,55 @@
+/*
+ Copyright (c) 2007-2009 Z RESEARCH, Inc. <http://www.zresearch.com>
+ 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
+ <http://www.gnu.org/licenses/>.
+*/
+
+
+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);
+}