From 5d423ab4548c941921c1e64135fec6e15c7787f2 Mon Sep 17 00:00:00 2001 From: "Anand V. Avati" Date: Fri, 16 Oct 2009 08:48:42 +0000 Subject: posix: posix_{f, l}stat_with_gen to return 0 on success (instead of >= 0) Signed-off-by: Anand V. Avati BUG: 315 (generation number support) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315 --- xlators/storage/posix/src/posix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 87bf755cff6..e948a86a110 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -270,6 +270,7 @@ posix_lstat_with_gen (xlator_t *this, const char *path, struct stat *stbuf_p) } if (ret >= 0) { + ret = 0; stbuf.st_dev = gen_val; if (stbuf_p) *stbuf_p = stbuf; @@ -329,6 +330,7 @@ posix_fstat_with_gen (xlator_t *this, int fd, struct stat *stbuf_p) } if (ret >= 0) { + ret = 0; stbuf.st_dev = gen_val; if (stbuf_p) *stbuf_p = stbuf; -- cgit