in FSxL-Compression/fsx_lustre_migrate_files.py [0:0]
def validate_lfs_path(root_path):
cmd = ["/usr/bin/lfs", "path2fid", root_path]
p = subprocess.run(cmd, stdout=DEVNULL, stderr=DEVNULL)
if p.returncode > 0:
logger.error("Path specified is not a valid path under Lustre mount point: %s", root_path)
sys.exit(p.returncode)