Home
last modified time | relevance | path

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

/third_party/e2fsprogs/resize/
Dmain.c175 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()
/third_party/e2fsprogs/misc/
De2undo.c227 const char *tdb_dir; in e2undo_setup_tdb() local
251 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2undo_setup_tdb()
252 if (!tdb_dir) in e2undo_setup_tdb()
253 tdb_dir = "/var/lib/e2fsprogs"; in e2undo_setup_tdb()
255 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2undo_setup_tdb()
256 access(tdb_dir, W_OK)) in e2undo_setup_tdb()
263 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2undo_setup_tdb()
268 sprintf(tdb_file, "%s/e2undo-%s.e2undo", tdb_dir, dev_name); in e2undo_setup_tdb()
Dmke2fs.c2745 char *tdb_dir = NULL, *tdb_file = NULL; in mke2fs_setup_tdb() local
2768 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in mke2fs_setup_tdb()
2769 if (!tdb_dir) { in mke2fs_setup_tdb()
2772 &tdb_dir); in mke2fs_setup_tdb()
2776 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in mke2fs_setup_tdb()
2777 access(tdb_dir, W_OK)) { in mke2fs_setup_tdb()
2779 free(tdb_dir); in mke2fs_setup_tdb()
2787 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in mke2fs_setup_tdb()
2792 sprintf(tdb_file, "%s/mke2fs-%s.e2undo", tdb_dir, dev_name); in mke2fs_setup_tdb()
2814 free(tdb_dir); in mke2fs_setup_tdb()
[all …]
Dtune2fs.c2790 const char *tdb_dir; in tune2fs_setup_tdb() local
2814 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in tune2fs_setup_tdb()
2815 if (!tdb_dir) in tune2fs_setup_tdb()
2816 tdb_dir = "/var/lib/e2fsprogs"; in tune2fs_setup_tdb()
2818 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in tune2fs_setup_tdb()
2819 access(tdb_dir, W_OK)) in tune2fs_setup_tdb()
2826 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in tune2fs_setup_tdb()
2831 sprintf(tdb_file, "%s/tune2fs-%s.e2undo", tdb_dir, dev_name); in tune2fs_setup_tdb()
/third_party/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.c1301 char *tdb_dir = NULL, *tdb_file = NULL; in e2fsck_setup_tdb() local
1325 tdb_dir = getenv("E2FSPROGS_UNDO_DIR"); in e2fsck_setup_tdb()
1326 if (!tdb_dir) { in e2fsck_setup_tdb()
1329 &tdb_dir); in e2fsck_setup_tdb()
1333 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in e2fsck_setup_tdb()
1334 access(tdb_dir, W_OK)) { in e2fsck_setup_tdb()
1336 free(tdb_dir); in e2fsck_setup_tdb()
1344 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2fsck_setup_tdb()
1349 sprintf(tdb_file, "%s/e2fsck-%s.e2undo", tdb_dir, dev_name); in e2fsck_setup_tdb()
1371 free(tdb_dir); in e2fsck_setup_tdb()
[all …]
Dpass1.c813 char *tdb_dir; in e2fsck_setup_icount() local
819 &tdb_dir); in e2fsck_setup_icount()
829 if (enable && tdb_dir && !access(tdb_dir, W_OK) && in e2fsck_setup_icount()
831 retval = ext2fs_create_icount_tdb(ctx->fs, tdb_dir, in e2fsck_setup_icount()
/third_party/e2fsprogs/debugfs/
Ddebugfs.c70 const char *tdb_dir = NULL; in debugfs_setup_tdb() local
94 tdb_dir = ss_safe_getenv("E2FSPROGS_UNDO_DIR"); in debugfs_setup_tdb()
95 if (!tdb_dir) in debugfs_setup_tdb()
96 tdb_dir = "/var/lib/e2fsprogs"; in debugfs_setup_tdb()
98 if (!strcmp(tdb_dir, "none") || (tdb_dir[0] == 0) || in debugfs_setup_tdb()
99 access(tdb_dir, W_OK)) in debugfs_setup_tdb()
106 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in debugfs_setup_tdb()
111 sprintf(tdb_file, "%s/debugfs-%s.e2undo", tdb_dir, dev_name); in debugfs_setup_tdb()
/third_party/e2fsprogs/lib/ext2fs/
Dicount.c200 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()
Dext2fs.h1516 extern errcode_t ext2fs_create_icount_tdb(ext2_filsys fs, char *tdb_dir,