summaryrefslogtreecommitdiffstats
path: root/tests/basic/gfapi/seek.c
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-06-17 01:27:31 -0400
committerRaghavendra Talur <rtalur@redhat.com>2016-07-20 23:15:55 -0700
commit0a8b85e3a8228c399dde807c3ca781a452a1fc90 (patch)
tree2c0d75324ef3bf2339c188929e4cfb9177e8f110 /tests/basic/gfapi/seek.c
parentdcf75f7dac091cdb8ab0af2e8f2ca30f6272f8d1 (diff)
tests: Enable all gfapi test cases
Change-Id: I32bfec4af91348d96dc3e81a9d5c9cad599f821b Bug: 1358594 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/14748 NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Raghavendra Talur <rtalur@redhat.com>
Diffstat (limited to 'tests/basic/gfapi/seek.c')
-rw-r--r--tests/basic/gfapi/seek.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/basic/gfapi/seek.c b/tests/basic/gfapi/seek.c
index a0fec7d990a..fb2f6361bf3 100644
--- a/tests/basic/gfapi/seek.c
+++ b/tests/basic/gfapi/seek.c
@@ -14,8 +14,8 @@
#include <stdlib.h>
#include <unistd.h>
-#include <api/glfs.h>
-#include <api/glfs-handles.h>
+#include <glusterfs/api/glfs.h>
+#include <glusterfs/api/glfs-handles.h>
int
main (int argc, char **argv)
@@ -25,18 +25,20 @@ main (int argc, char **argv)
glfs_fd_t *fd = NULL;
char *filename = NULL;
char *volname = NULL;
+ char *hostname = NULL;
struct stat st = { 0, };
off_t hole_start = 0;
off_t hole_end = 0;
- if (argc != 3) {
- fprintf (stderr, "Invalid argument, use %s <vol> <file>\n",
+ if (argc != 4) {
+ fprintf (stderr, "Invalid argument, use %s <hostname> <vol> <file>\n",
argv[0]);
exit (1);
}
- volname = argv[1];
- filename = argv[2];
+ hostname = argv[1];
+ volname = argv[2];
+ filename = argv[3];
fs = glfs_new (volname);
if (!fs) {
@@ -44,7 +46,7 @@ main (int argc, char **argv)
return 1;
}
- if (glfs_set_volfile_server (fs, "tcp", "localhost", 24007)) {
+ if (glfs_set_volfile_server (fs, "tcp", hostname, 24007)) {
perror ("glfs_set_volfile_server");
return 1;
}