/external/e2fsprogs/resize/ |
D | main.c | 175 const char *tdb_dir = NULL; in resize2fs_setup_tdb() local 199 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in resize2fs_setup_tdb() 200 if (!tdb_dir) in resize2fs_setup_tdb() 201 tdb_dir = "/var/lib/e2fsprogs"; in resize2fs_setup_tdb() 203 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in resize2fs_setup_tdb() 204 access(tdb_dir, W_OK)) in resize2fs_setup_tdb() 211 tdb_file = malloc(strlen(tdb_dir) + 11 + strlen(dev_name) + 7 + 1); in resize2fs_setup_tdb() 216 sprintf(tdb_file, "%s/resize2fs-%s.e2undo", tdb_dir, dev_name); in resize2fs_setup_tdb()
|
/external/e2fsprogs/misc/ |
D | e2undo.c | 223 const char *tdb_dir; in e2undo_setup_tdb() local 247 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2undo_setup_tdb() 248 if (!tdb_dir) in e2undo_setup_tdb() 249 tdb_dir = "/var/lib/e2fsprogs"; in e2undo_setup_tdb() 251 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2undo_setup_tdb() 252 access(tdb_dir, W_OK)) in e2undo_setup_tdb() 259 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2undo_setup_tdb() 264 sprintf(tdb_file, "%s/e2undo-%s.e2undo", tdb_dir, dev_name); in e2undo_setup_tdb()
|
D | mke2fs.c | 2675 char *tdb_dir = NULL, *tdb_file = NULL; in mke2fs_setup_tdb() local 2698 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in mke2fs_setup_tdb() 2699 if (!tdb_dir) { in mke2fs_setup_tdb() 2702 &tdb_dir); in mke2fs_setup_tdb() 2706 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in mke2fs_setup_tdb() 2707 access(tdb_dir, W_OK)) { in mke2fs_setup_tdb() 2709 free(tdb_dir); in mke2fs_setup_tdb() 2717 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in mke2fs_setup_tdb() 2722 sprintf(tdb_file, "%s/mke2fs-%s.e2undo", tdb_dir, dev_name); in mke2fs_setup_tdb() 2744 free(tdb_dir); in mke2fs_setup_tdb() [all …]
|
D | tune2fs.c | 2768 const char *tdb_dir; in tune2fs_setup_tdb() local 2792 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in tune2fs_setup_tdb() 2793 if (!tdb_dir) in tune2fs_setup_tdb() 2794 tdb_dir = "/var/lib/e2fsprogs"; in tune2fs_setup_tdb() 2796 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in tune2fs_setup_tdb() 2797 access(tdb_dir, W_OK)) in tune2fs_setup_tdb() 2804 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in tune2fs_setup_tdb() 2809 sprintf(tdb_file, "%s/tune2fs-%s.e2undo", tdb_dir, dev_name); in tune2fs_setup_tdb()
|
/external/e2fsprogs/e2fsck/ |
D | dirinfo.c | 52 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()
|
D | unix.c | 1289 char *tdb_dir = NULL, *tdb_file = NULL; in e2fsck_setup_tdb() local 1313 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2fsck_setup_tdb() 1314 if (!tdb_dir) { in e2fsck_setup_tdb() 1317 &tdb_dir); in e2fsck_setup_tdb() 1321 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2fsck_setup_tdb() 1322 access(tdb_dir, W_OK)) { in e2fsck_setup_tdb() 1324 free(tdb_dir); in e2fsck_setup_tdb() 1332 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2fsck_setup_tdb() 1337 sprintf(tdb_file, "%s/e2fsck-%s.e2undo", tdb_dir, dev_name); in e2fsck_setup_tdb() 1359 free(tdb_dir); in e2fsck_setup_tdb() [all …]
|
D | pass1.c | 822 char *tdb_dir; in e2fsck_setup_icount() local 828 &tdb_dir); in e2fsck_setup_icount() 838 if (enable && tdb_dir && !access(tdb_dir, W_OK) && in e2fsck_setup_icount() 840 retval = ext2fs_create_icount_tdb(ctx->fs, tdb_dir, in e2fsck_setup_icount()
|
/external/e2fsprogs/debugfs/ |
D | debugfs.c | 64 const char *tdb_dir = NULL; in debugfs_setup_tdb() local 88 tdb_dir = ss_safe_getenv("E2FSPROGS_UNDO_DIR"); in debugfs_setup_tdb() 89 if (!tdb_dir) in debugfs_setup_tdb() 90 tdb_dir = "/var/lib/e2fsprogs"; in debugfs_setup_tdb() 92 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in debugfs_setup_tdb() 93 access(tdb_dir, W_OK)) in debugfs_setup_tdb() 100 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in debugfs_setup_tdb() 105 sprintf(tdb_file, "%s/debugfs-%s.e2undo", tdb_dir, dev_name); in debugfs_setup_tdb()
|
/external/e2fsprogs/lib/ext2fs/ |
D | icount.c | 200 char *tdb_dir EXT2FS_NO_TDB_UNUSED, in ext2fs_create_icount_tdb() 216 retval = ext2fs_get_mem(strlen(tdb_dir) + 64, &fn); in ext2fs_create_icount_tdb() 220 sprintf(fn, "%s/%s-icount-XXXXXX", tdb_dir, uuid); in ext2fs_create_icount_tdb()
|
D | ext2fs.h | 1482 extern errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir,
|