CAR-1442: Change NFS mount options

In preparation for read caching, change actimeo=0 to acdirmin=0,acdirmax=0.
Using "actimeo=0" prevents caching file attributes which means that each read
requires a GETATTR call to the NFS server.  This prevents read caching from
being effective.  Changing the mount options to "acdirmin=0,acdirmax=0"
prevents caching directory attributes but allows caching file attributes.  This
allows read caching to be effective.

This reverts the change made to the mount options in CA-63601.  The issue in
that ticket was a transient issue, fixed by a later build, before the change to
the mount options was made.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #135 on xapi-project/blktap
(cherry picked from commit 8e505ad9d82dc66c06edf22588d0f7d8e8fac1cb)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master
CAR-1442: Enable no-O_DIRECT read caching for VDIs on EXT and NFS SRs

Pass the "-D" argument to tap-ctl when opening an EXTFileVDI or an NFSFileVDI
to allow read caching by removing O_DIRECT.

Allow disabling read caching per-SR by setting other-config:o_direct to true.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #135 on xapi-project/blktap
(cherry picked from commit 4be47e0b137652ef4799931a87bca6ea4ef0dd67)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master

Conflicts:

	drivers/blktap2.py
CA-136654: Don't rely on a XAPI session existing

With static VDIs, the SR code is run without a XAPI session.  In this
case, set O_DIRECT to be on for safety since there is external knob to
adjust it.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Reviewed-by: Thanos Makatos <thanos.makatos@citrix.com>

GitHub: closes #142 on xapi-project/sm
(cherry picked from commit 6c2d966ee492d756aa90dae84a0fc2298d4d4002)

Reason for cherry picking:
    [CP-9440] Merge read caching related changes to Master