Home
last modified time | relevance | path

Searched refs:scratch_device (Results 1 – 3 of 3) sorted by relevance

/system/core/fs_mgr/
Dfs_mgr_overlayfs_control.cpp383 bool MakeScratchFilesystem(const std::string& scratch_device) { in MakeScratchFilesystem() argument
403 command += " " + scratch_device + " >/dev/null 2>/dev/null </dev/null"; in MakeScratchFilesystem()
404 fs_mgr_set_blk_ro(scratch_device, false); in MakeScratchFilesystem()
407 LERROR << "make " << fs_type << " filesystem on " << scratch_device << " return=" << ret; in MakeScratchFilesystem()
432 static bool CreateDynamicScratch(std::string* scratch_device, bool* partition_exists) { in CreateDynamicScratch() argument
502 if (!CreateLogicalPartition(params, scratch_device)) { in CreateDynamicScratch()
505 } else if (scratch_device->empty()) { in CreateDynamicScratch()
506 *scratch_device = GetBootScratchDevice(); in CreateDynamicScratch()
534 static bool CreateScratchOnData(std::string* scratch_device, bool* partition_exists) { in CreateScratchOnData() argument
543 if (images->GetMappedImageDevice(partition_name, scratch_device)) { in CreateScratchOnData()
[all …]
Dfs_mgr_overlayfs_mount.cpp687 auto scratch_device = GetBootScratchDevice(); in TryMountScratch() local
688 if (access(scratch_device.c_str(), R_OK | W_OK)) { in TryMountScratch()
691 if (!WaitForFile(scratch_device, 10s)) { in TryMountScratch()
694 if (!MountScratch(scratch_device, true /* readonly */)) { in TryMountScratch()
701 MountScratch(scratch_device); in TryMountScratch()
/system/core/fs_mgr/tests/
Dadb-remount-test.sh1269 scratch_device=$(echo "${M}" | awk '{ print $1 }')
1271 scratch_size=$(adb_sh df -k "${scratch_device}" </dev/null |
1273 [ -z "${scratch_size}" ] && die "cannot get size of scratch device (${scratch_device})"
1295 …LOG INFO "scratch device ${scratch_device} filesystem ${scratch_filesystem} size ${scratch_size}Ki…