Lines Matching defs:stash
477 // Does a best effort enumeration of stash files. Ignores possible non-file
478 // items in the stash directory and continues despite of errors. Calls the
522 // Deletes the stash directory and all files in it. Assumes that it only
547 fprintf(stderr, "deleting stash %s\n", base.c_str());
570 fprintf(stderr, "failed to read source blocks in stash map.\n");
574 fprintf(stderr, "failed to verify loaded source blocks in stash map.\n");
643 fprintf(stderr, "not enough space to write stash\n");
711 // Creates a directory for storing stash files and checks if the /cache partition
720 // Stash directory should be different for each partition to avoid conflicts
736 fprintf(stderr, "creating stash %s\n", dirname.c_str());
746 ErrorAbort(state, kStashCreationFailure, "not enough space for stash\n");
753 fprintf(stderr, "using existing stash %s\n", dirname.c_str());
756 // stash files and check if there's enough for all required blocks. Delete any
757 // partially completed stash files first.
766 ErrorAbort(state, kStashCreationFailure, "not enough space for stash (%d more needed)\n",
779 fprintf(stderr, "missing id and/or src range fields in stash command\n");
786 // Stash file already exists and has expected contents. Do not
806 fprintf(stderr, "failed to load source blocks for stash %s\n", id.c_str());
917 // Each word is a an index into the stash table, a colon, and
926 std::vector<uint8_t> stash;
927 int res = LoadStash(params, stashbase, tokens[0], false, nullptr, stash, true);
932 fprintf(stderr, "failed to load stash %s\n", tokens[0].c_str());
939 MoveRange(buffer, locs, stash);
1000 // If source and target blocks overlap, stash the source blocks so we can
1010 fprintf(stderr, "failed to stash overlapping source blocks\n");
1029 // stash can safely be deleted after this command.
1097 fprintf(stderr, "missing stash id in free command\n");
1517 // Third line is how many stash entries are needed simultaneously
1518 fprintf(stderr, "maximum stash entries %s\n", lines[2].c_str());
1523 ErrorAbort(state, kArgsParsingFailure, "unexpected maximum stash blocks [%s]\n",
1602 // Delete stash only after successfully completing the update, as it
1618 // Only delete the stash if the update cannot be resumed, or it's
1619 // a verification run and we created the stash.
1656 // stash <stash_id> <src_range>
1657 // - (version 2+ only) load the given source range and stash
1658 // the data in the given slot of the stash table.
1661 // - (version 3+ only) free the given stash data.
1667 // In version 2, the creator will guarantee that a given stash is
1668 // loaded (with a stash command) before it's used in a
1682 // move/bsdiff/imgdiff/stash) have one or more additional hashes
1696 { "stash", PerformCommandStash },
1713 { "stash", PerformCommandStash },