Uploaded image for project: 'OpenVZ'
  1. OpenVZ
  2. OVZ-7158

/proc/bc/resources misbehaving

    XMLWordPrintable

    Details

      Description

      >Description of problem:
      /proc/bc/resources not reporting end of file when reading line by line. Works properly upto and in vzkernel-3.10.0-957.12.2.vz7.96.21.x86_64. Fails in vzkernel-3.10.0-1062.4.2.vz7.116.7.x86_64.

      >How reproducible: always

      >Steps to Reproduce:
      1. q=;while read -r r;do echo "$((++q)) $r";done</proc/bc/resources|&less
      2.
      3.

      >Actual results:
      After reading all lines, continues rereading first line, never stops.

      >Expected results:
      stop at end

      >Host OS: 3.10.0-1062.4.2.vz7.116.7

      >Guest OS: n/a

      >Additional info (see https://openvz.org/Reporting_OpenVZ_problem):
      Above command works properly on 3.10.-957.12.2.vz7.96.21.
      "less /proc/bc/resources" works properly on both.

        Attachments

          Activity

            People

            Assignee:
            khorenko Konstantin Khorenko
            Reporter:
            gregrwm gregrwm
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 2 hours
                2d 2h