int xenLinuxDomainBlockStats (xenUnifiedPrivatePtr priv, virDomainPtr dom, const char *path, struct _virDomainBlockStats *stats) { int device = xenLinuxDomainDeviceID(dom->conn, dom->id, path); if (device < 0) return -1; return read_bd_stats (dom->conn, priv, device, dom->id, stats); }
int xenLinuxDomainBlockStats(xenUnifiedPrivatePtr priv, virDomainDefPtr def, const char *path, virDomainBlockStatsPtr stats) { int device = xenLinuxDomainDeviceID(def->id, path); if (device < 0) return -1; return read_bd_stats(priv, device, def->id, stats); }