Lines Matching defs:STASH
574 // Source blocks in stash only, no work to do.
612 // If the calculated hash for the whole stash doesn't match the stash id, print the SHA-1
630 // If the stash file doesn't exist, read the source blocks this stash contains and print the
634 LOG(ERROR) << "No stash saved for id: " << id;
638 LOG(INFO) << "print hash in hex for source blocks in missing stash: " << id;
642 LOG(ERROR) << "failed to read source blocks for stash: " << id;
680 // Does a best effort enumeration of stash files. Ignores possible non-file items in the stash
702 // Deletes the stash directory and all files in it. Assumes that it only
718 LOG(INFO) << "deleting stash " << base;
740 LOG(ERROR) << "failed to read source blocks in stash map.";
744 LOG(ERROR) << "failed to verify loaded source blocks in stash map.";
791 LOG(ERROR) << "failed to find source blocks number for stash " << id
811 LOG(ERROR) << "not enough space to write stash";
874 // Creates a directory for storing stash files and checks if the /cache partition
889 LOG(INFO) << "creating stash " << dirname;
905 ErrorAbort(state, kStashCreationFailure, "not enough space for stash (%zu needed)",
913 LOG(INFO) << "using existing stash " << dirname;
915 // If the directory already exists, calculate the space already allocated to stash files and check
916 // if there's enough for all required blocks. Delete any partially completed stash files first.
937 ErrorAbort(state, kStashCreationFailure, "not enough space for stash (%zu more needed)",
1027 // Each word is a an index into the stash table, a colon, and then a RangeSet describing where
1035 std::vector<uint8_t> stash;
1036 if (LoadStash(params, tokens[0], false, &stash, true) == -1) {
1039 LOG(ERROR) << "failed to load stash " << tokens[0];
1045 MoveRange(params.buffer, locs, stash);
1127 // If source and target blocks overlap, stash the source blocks so we can resume from possible
1136 LOG(ERROR) << "failed to stash overlapping source blocks";
1153 // from an interrupted command, so we don't know if the stash can safely be deleted after this
1211 LOG(ERROR) << "missing id and/or src range fields in stash command";
1217 // Stash file already exists and has expected contents. Do not read from source again, as the
1236 LOG(ERROR) << "failed to load source blocks for stash " << id;
1240 // In verify mode, we don't need to stash any blocks.
1256 LOG(ERROR) << "missing stash id in free command";
1614 // Stash directory should be different for each partition to avoid conflicts when updating
1759 // Third line is how many stash entries are needed simultaneously.
1760 LOG(INFO) << "maximum stash entries " << lines[2];
1765 ErrorAbort(state, kArgsParsingFailure, "unexpected maximum stash blocks [%s]",
1924 // Delete stash only after successfully completing the update, as it may contain blocks needed
1958 // Only delete the stash if the update cannot be resumed, or it's a verification run and we
1959 // created the stash.
1992 * stash <stash_id> <src_range>
1993 * - Load the given source range and stash the data in the given slot of the stash table.
1996 * - Free the given stash data.
2001 * The creator will guarantee that a given stash is loaded (with a stash command) before it's used
2011 * Commands that read data from the partition (i.e. move/bsdiff/imgdiff/stash) have one or more
2028 { Command::Type::STASH, PerformCommandStash },
2050 { Command::Type::STASH, PerformCommandStash },