static void * cleaner(void *arg) { char thepath[MAXPATHLEN]; struct lfstestargs *args = arg; const char *the_argv[7]; char buf[64]; /* this inspired by the cleaner code. fixme */ sprintf(thepath, "/dev/r%s", args->ta_devpath+5); rump_pub_etfs_register(thepath, args->ta_hostpath, RUMP_ETFS_CHR); sprintf(buf, "%p", &args->ta_cleanerloop); the_argv[0] = "megamaid"; the_argv[1] = "-D"; /* don't fork() & detach */ the_argv[2] = "-S"; the_argv[3] = buf; the_argv[4] = args->ta_mntpath; the_argv[5] = NULL; /* xxxatf */ optind = 1; opterr = 1; lfs_cleaner_main(5, __UNCONST(the_argv)); return NULL; }
static void * cleaner(void *arg) { const char *the_argv[7]; the_argv[0] = "megamaid"; the_argv[1] = "-D"; /* don't fork() & detach */ the_argv[2] = arg; lfs_cleaner_main(3, __UNCONST(the_argv)); return NULL; }