Lines Matching refs:tdb_dir
2209 char *tdb_dir = NULL, *tdb_file = NULL; in mke2fs_setup_tdb() local
2217 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in mke2fs_setup_tdb()
2218 if (!tdb_dir) { in mke2fs_setup_tdb()
2221 &tdb_dir); in mke2fs_setup_tdb()
2225 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in mke2fs_setup_tdb()
2226 access(tdb_dir, W_OK)) { in mke2fs_setup_tdb()
2228 free(tdb_dir); in mke2fs_setup_tdb()
2236 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in mke2fs_setup_tdb()
2241 sprintf(tdb_file, "%s/mke2fs-%s.e2undo", tdb_dir, dev_name); in mke2fs_setup_tdb()
2261 free(tdb_dir); in mke2fs_setup_tdb()
2267 free(tdb_dir); in mke2fs_setup_tdb()