summaryrefslogtreecommitdiffstats
path: root/booster/src/booster_stat.c
diff options
context:
space:
mode:
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 00000000000..cdf9230e6c2
--- /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);
+}