<div dir="ltr"><div><div><div><div><div><div>Hi,<br></div>   I am using the nfs and glusterfs driver as reference here.<br><br></div>I see that load_shares_config is called everytime via _ensure_shares_mounted which I feel is incorrect mainly because ensure_shares_mounted loads the config file again w/o restarting the service<br>
<br></div>I think that the shares config file should only be loaded once (during service startup) as part of do_setup and never again.<br><br>If someone changes something in the conf file, one needs to restart service which calls do_setup again and the changes made in shares.conf is taken effect.<br>
<br></div>In looking further.. the ensure_shares_mounted ends up calling remotefsclient.mount() which does _Nothing_ if the share is already mounted.. whcih is mostly the case. So even if someone changed something in the shares file (like added -o options) it won't take effect as the share is already mounted & service already running. <br>
<br>In fact today, if you restart the service, even then the changes in share won't take effect as the mount is not un-mounted, hence when the service is started next, the mount is existing and ensures_shares_mounted just returns w/o doing anything.<br>
<br></div>The only adv of calling load_shares_config in ensure_shares_mounted is if someone changed the shares server IP while the service is running ... it loads the new share usign the new server IP.. which again is wrong since ideally the person should restart service for any shares.conf changes to take effect.<br>
<br>Hence i feel callign load_shares_config in ensure_shares_mounted is Incorrect and should be removed<br><br>Thoughts ?<br><br>thanx,<br></div>deepak<br></div>