Refactored gpfs_get_file.