summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2018-07-01 00:56:59 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2018-07-12 19:59:53 +0200
commit650786c81270889f154c577a3c74abd51108d856 (patch)
treef768da1f2ba1fb6878a21bc840b581f6cda2ea47 /var
parentab794fa7413d1650c1ba01ea18e74964877fdf99 (diff)
downloadspack-650786c81270889f154c577a3c74abd51108d856.tar.gz
spack-650786c81270889f154c577a3c74abd51108d856.tar.bz2
spack-650786c81270889f154c577a3c74abd51108d856.tar.xz
spack-650786c81270889f154c577a3c74abd51108d856.zip
locks: improve errors and permission checking
- Clean up error messages for when a lock can't be created, or when an exclusive (write) lock can't be taken on a file. - Add a number of subclasses of LockError to distinguish timeouts from permission issues. - Add an explicit check to prevent the user from taking a write lock on a read-only file. - We had a check for this for when we try to *upgrade* a lock on an RO file, but not for an initial write lock attempt. - Add more tests for different lock permission scenarios.
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions