static void EMC_Delete( char *testFileName, IOR_param_t * param ) { if (param->verbose >= VERBOSE_2) { printf("-> EMC_Delete(%s)\n", testFileName); } /* maybe initialize curl */ s3_connect( param ); #if 0 // EMC BUG: If file was written with appends, and is deleted, // Then any future recreation will result in an object that can't be read. // this AWS4C_CHECK( s3_delete(param->io_buf, testFileName) ); #else // just replace with a zero-length object for now aws_iobuf_reset(param->io_buf); AWS4C_CHECK ( s3_put(param->io_buf, testFileName) ); #endif AWS4C_CHECK_OK( param->io_buf ); if (param->verbose >= VERBOSE_2) printf("<- EMC_Delete\n"); }
int delete_file( IOBuf * aws_buf, char *name ) { int rv = s3_delete(aws_buf, name); return rv; }