Cache the presence of machine1 service
After the system has been booted, it should not change. Cache the return value of virSystemdHasMachined. Allow starting and terminating machines with just one DBus call, instead of three, reducing the chance of the call timing out. Also introduce a small function for resetting the cache to be used in tests.
Showing
src/util/virsystemdpriv.h
0 → 100644
想要评论请 注册 或 登录