Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure destination directory exists + handle index mount directories (#…
…167) This change un-reverts PR #161 with a couple twists: account for index mount directories and use mpirun to perform the actions. Logic was added to prepare the destination directory by performing a `mkdir -p` on the user supplied destination. This logic ensures that the correct pathing is performed by determining the filetype (dir vs file) on both the source and destination paths. In addition to the supplied destination path, if the source filesystem is determined to have index mount directories (i.e. xfs/gfs2), those directories are created on the destination path to ensure that all data is retained. - All necessary filesystem interaction is ran through mpirun so that the proper mpi worker nodes are used to prepare the destination. This required for lustre2lustre data movement. - These file system interactions (i.e. `stat`, `mkdir`) are performed through `setpriv` to ensure that all interactions are done as the supplied UID/GID (from the workflow). - The hostfile createion logic now standsalone since these new mpirun calls need the hostfile before the final data movement command is built - Added in some local system calls when using unit tests since mpirun is not available in textenv Signed-off-by: Blake Devcich <blake.devcich@hpe.com>
- Loading branch information