Skip to content
  • Mike Hibler's avatar
    Hopefully eliminate race in exports_setup when waiting for mountd to finish. · 031b174c
    Mike Hibler authored
    Changed mountd to write the current timestamp into /var/run/mountd.ts
    whenever it has finished processing all exports files. So someone who
    HUPs/USR1s mountd can check and see when the timestamp changes.
    
    We use this in exports_setup.proxy to ensure we do not return before
    mountd has completed parsing and effecting changes. Since I am too lazy
    to check the before and after values of the timestamp, I just remove that
    file just before signalling, and then wait for it to reappear to signify
    that mountd is done.
    031b174c