Permalink
Browse files

mc_convert_path need not rule out paths to MC_SOCKETS DALs.

  • Loading branch information...
jti-lanl committed Dec 4, 2018
1 parent 76d9c6f commit a18730d9a7860b9f55a772d0da0ae464e9745334
Showing with 2 additions and 0 deletions.
  1. +2 −0 utilities/multi-component/mc_path_convert.c
@@ -219,12 +219,14 @@ int main(int argc, char* argv[])
return -1;
}

#if 0 // MC_SOCKETS should be allowed, too!
// before we reach into the context structs directly, make sure this is actually a MC obj
if ( strncmp( fh.dal_handle.dal->name, "MC", 3 ) ) {
printf("ERROR: marfs file-handle does not indicate the expected DAL name of 'MC': \"%s\"\n", fh.dal_handle.dal->name );
marfs_release( "required for some reason, even though it's never used", &fh );
return -1;
}
#endif

// pull the path out of the open file handle
printf("Object Path -- %s\n", MC_CONTEXT(&(fh.dal_handle.ctx))->path_template );

0 comments on commit a18730d

Please sign in to comment.