Home
last modified time | relevance | path

Searched refs:tdb_dir (Results 1 – 10 of 10) sorted by relevance

/external/e2fsprogs/resize/
Dmain.c174 const char *tdb_dir = NULL; in resize2fs_setup_tdb() local
198 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in resize2fs_setup_tdb()
199 if (!tdb_dir) in resize2fs_setup_tdb()
200 tdb_dir = "/var/lib/e2fsprogs"; in resize2fs_setup_tdb()
202 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in resize2fs_setup_tdb()
203 access(tdb_dir, W_OK)) in resize2fs_setup_tdb()
210 tdb_file = malloc(strlen(tdb_dir) + 11 + strlen(dev_name) + 7 + 1); in resize2fs_setup_tdb()
215 sprintf(tdb_file, "%s/resize2fs-%s.e2undo", tdb_dir, dev_name); in resize2fs_setup_tdb()
/external/e2fsprogs/misc/
De2undo.c217 const char *tdb_dir; in e2undo_setup_tdb() local
241 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2undo_setup_tdb()
242 if (!tdb_dir) in e2undo_setup_tdb()
243 tdb_dir = "/var/lib/e2fsprogs"; in e2undo_setup_tdb()
245 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2undo_setup_tdb()
246 access(tdb_dir, W_OK)) in e2undo_setup_tdb()
253 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2undo_setup_tdb()
258 sprintf(tdb_file, "%s/e2undo-%s.e2undo", tdb_dir, dev_name); in e2undo_setup_tdb()
Dmke2fs.c2533 char *tdb_dir = NULL, *tdb_file = NULL; in mke2fs_setup_tdb() local
2556 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in mke2fs_setup_tdb()
2557 if (!tdb_dir) { in mke2fs_setup_tdb()
2560 &tdb_dir); in mke2fs_setup_tdb()
2564 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in mke2fs_setup_tdb()
2565 access(tdb_dir, W_OK)) { in mke2fs_setup_tdb()
2567 free(tdb_dir); in mke2fs_setup_tdb()
2575 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in mke2fs_setup_tdb()
2580 sprintf(tdb_file, "%s/mke2fs-%s.e2undo", tdb_dir, dev_name); in mke2fs_setup_tdb()
2602 free(tdb_dir); in mke2fs_setup_tdb()
[all …]
Dtune2fs.c2597 const char *tdb_dir; in tune2fs_setup_tdb() local
2621 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in tune2fs_setup_tdb()
2622 if (!tdb_dir) in tune2fs_setup_tdb()
2623 tdb_dir = "/var/lib/e2fsprogs"; in tune2fs_setup_tdb()
2625 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in tune2fs_setup_tdb()
2626 access(tdb_dir, W_OK)) in tune2fs_setup_tdb()
2633 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in tune2fs_setup_tdb()
2638 sprintf(tdb_file, "%s/tune2fs-%s.e2undo", tdb_dir, dev_name); in tune2fs_setup_tdb()
/external/e2fsprogs/e2fsck/
Ddirinfo.c52 char *tdb_dir, uuid[40]; in setup_tdb() local
56 &tdb_dir); in setup_tdb()
62 if (!enable || !tdb_dir || access(tdb_dir, W_OK) || in setup_tdb()
66 retval = ext2fs_get_mem(strlen(tdb_dir) + 64, &db->tdb_fn); in setup_tdb()
71 sprintf(db->tdb_fn, "%s/%s-dirinfo-XXXXXX", tdb_dir, uuid); in setup_tdb()
Dunix.c1239 char *tdb_dir = NULL, *tdb_file = NULL; in e2fsck_setup_tdb() local
1263 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2fsck_setup_tdb()
1264 if (!tdb_dir) { in e2fsck_setup_tdb()
1267 &tdb_dir); in e2fsck_setup_tdb()
1271 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2fsck_setup_tdb()
1272 access(tdb_dir, W_OK)) { in e2fsck_setup_tdb()
1274 free(tdb_dir); in e2fsck_setup_tdb()
1282 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2fsck_setup_tdb()
1287 sprintf(tdb_file, "%s/e2fsck-%s.e2undo", tdb_dir, dev_name); in e2fsck_setup_tdb()
1309 free(tdb_dir); in e2fsck_setup_tdb()
[all …]
Dpass1.c712 char *tdb_dir; in e2fsck_setup_icount() local
718 &tdb_dir); in e2fsck_setup_icount()
728 if (enable && tdb_dir && !access(tdb_dir, W_OK) && in e2fsck_setup_icount()
730 retval = ext2fs_create_icount_tdb(ctx->fs, tdb_dir, in e2fsck_setup_icount()
/external/e2fsprogs/debugfs/
Ddebugfs.c60 char *tdb_dir = NULL, *tdb_file = NULL; in debugfs_setup_tdb() local
83 tdb_dir = ss_safe_getenv("E2FSPROGS_UNDO_DIR"); in debugfs_setup_tdb()
84 if (!tdb_dir) in debugfs_setup_tdb()
85 tdb_dir = "/var/lib/e2fsprogs"; in debugfs_setup_tdb()
87 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in debugfs_setup_tdb()
88 access(tdb_dir, W_OK)) in debugfs_setup_tdb()
95 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in debugfs_setup_tdb()
100 sprintf(tdb_file, "%s/debugfs-%s.e2undo", tdb_dir, dev_name); in debugfs_setup_tdb()
/external/e2fsprogs/lib/ext2fs/
Dicount.c184 char *tdb_dir EXT2FS_NO_TDB_UNUSED, in ext2fs_create_icount_tdb()
200 retval = ext2fs_get_mem(strlen(tdb_dir) + 64, &fn); in ext2fs_create_icount_tdb()
204 sprintf(fn, "%s/%s-icount-XXXXXX", tdb_dir, uuid); in ext2fs_create_icount_tdb()
Dext2fs.h1429 extern errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir,