xfs
[Top] [All Lists]

Bug#695640: xfs_quota: cannot find mount point for path: Success

To: Brian May <brian@xxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Bug#695640: xfs_quota: cannot find mount point for path: Success
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Wed, 20 Mar 2013 22:09:35 +1100
Cc: 695640@xxxxxxxxxxxxxxx, Ben Myers <bpm@xxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <CAA0ZO6AxFzinTv_COhK6GqnRpSiYW95otznKvYKiWZB5+=CyBg@xxxxxxxxxxxxxx>
References: <CAA0ZO6APzwQCX=yf=qq8NkmjwDHVsgRBNCgN3KNW3RLgAWB=8A@xxxxxxxxxxxxxx> <20121211223700.GA27055@xxxxxxx> <CAA0ZO6BOUXTMpdrR-r=__-ZaAM6X39h2SisYXLfTTraTcttr+g@xxxxxxxxxxxxxx> <20121211231533.GG16353@dastard> <CAA0ZO6BvLQGt_9G-FSi+ZMCzJh_kmb1z2bdoPPwaVMVVK1UXJw@xxxxxxxxxxxxxx> <CAA0ZO6BGqvBdXRr9U4BagQYGa=_kC2VUgtOj+qPB5HEX2U8O7w@xxxxxxxxxxxxxx> <20130318224814.GP6369@dastard> <CAA0ZO6BVwPP9McKA=vn1+21gHpRCQP9P963nsSjY_zXHWeszrg@xxxxxxxxxxxxxx> <20130319063104.GA6369@dastard> <CAA0ZO6AxFzinTv_COhK6GqnRpSiYW95otznKvYKiWZB5+=CyBg@xxxxxxxxxxxxxx>
Reply-to: Dave Chinner <david@xxxxxxxxxxxxx>, 695640@xxxxxxxxxxxxxxx
Resent-cc: XFS Development Team <xfs@xxxxxxxxxxx>
Resent-date: Wed, 20 Mar 2013 11:15:04 +0000
Resent-from: Dave Chinner <david@xxxxxxxxxxxxx>
Resent-message-id: <handler.695640.B695640.13637778069436@xxxxxxxxxxxxxxx>
Resent-sender: Debian BTS <debbugs@xxxxxxxxxxxxxxxxxxxx>
Resent-to: debian-bugs-dist@xxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.21 (2010-09-15)
On Wed, Mar 20, 2013 at 04:19:16PM +1100, Brian May wrote:
> On 19 March 2013 17:31, Dave Chinner <david@xxxxxxxxxxxxx> wrote:
> 
> > Which tells me exactly what is happening.
> >
> > The project quotas are not on the filesystem you directed the the
> > quota command at, and xfs_quota is telling you that it can't find
> > the mount point for the configured project quotas on /home. Either:
> >
> 
> Hello,
> 
> Thanks for your response.
> 
> I am kind of confused still. I asked for user quotas, with the -u flag. Why
> should it be trying to lookup project quotas?

Because the quota command does mount point and project quota
initialisation (i.e. global state) before it parses any specific
command.

> I only want to get the report of user quotas. I only want to get the report
> for one filesystem. A filesystem that
> doesn't support project quotas, which should be fine because I am not
> asking for project quotas.

The issues project quota configuration is global information, and
the initialisation code is not aware of the fact that:

        a) you are not asking for project quota information; and
        b) you are not asking for information about a mount point
           that doesn't have any project quotas on it.

> > # xfs_quota  -x -c "quota -N -u brian"
> 
> This prints the quota information 20 times. Huh?

How many mount points do you have? 20?

> > or
> >
> > # xfs_quota  -x -c "quota -N -u brian" /home /share
> >
> 
> This prints the quota information 2 times. Huh?

The command has once for each of the mount points, and the command
itself iterates mount points because you haven't given it a mount
point to look at. So, double iteration.  This same problem was fixed
for the report command by setting it to be a global command i.e. the
fix I mentioned previously that you tested should prevent this
second case, and maybe even the first.

There are several layers of interactions here, and that's why I need
to have a think about it to understand it fully and fix it....

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>