| 1250 | |
| 1251 | |
| 1252 | void VolumeManagerProcess::garbageCollectMountPath(const string& volumeId) |
| 1253 | { |
| 1254 | CHECK(!volumes.contains(volumeId)); |
| 1255 | |
| 1256 | const string path = paths::getMountPath(mountRootDir, volumeId); |
| 1257 | if (os::exists(path)) { |
| 1258 | Try<Nothing> rmdir = os::rmdir(path); |
| 1259 | if (rmdir.isError()) { |
| 1260 | LOG(ERROR) << "Failed to remove directory '" << path |
| 1261 | << "': " << rmdir.error(); |
| 1262 | } |
| 1263 | } |
| 1264 | } |
| 1265 | |
| 1266 | |
| 1267 | void VolumeManagerProcess::removeVolume(const string& volumeId) |