public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: Dave Chinner <david@fromorbit.com>,
	"Darrick J. Wong" <darrick.wong@oracle.com>
Cc: linux-xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] xfs_repair: check and repair quota metadata
Date: Mon, 7 May 2018 18:30:16 -0500	[thread overview]
Message-ID: <49a1ac19-a332-3a2f-af54-e6cd9b41eda1@redhat.com> (raw)
In-Reply-To: <20180507232837.GH23861@dastard>

On 5/7/18 6:28 PM, Dave Chinner wrote:
> On Mon, May 07, 2018 at 09:32:42AM -0700, Darrick J. Wong wrote:
>> On Mon, May 07, 2018 at 09:20:28AM -0500, Eric Sandeen wrote:

...

>>> diff --git a/libxfs/xfs_quota_defs.h b/libxfs/xfs_quota_defs.h
>>> index bb1b13a9..067475e2 100644
>>> --- a/libxfs/xfs_quota_defs.h
>>> +++ b/libxfs/xfs_quota_defs.h
>>> @@ -30,6 +30,8 @@
>>>  typedef uint64_t	xfs_qcnt_t;
>>>  typedef uint16_t	xfs_qwarncnt_t;
>>>  
>>> +#define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1
>>
>> Requires a kernel patch, right? :)
> 
> It's already defined in the kernel in fs/xfs/xfs_qm.h.
> 
> And userspace also defines it as a private define to allow libxfs to
> build:
> 
> $ git grep XFS_DQUOT_CLUSTER_SIZE_FSB
> libxfs/libxfs_priv.h:#define XFS_DQUOT_CLUSTER_SIZE_FSB (xfs_filblks_t)1
> libxfs/xfs_trans_resv.c:                        XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1);
> libxfs/xfs_trans_space.h:        XFS_DQUOT_CLUSTER_SIZE_FSB)
> $
> 
> If it's going to be used outside libxfs in userspace, then it should
> be lifted to a libxfs header file both in the kernel and userspace,
> such as fs/xfs/xfs_quota_defs.h....


Ok, which is what I did in the first place.  :)  Ok, so can change it
on the kernel side to keep up with this patch, then.

Thanks,
-Eric


  reply	other threads:[~2018-05-07 23:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-07 14:20 [PATCH] xfs_repair: check and repair quota metadata Eric Sandeen
2018-05-07 16:32 ` Darrick J. Wong
2018-05-07 16:44   ` Eric Sandeen
2018-05-07 16:59     ` Darrick J. Wong
2018-05-07 23:28   ` Dave Chinner
2018-05-07 23:30     ` Eric Sandeen [this message]
2018-05-07 23:43 ` [PATCH V2] " Eric Sandeen
2018-05-07 23:54   ` Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49a1ac19-a332-3a2f-af54-e6cd9b41eda1@redhat.com \
    --to=sandeen@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox