Lines Matching refs:basedir
30 void init_ffsb_fs(ffsb_fs_t * fs, char *basedir, uint32_t num_data_dirs, in init_ffsb_fs() argument
34 fs->basedir = ffsb_strdup(basedir); in init_ffsb_fs()
49 free(fs->basedir); in destroy_ffsb_fs()
57 target->basedir = orig->basedir; in clone_ffsb_fs()
90 uint64_t initial_free = getfsutil_size(fs->basedir); in add_files()
104 if (getfsutil(fs->basedir) != initial_free || in add_files()
105 fs->init_size > (getfsutil_size(fs->basedir) - in add_files()
111 if (fs->init_fsutil > getfsutil(fs->basedir)) in add_files()
140 if (fs->init_size > getfsutil_size(fs->basedir) - in add_files()
146 if (fs->init_fsutil > getfsutil(fs->basedir)) in add_files()
168 printf("checking existing fs: %s\n", fs->basedir); in construct_ffsb_fs()
175 printf("creating new fileset %s\n", fs->basedir); in construct_ffsb_fs()
179 printf("fs setup on %s failed\n", fs->basedir); in construct_ffsb_fs()
245 snprintf(buf, FILENAME_MAX, "%s/%s", fs->basedir, FILES_BASE)) { in check_existing_fileset()
270 snprintf(buf, FILENAME_MAX, "%s/%s", fs->basedir, META_BASE)) { in check_existing_fileset()
319 fs->basedir, fs->basedir)) { in construct_new_fileset()
329 fs->start_fsutil = getfsutil(fs->basedir); in construct_new_fileset()
333 snprintf(buf, FILENAME_MAX, "%s/%s", fs->basedir, FILES_BASE)) { in construct_new_fileset()
345 snprintf(buf, FILENAME_MAX, "%s/%s", fs->basedir, META_BASE); in construct_new_fileset()
372 double fsutil = getfsutil(pd->fs->basedir); in fs_get_util()
389 printf("aging fs %s from %.2lf to %.2lf\n", fs->basedir, in age_fs()
439 return fs->basedir; in fs_get_basedir()
581 printf("FileSystem %s\n", fs->basedir); in fs_print_config()
611 getfsutil(fs->basedir) * 100); in fs_print_config()
616 tg_print_config_aging(fs->aging_tg, fs->basedir); in fs_print_config()