Some directory trees in LSST datasets need to be marked immutable to prevent any accidental additions, deletions or modifications to a specific set of data.
Given a directory, perform any of the following, user configurable tasks:
- Lock the directory and subtree below it
- Set user and group ownership
- Set directory and file permissions
- Set all files and directories immutable
- Unlock the directory and subtree below it
- Remove immutable flag from all files and directories in the subtree
- Print Status
- Report number of files and directories:
- not matching expected User, Group or Permisions
- that are locked (immutable)
- that are unlocked (not immutable)
- Report number of files and directories:
- Trigger a new GPFS policy run that will refresh the master list of stats. This stats file is used for the "Print Status" action and the stats file must be updated after a lock/unlock operation for accurate "Print Status" output.
mod_dataset.sh -h
Get an updated list of all unique datasets in the filesystem.
find_immutable_topdirs.sh