Skip to content

Commit

Permalink
Fixed for volcengine
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenrong-wang committed Jul 16, 2024
1 parent 2de13e8 commit 79f5efa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpcopr/dataman.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,10 +724,10 @@ int remote_bucket_cp(char* workdir, char* crypto_keyfile, char* hpc_user, char*
}
else{
if(strcmp(cmd_type,"rget")==0){
snprintf(remote_commands,CMDLINE_LENGTH-1,"tosutil -re %s cp -e tos-%s.volces.com -i %s -k %s %s%s %s %s",binfo.region_id,binfo.region_id,binfo.bucket_ak,binfo.bucket_sk,binfo.bucket_address,real_source_path,real_dest_path,real_rflag);
snprintf(remote_commands,CMDLINE_LENGTH-1,"tosutil cp -re %s -e tos-%s.ivolces.com -i %s -k %s %s%s %s %s",binfo.region_id,binfo.region_id,binfo.bucket_ak,binfo.bucket_sk,binfo.bucket_address,real_source_path,real_dest_path,real_rflag);
}
else{
snprintf(remote_commands,CMDLINE_LENGTH-1,"tosutil -re %s cp -e tos-%s.volces.com -i %s -k %s %s %s%s %s",binfo.region_id,binfo.region_id,binfo.bucket_ak,binfo.bucket_sk,real_source_path,binfo.bucket_address,real_dest_path,real_rflag);
snprintf(remote_commands,CMDLINE_LENGTH-1,"tosutil cp -re %s -e tos-%s.ivolces.com -i %s -k %s %s %s%s %s",binfo.region_id,binfo.region_id,binfo.bucket_ak,binfo.bucket_sk,real_source_path,binfo.bucket_address,real_dest_path,real_rflag);
}
}
run_flag=remote_exec_general(workdir,crypto_keyfile,sshkey_dir,hpc_user,remote_commands,"-n",0,1,"","");
Expand Down

0 comments on commit 79f5efa

Please sign in to comment.