Generic driver uses 'exportfs' utility for exports handling, but it stores
exports in temporary file /var/lib/nfs/etab and server loses all exports after
reboot. This change copies temp exports file to permanent exports file located
in /etc/exports after each action with exports and makes reexport of all
shares. After restart of server all exports will be restored from permanent
file.
Reviewed: https:/ /review. openstack. org/119010 /git.openstack. org/cgit/ stackforge/ manila/ commit/ ?id=20b810bfb65 982b8288f5a694e 6fce9c0770ea2d
Committed: https:/
Submitter: Jenkins
Branch: master
commit 20b810bfb65982b 8288f5a694e6fce 9c0770ea2d
Author: Valeriy Ponomaryov <email address hidden>
Date: Thu Sep 4 05:12:13 2014 -0400
Make NFS exports in generic driver permanent
Generic driver uses 'exportfs' utility for exports handling, but it stores
exports in temporary file /var/lib/nfs/etab and server loses all exports after
reboot. This change copies temp exports file to permanent exports file located
in /etc/exports after each action with exports and makes reexport of all
shares. After restart of server all exports will be restored from permanent
file.
Change-Id: I6a1e7074f18c70 df5785d236c6f70 c40731cda77
Closes-Bug: #1358688