INT64_T chirp_global_mkalloc(const char *host, const char *path, INT64_T size, INT64_T mode, time_t stoptime) { if(is_multi_path(host)) { errno = EACCES; return -1; } else if(not_empty(path)) { return chirp_reli_mkalloc(host, path, size, mode, stoptime); } else { errno = EACCES; return -1; } }
static INT64_T do_mkalloc(int argc, char **argv) { char full_path[CHIRP_PATH_MAX]; complete_remote_path(argv[1], full_path); return chirp_reli_mkalloc(current_host, full_path, string_metric_parse(argv[2]), 0700, stoptime); }