XOP-591: Dump sm_config as part of NFSVDI.generate_config
XOP-591: Dump sm_config as part of NFSVDI.generate_config

This information is used by HA to attach heartbeat VDI when XAPI is
not around. It is necessary to preserve the sm_config information
because it now contains the nosubdir flag which is crucial for
deciding which path to mount.

Previously, we deliberately didn't change this to minimize code
churn, because we knew that Cloudstack didn't use XenServer's HA,
and even if they do, they should use the normal NFSSR with subdirectory.

However, the situation changed. Firstly, CloudStack will use XenServer's
HA; Secondly, a user could set heartbeat SR to CloudStack's primary NFSSR
storage by mistake (which has the nosubdir=true) and he/she will then
stuck in a situation can't easily recover. Therefore, we must fix this
problem properly.

Signed-off-by: Zheng Li <zheng.li@citrix.com>
Reviewed-by: Vineeth Thampi Raveendran <vineeth.thampi@citrix.com>

Github: closes #78 on xapi-project/sm

martinjorge/sm,malcolmcrossley/sm,siddharthv/sm,geosharath/sm,pritha-srivastava/sm,siddharthv/sm,martinjorge/sm,germanop/sm,martinjorge/sm,kostaslamda/sm,robertbreker/sm,chandrikas/sm,BobBall/sm,xapi-project/sm,pritha-srivastava/sm,robertbreker/sm,djs55/sm,chandrikas/sm,kostaslamda/sm,germanop/sm,djs55/sm,geosharath/sm,germanop/sm,siddharthv/sm,xapi-project/sm,malcolmcrossley/sm,malcolmcrossley/sm,kostaslamda/sm,pritha-srivastava/sm,BobBall/sm,xapi-project/sm,djs55/sm,geosharath/sm,BobBall/sm,robertbreker/sm,chandrikas/sm