4967: crunch-job unmounts old Keep mounts more robustly.
authorBrett Smith <brett@curoverse.com>
Wed, 21 Jan 2015 16:38:18 +0000 (11:38 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 21 Jan 2015 16:39:13 +0000 (11:39 -0500)
commit575443545936e6b8a1a4783e3d0e17d0246c6e99
tree5825c91e001132f3c3febe981d3b8a3a9d90bbd9
parentffcfb73e6a5dfd626b1d523accc42e7a6af5e8ed
4967: crunch-job unmounts old Keep mounts more robustly.

The previous version looked for mounts under $JOB_WORK before
unmounting anything.  We long ago started mounting under $TASK_WORK,
so unmounting hasn't been working for a while.  This version unmounts
every FUSE mount with "keep" in the path, so it will be much more
flexible.

I also changed the cleanup to use bash -e, so the logs are more likely
to indicate if there was trouble during the cleanup step.
sdk/cli/bin/crunch-job