On 12/09/2013 05:22 PM, Tony Asleson wrote:
In a glaring oversight the changes made via targetd for nfs exports was lost on system reboot. This patch fixes that by taking every export that is listed via `exportfs -v` and writes each entry to /etc/exports.d.
At the moment for updates the code just removes every file that is has created and re-creates a new file for each entry. Not the most performant implementation, but it minimizes risk to updating an existing export and not getting the change written out correctly. In big config testing we may find that this simple approach is actually faster than opening and checking each file for correctness and then updating/deleting etc. as needed.
Hi Tony, nice work.
I was assuming we'd just write one file to /etc/exports.d. Is this not possible, or are there advantages to splitting them out?
Thanks -- Regards -- Andy