Home | History | Annotate | Download | only in block

Lines Matching refs:commit

1348  * 5. commit the contents of the files
1373 commit_t* commit = array_get(&(s->commits), i);
1374 assert(commit->path || commit->action == ACTION_WRITEOUT);
1375 if (commit->action != ACTION_WRITEOUT) {
1376 assert(commit->path);
1377 free(commit->path);
1379 assert(commit->path == NULL);
1387 commit_t* commit = array_get_next(&(s->commits));
1388 commit->path = new_path;
1389 commit->param.rename.cluster = cluster;
1390 commit->action = ACTION_RENAME;
1396 commit_t* commit = array_get_next(&(s->commits));
1397 commit->path = NULL;
1398 commit->param.writeout.dir_index = dir_index;
1399 commit->param.writeout.modified_offset = modified_offset;
1400 commit->action = ACTION_WRITEOUT;
1406 commit_t* commit = array_get_next(&(s->commits));
1407 commit->path = path;
1408 commit->param.new_file.first_cluster = first_cluster;
1409 commit->action = ACTION_NEW_FILE;
1414 commit_t* commit = array_get_next(&(s->commits));
1415 commit->path = path;
1416 commit->param.mkdir.cluster = cluster;
1417 commit->action = ACTION_MKDIR;
1570 * driver refuses to commit.
2210 /* commit one file (adjust contents, adjust mapping),
2351 commit_t* commit = array_get(&(s->commits), i);
2352 fprintf(stderr, "%d, %s (%d, %d)\n", i, commit->path ? commit->path : "(null)", commit->param.rename.cluster, commit->action);
2357 commit_t* commit = array_get(&(s->commits), i);
2358 if (commit->action == ACTION_RENAME) {
2360 commit->param.rename.cluster);
2363 assert(commit->path);
2364 mapping->path = commit->path;
2405 } else if (commit->action == ACTION_MKDIR) {
2410 if (mkdir(commit->path))
2413 if (mkdir(commit->path, 0755))
2417 mapping = insert_mapping(s, commit->param.mkdir.cluster,
2418 commit->param.mkdir.cluster + 1);
2424 mapping->path = commit->path;
2431 parent_path_len = strlen(commit->path)
2432 - strlen(get_basename(commit->path)) - 1;
2462 commit_t* commit = array_get(&(s->commits), i);
2463 switch(commit->action) {
2472 commit->param.writeout.dir_index);
2479 assert(commit->path == NULL);
2481 if (commit_one_file(s, commit->param.writeout.dir_index,
2482 commit->param.writeout.modified_offset))
2488 int begin = commit->param.new_file.first_cluster;
2514 assert(commit->path);
2515 mapping->path = commit->path;
2730 * Use qcow backend. Commit later.