1. 15 3月, 2018 2 次提交
    • M
      daemonStreamHandleWriteData: Preserve error when aborting stream · 92a5d121
      Michal Privoznik 提交于
      The daemonStreamHandleWriteData() function is called whenever
      server side of stream is able to receive some data. Nevertheless,
      it calls virStreamSend() (to pass data down to virFDStream) and
      depending on its return value it may abort the stream. However,
      the functions it called when doing so are public APIs and as such
      reset any error set previously. Therefore, if there was any error
      in writing data to stream (i.e. repored in virStreamSend) it is
      reset before virNetServerProgramSendReplyError() can get to it.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NAndrea Bolognani <abologna@redhat.com>
      92a5d121
    • M
      virsysinfo: Use more virSkipSpacesBackwards() · bc01d903
      Michal Privoznik 提交于
      Some fields reported by dmidecode have plenty of useless spaces
      (in fact some have nothing but spaces). To deal with this we have
      introduced virSkipSpacesBackwards() and use it in
      virSysinfoParseX86Processor() and virSysinfoParseX86Memory().
      However, other functions (e.g. virSysinfoParseX86Chassis()) don't
      use it at all and thus we are reporting nonsense:
      
        <sysinfo type='smbios'>
          <chassis>
            <entry name='manufacturer'>FUJITSU</entry>
            <entry name='version'>                      </entry>
            <entry name='serial'>                </entry>
            <entry name='asset'>                                        </entry>
            <entry name='sku'>Default string</entry>
          </chassis>
        </sysinfo>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      bc01d903
  2. 14 3月, 2018 17 次提交
  3. 13 3月, 2018 21 次提交