|
|
233933 |
From a65982755b31fb548ff7a997ee754360a516da94 Mon Sep 17 00:00:00 2001
|
|
|
233933 |
From: Amar Tumballi <amarts@redhat.com>
|
|
|
233933 |
Date: Fri, 14 Jun 2019 13:58:25 +0530
|
|
|
233933 |
Subject: [PATCH 187/192] gfapi: statedump_path() add proper version number
|
|
|
233933 |
|
|
|
233933 |
An API should have the proper version number, and 'future' version
|
|
|
233933 |
number is just a place holder. One shouldn't be using it in the
|
|
|
233933 |
release versions.
|
|
|
233933 |
|
|
|
233933 |
With the previous backport of the patch, the version remained same
|
|
|
233933 |
as that of 'master' branch, which is future, but as it is an API,
|
|
|
233933 |
it needed a fixed version number. With this patch, corrected the same.
|
|
|
233933 |
|
|
|
233933 |
Label: DOWNSTREAM_ONLY
|
|
|
233933 |
|
|
|
233933 |
> In upstream, this is corrected by a backport to the stable version, 6.4
|
|
|
233933 |
> URL: https://review.gluster.org/22864
|
|
|
233933 |
|
|
|
233933 |
BUG: 1720461
|
|
|
233933 |
Change-Id: I939850689d47d4f240c9d43f6be1a11de29c4760
|
|
|
233933 |
Signed-off-by: Amar Tumballi <amarts@redhat.com>
|
|
|
233933 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/173475
|
|
|
233933 |
Reviewed-by: Soumya Koduri <skoduri@redhat.com>
|
|
|
233933 |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
233933 |
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
|
|
|
233933 |
---
|
|
|
233933 |
api/examples/glfsxmp.c | 5 +++++
|
|
|
233933 |
api/src/gfapi.aliases | 2 +-
|
|
|
233933 |
api/src/gfapi.map | 2 +-
|
|
|
233933 |
api/src/glfs.c | 2 +-
|
|
|
233933 |
api/src/glfs.h | 2 +-
|
|
|
233933 |
5 files changed, 9 insertions(+), 4 deletions(-)
|
|
|
233933 |
|
|
|
233933 |
diff --git a/api/examples/glfsxmp.c b/api/examples/glfsxmp.c
|
|
|
233933 |
index 9d96eea..33f44df 100644
|
|
|
233933 |
--- a/api/examples/glfsxmp.c
|
|
|
233933 |
+++ b/api/examples/glfsxmp.c
|
|
|
233933 |
@@ -1573,6 +1573,11 @@ main(int argc, char *argv[])
|
|
|
233933 |
|
|
|
233933 |
ret = glfs_set_logging(fs2, "/dev/stderr", 7);
|
|
|
233933 |
|
|
|
233933 |
+ ret = glfs_set_statedump_path(fs2, "/tmp");
|
|
|
233933 |
+ if (ret) {
|
|
|
233933 |
+ fprintf(stderr, "glfs_set_statedump_path: %s\n", strerror(errno));
|
|
|
233933 |
+ }
|
|
|
233933 |
+
|
|
|
233933 |
ret = glfs_init(fs2);
|
|
|
233933 |
|
|
|
233933 |
fprintf(stderr, "glfs_init: returned %d\n", ret);
|
|
|
233933 |
diff --git a/api/src/gfapi.aliases b/api/src/gfapi.aliases
|
|
|
233933 |
index 8fdf734..692ae13 100644
|
|
|
233933 |
--- a/api/src/gfapi.aliases
|
|
|
233933 |
+++ b/api/src/gfapi.aliases
|
|
|
233933 |
@@ -196,4 +196,4 @@ _pub_glfs_copy_file_range _glfs_copy_file_range$GFAPI_6.0
|
|
|
233933 |
_pub_glfs_fsetattr _glfs_fsetattr$GFAPI_6.0
|
|
|
233933 |
_pub_glfs_setattr _glfs_setattr$GFAPI_6.0
|
|
|
233933 |
|
|
|
233933 |
-_pub_glfs_set_statedump_path _glfs_set_statedump_path@GFAPI_future
|
|
|
233933 |
+_pub_glfs_set_statedump_path _glfs_set_statedump_path@GFAPI_6.4
|
|
|
233933 |
diff --git a/api/src/gfapi.map b/api/src/gfapi.map
|
|
|
233933 |
index cf118e8..df65837 100644
|
|
|
233933 |
--- a/api/src/gfapi.map
|
|
|
233933 |
+++ b/api/src/gfapi.map
|
|
|
233933 |
@@ -272,7 +272,7 @@ GFAPI_PRIVATE_6.1 {
|
|
|
233933 |
glfs_setfspid;
|
|
|
233933 |
} GFAPI_6.0;
|
|
|
233933 |
|
|
|
233933 |
-GFAPI_future {
|
|
|
233933 |
+GFAPI_6.4 {
|
|
|
233933 |
global:
|
|
|
233933 |
glfs_set_statedump_path;
|
|
|
233933 |
} GFAPI_PRIVATE_6.1;
|
|
|
233933 |
diff --git a/api/src/glfs.c b/api/src/glfs.c
|
|
|
233933 |
index ba513e6..6bbb620 100644
|
|
|
233933 |
--- a/api/src/glfs.c
|
|
|
233933 |
+++ b/api/src/glfs.c
|
|
|
233933 |
@@ -1800,4 +1800,4 @@ invalid_fs:
|
|
|
233933 |
return -1;
|
|
|
233933 |
}
|
|
|
233933 |
|
|
|
233933 |
-GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_set_statedump_path, future);
|
|
|
233933 |
+GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_set_statedump_path, 6.4);
|
|
|
233933 |
diff --git a/api/src/glfs.h b/api/src/glfs.h
|
|
|
233933 |
index a6c12e1..08b6ca0 100644
|
|
|
233933 |
--- a/api/src/glfs.h
|
|
|
233933 |
+++ b/api/src/glfs.h
|
|
|
233933 |
@@ -1479,7 +1479,7 @@ glfs_setattr(struct glfs *fs, const char *path, struct glfs_stat *stat,
|
|
|
233933 |
|
|
|
233933 |
int
|
|
|
233933 |
glfs_set_statedump_path(struct glfs *fs, const char *path) __THROW
|
|
|
233933 |
- GFAPI_PUBLIC(glfs_set_statedump_path, future);
|
|
|
233933 |
+ GFAPI_PUBLIC(glfs_set_statedump_path, 6.4);
|
|
|
233933 |
|
|
|
233933 |
__END_DECLS
|
|
|
233933 |
#endif /* !_GLFS_H */
|
|
|
233933 |
--
|
|
|
233933 |
1.8.3.1
|
|
|
233933 |
|