From 1f7469164a8d8fb0e031078073465b59c4334752 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 9 Sep 2013 03:08:08 -0700 Subject: glusterfsd: use-readdirp w/o arguments should not turn off readdirp `use-readdirp` has an optional argument in argp - specifying just `--use-readdirp` command line should not 'turn off' readdirp, since that undermines the meaning of such an argument. Change-Id: I965d87e29bd0d61997d9be96fa698e270a2ee173 BUG: 983477 Signed-off-by: Harshavardhana Reviewed-on: http://review.gluster.org/5851 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-983477.t | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/bugs/bug-983477.t b/tests/bugs/bug-983477.t index 6384209e1..c19fa96c8 100755 --- a/tests/bugs/bug-983477.t +++ b/tests/bugs/bug-983477.t @@ -32,6 +32,13 @@ EXPECT_WITHIN 20 "0" get_use_readdirp_value $V0 TEST cd - TEST umount $M0 +#Since args are optional on this argument just specifying "--use-readdirp" should also turn it `on` not `off` +TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 --use-readdirp +TEST cd $M0 +EXPECT_WITHIN 20 "1" get_use_readdirp_value $V0 +TEST cd - +TEST umount $M0 + #By default it is enabled. TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 TEST cd $M0 -- cgit