1. 05 4月, 2018 2 次提交
    • M
      qemu_cgroup: Handle device mapper targets properly · 6dd84f68
      Michal Privoznik 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1557769
      
      Problem with device mapper targets is that there can be several
      other devices 'hidden' behind them. For instance, /dev/dm-1 can
      consist of /dev/sda, /dev/sdb and /dev/sdc. Therefore, when
      setting up devices CGroup and namespaces we have to take this
      into account.
      
      This bug was exposed after Linux kernel was fixed. Initially,
      kernel used different functions for getting block device in
      open() and ioctl(). While CGroup permissions were checked in the
      former case, due to a bug in kernel they were not checked in the
      latter case. This changed with the upstream commit of
      519049afead4f7c3e6446028c41e99fde958cc04 (v4.16-rc5~11^2~4).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6dd84f68
    • M
      util: Introduce virDevMapperGetTargets · fd9d1e68
      Michal Privoznik 提交于
      This helper fetches dependencies for given device mapper target.
      
      At the same time, we need to provide a dummy log function because
      by default libdevmapper prints out error messages to stderr which
      we need to suppress.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      fd9d1e68
  2. 04 4月, 2018 5 次提交
  3. 03 4月, 2018 29 次提交
  4. 02 4月, 2018 3 次提交
  5. 01 4月, 2018 1 次提交