diff options
author | Anand V. Avati <avati@blackhole.gluster.com> | 2009-10-16 08:48:42 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-16 07:42:02 -0700 |
commit | 5d423ab4548c941921c1e64135fec6e15c7787f2 (patch) | |
tree | 2eb3730b6f599467838259604039eb82768aed77 /xlators | |
parent | d56c6a81ba22e5caca68bfa6fc0eb5f3079c9d22 (diff) |
posix: posix_{f, l}stat_with_gen to return 0 on success (instead of >= 0)
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 315 (generation number support)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=315
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/storage/posix/src/posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 87bf755cf..e948a86a1 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; |