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

Function deny

src/linux/cgroups.cpp:2892–2908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2890
2891
2892Try<Nothing> deny(
2893 const string& hierarchy,
2894 const string& cgroup,
2895 const Entry& entry)
2896{
2897 Try<Nothing> write = cgroups::write(
2898 hierarchy,
2899 cgroup,
2900 "devices.deny",
2901 stringify(entry));
2902
2903 if (write.isError()) {
2904 return Error("Failed to write to 'devices.deny': " + write.error());
2905 }
2906
2907 return Nothing();
2908}
2909
2910
2911} // namespace devices {

Callers 3

TEST_FFunction · 0.85
prepareMethod · 0.85
updateMethod · 0.85

Calls 6

NothingClass · 0.85
writeFunction · 0.70
stringifyFunction · 0.70
errorMethod · 0.65
ErrorFunction · 0.50
isErrorMethod · 0.45

Tested by 1

TEST_FFunction · 0.68