Home
last modified time | relevance | path

Searched refs:tdb_file (Results 1 – 7 of 7) sorted by relevance

/external/e2fsprogs/misc/
De2undo.c224 char *tdb_file = NULL; in e2undo_setup_tdb() local
259 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2undo_setup_tdb()
260 if (!tdb_file) { in e2undo_setup_tdb()
264 sprintf(tdb_file, "%s/e2undo-%s.e2undo", tdb_dir, dev_name); in e2undo_setup_tdb()
267 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in e2undo_setup_tdb()
270 _("while trying to delete %s"), tdb_file); in e2undo_setup_tdb()
278 retval = set_undo_io_backup_file(tdb_file); in e2undo_setup_tdb()
284 tdb_file, name); in e2undo_setup_tdb()
286 free(tdb_file); in e2undo_setup_tdb()
289 free(tdb_file); in e2undo_setup_tdb()
[all …]
Dmke2fs.c2600 char *tdb_dir = NULL, *tdb_file = NULL; in mke2fs_setup_tdb() local
2642 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in mke2fs_setup_tdb()
2643 if (!tdb_file) { in mke2fs_setup_tdb()
2647 sprintf(tdb_file, "%s/mke2fs-%s.e2undo", tdb_dir, dev_name); in mke2fs_setup_tdb()
2650 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in mke2fs_setup_tdb()
2653 _("while trying to delete %s"), tdb_file); in mke2fs_setup_tdb()
2661 retval = set_undo_io_backup_file(tdb_file); in mke2fs_setup_tdb()
2666 " e2undo %s %s\n\n"), tdb_file, name); in mke2fs_setup_tdb()
2670 free(tdb_file); in mke2fs_setup_tdb()
2676 free(tdb_file); in mke2fs_setup_tdb()
Dtune2fs.c2753 char *tdb_file = NULL; in tune2fs_setup_tdb() local
2788 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in tune2fs_setup_tdb()
2789 if (!tdb_file) { in tune2fs_setup_tdb()
2793 sprintf(tdb_file, "%s/tune2fs-%s.e2undo", tdb_dir, dev_name); in tune2fs_setup_tdb()
2796 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in tune2fs_setup_tdb()
2799 _("while trying to delete %s"), tdb_file); in tune2fs_setup_tdb()
2807 retval = set_undo_io_backup_file(tdb_file); in tune2fs_setup_tdb()
2813 tdb_file, name); in tune2fs_setup_tdb()
2815 free(tdb_file); in tune2fs_setup_tdb()
2818 free(tdb_file); in tune2fs_setup_tdb()
/external/e2fsprogs/resize/
Dmain.c176 char *tdb_file = NULL; in resize2fs_setup_tdb() local
211 tdb_file = malloc(strlen(tdb_dir) + 11 + strlen(dev_name) + 7 + 1); in resize2fs_setup_tdb()
212 if (!tdb_file) { in resize2fs_setup_tdb()
216 sprintf(tdb_file, "%s/resize2fs-%s.e2undo", tdb_dir, dev_name); in resize2fs_setup_tdb()
219 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in resize2fs_setup_tdb()
222 _("while trying to delete %s"), tdb_file); in resize2fs_setup_tdb()
230 retval = set_undo_io_backup_file(tdb_file); in resize2fs_setup_tdb()
235 " e2undo %s %s\n\n"), tdb_file, device); in resize2fs_setup_tdb()
237 free(tdb_file); in resize2fs_setup_tdb()
240 free(tdb_file); in resize2fs_setup_tdb()
/external/e2fsprogs/lib/ext2fs/
Dundo_io.c149 char *tdb_file; member
165 static char *tdb_file; variable
179 tdb_file = strdup(file_name); in set_undo_io_backup_file()
181 if (tdb_file == NULL) { in set_undo_io_backup_file()
691 com_err(data->tdb_file, err, "while force-closing undo file"); in undo_atexit()
736 data->tdb_file = strdup(tdb_file); in undo_open()
737 if (data->tdb_file == NULL) in undo_open()
739 undo_fd = ext2fs_open_file(data->tdb_file, O_RDWR | O_CREAT, in undo_open()
744 retval = undo_io_backing_manager->open(data->tdb_file, in undo_open()
785 if (data && data->tdb_file) in undo_open()
[all …]
/external/e2fsprogs/e2fsck/
Dunix.c1282 char *tdb_dir = NULL, *tdb_file = NULL; in e2fsck_setup_tdb() local
1325 tdb_file = malloc(strlen(tdb_dir) + 8 + strlen(dev_name) + 7 + 1); in e2fsck_setup_tdb()
1326 if (!tdb_file) { in e2fsck_setup_tdb()
1330 sprintf(tdb_file, "%s/e2fsck-%s.e2undo", tdb_dir, dev_name); in e2fsck_setup_tdb()
1333 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in e2fsck_setup_tdb()
1336 _("while trying to delete %s"), tdb_file); in e2fsck_setup_tdb()
1344 retval = set_undo_io_backup_file(tdb_file); in e2fsck_setup_tdb()
1349 " e2undo %s %s\n\n"), tdb_file, ctx->filesystem_name); in e2fsck_setup_tdb()
1353 free(tdb_file); in e2fsck_setup_tdb()
1359 free(tdb_file); in e2fsck_setup_tdb()
/external/e2fsprogs/debugfs/
Ddebugfs.c65 char *tdb_file = NULL; in debugfs_setup_tdb() local
100 tdb_file = malloc(strlen(tdb_dir) + 9 + strlen(dev_name) + 7 + 1); in debugfs_setup_tdb()
101 if (!tdb_file) { in debugfs_setup_tdb()
105 sprintf(tdb_file, "%s/debugfs-%s.e2undo", tdb_dir, dev_name); in debugfs_setup_tdb()
108 if ((unlink(tdb_file) < 0) && (errno != ENOENT)) { in debugfs_setup_tdb()
111 "while trying to delete %s", tdb_file); in debugfs_setup_tdb()
119 retval = set_undo_io_backup_file(tdb_file); in debugfs_setup_tdb()
124 " e2undo %s %s\n\n", tdb_file, device_name); in debugfs_setup_tdb()
126 free(tdb_file); in debugfs_setup_tdb()
129 free(tdb_file); in debugfs_setup_tdb()