| 1296 | |
| 1297 | |
| 1298 | void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId) |
| 1299 | { |
| 1300 | CHECK(!volumes.contains(volumeId)); |
| 1301 | |
| 1302 | const string path = paths::getMountPath(mountRootDir, volumeId); |
| 1303 | if (os::exists(path)) { |
| 1304 | Try<Nothing> rmdir = os::rmdir(path); |
| 1305 | if (rmdir.isError()) { |
| 1306 | LOG(ERROR) << "Failed to remove directory '" << path |
| 1307 | << "': " << rmdir.error(); |
| 1308 | } |
| 1309 | } |
| 1310 | } |
| 1311 | |
| 1312 | |
| 1313 | void VolumeManagerProcess::removeVolume(const string& volumeId) |