diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-11-19 16:29:44 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-11-28 03:37:03 -0800 |
commit | c6570de4d5ba090cfb4bb9d2b0390f2526ed0636 (patch) | |
tree | 5e3ffec7df086ac5bcdf0df6c8c7c75f0e3a04c0 /tests/bugs/bug-845213.t | |
parent | cee1b62d013cfb164f2a014919721c920c06514a (diff) |
protocol/client: add an option to filter O_DIRECT flag in open
with the option, the idea is all client-side caching will be disabled,
where as on server side process, the fd will be treated as a regular
fd, thus helping the performance better.
"gluster volume set <VOLNAME> remote-dio enable" would set
this option in client protocol volumes.
Change-Id: Id2255a167137f8fee20849513e3011274dc829b4
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 845213
Reviewed-on: http://review.gluster.org/4206
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/bugs/bug-845213.t')
-rw-r--r-- | tests/bugs/bug-845213.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/bugs/bug-845213.t b/tests/bugs/bug-845213.t new file mode 100644 index 00000000000..e79b3710902 --- /dev/null +++ b/tests/bugs/bug-845213.t @@ -0,0 +1,19 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc + +cleanup; + + +## Start and create a volume +TEST glusterd; +TEST pidof glusterd; +TEST $CLI volume info; + +## Create and start a volume with aio enabled +TEST $CLI volume create $V0 $H0:$B0/${V0}{1,2}; +TEST $CLI volume set $V0 remote-dio enable; +TEST $CLI volume set $V0 network.remote-dio disable; + +cleanup; + |