MCPcopy Create free account
hub / github.com/apache/mesos / isPersistentVolume

Method isPersistentVolume

src/common/resources.cpp:1156–1162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154
1155
1156bool Resources::isPersistentVolume(const Resource& resource)
1157{
1158 CHECK(!resource.has_role()) << resource;
1159 CHECK(!resource.has_reservation()) << resource;
1160
1161 return resource.has_disk() && resource.disk().has_persistence();
1162}
1163
1164
1165bool Resources::isDisk(

Callers

nothing calls this directly

Calls 1

diskMethod · 0.45

Tested by

no test coverage detected