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

`quota` is not working on latest kernel if running command not from / on simfs

    Details

      Description

      `quota` is not working on latest kernel if running command not from /
      when CT created on simfs


      >Steps to Reproduce:
      vzctl enter 1234
      ```
      [root@test2 /]# useradd ttt

      [root@test2 /]# setquota -u ttt 100000000000000 100000000000000 100000000000000 100000000000000 -a

      [root@test2 /]#

      [root@test2 /]# quota ttt
      Disk quotas for user ttt (uid 500):
           Filesystem blocks quota limit grace files quota limit grace
                simfs 16 100000000000000 100000000000000 5 276447232 276447232

      [root@test2 /]# cd
      [root@test2 ~]# quota ttt
      quota: Cannot stat() mounted device simfs: No such file or directory

      [root@test2 ~]# su - root
      [root@test2 ~]# quota ttt
      quota: Cannot stat() mounted device simfs: No such file or directory
      [root@test2 ~]# cd /
      [root@test2 /]# quota ttt
      Disk quotas for user ttt (uid 500):
           Filesystem blocks quota limit grace files quota limit grace
                simfs 16 100000000000000 100000000000000 5 276447232 276447232

      >Expected results:
      this command should run from any folder, as it was earlier, for example for 2.6.32-042stab108.8

      >Host OS:

      2.6.32-042stab113.11

      >Guest OS:

      OS template does not matter (tested with latest ubuntu 14.04 and centos 6)
      CT should be on simfs
      Everething looks fine on ploop

      Same with setquota and repquota:

      # cd /some/path
      # repquota /
      repquota: Cannot stat() mounted device simfs: No such file or directory
      repquota: Cannot stat() mounted device simfs: No such file or directory
      repquota: Cannot stat() mounted device simfs: No such file or directory
      repquota: Mountpoint (or device) / not found or has no quota enabled.
      repquota: Not all specified mountpoints are using quota.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dim Dmitry Mishin
                Reporter:
                knutov Nick Knutov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: