diff options
| -rw-r--r-- | glusterfsd/src/glusterfsd.c | 2 | ||||
| -rwxr-xr-x | tests/bugs/bug-983477.t | 7 | 
2 files changed, 8 insertions, 1 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index e8ebdae14..908345d26 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -1020,7 +1020,7 @@ parse_opts (int key, char *arg, struct argp_state *state)          case ARGP_FUSE_USE_READDIRP_KEY:                  if (!arg) -                        arg = "no"; +                        arg = "yes";                  if (gf_string2boolean (arg, &b) == 0) {                          if (b) { 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  | 
