xfs
[Top] [All Lists]

Re: [PATCH v2] xfsprogs: add nftw64 translation for OS X

To: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>
Subject: Re: [PATCH v2] xfsprogs: add nftw64 translation for OS X
From: Jan Tulak <jtulak@xxxxxxxxxx>
Date: Wed, 2 Sep 2015 09:12:04 +0200
Cc: xfs-oss <xfs@xxxxxxxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <20150901163120.GA10397@xxxxxxxxxxxxxxxx>
References: <20150831185944.GI349@xxxxxxxxxxxxx> <1441094672-18368-1-git-send-email-jtulak@xxxxxxxxxx> <20150901163120.GA10397@xxxxxxxxxxxxxxxx>


On Tue, Sep 1, 2015 at 6:31 PM, Darrick J. Wong <darrick.wong@xxxxxxxxxx> wrote:
On Tue, Sep 01, 2015 at 10:04:32AM +0200, Jan Tulak wrote:
> UPDATE: changed to #define
>
> OS X has only nftw variant - not the 64 suffix used in xfs.
>
> Signed-off-by: Jan Tulak <jtulak@xxxxxxxxxx>
> ---
>Â include/darwin.h | 2 ++
>Â 1 file changed, 2 insertions(+)
>
> diff --git a/include/darwin.h b/include/darwin.h
> index 72d9c1d..f0f05b3 100644
> --- a/include/darwin.h
> +++ b/include/darwin.h
> @@ -157,6 +157,8 @@ typedef int64_t     Âxfs_daddr_t;
>
>Â #define HAVE_FIDÂ Â Â1
>
> +#define nftw64 nftw
> +

Sorry for chiming in late, but there's only one caller of nftw64 and several
callers of nftw; why not just change it to use nftw?

<shrug> There could be other reasons why xfs_estimate requires the -64
variant, but I don't know. :)

âGood idea. I'll run tests after the changeâ
Â
âand if nothing bad happens, I send
it here.
â
--
<Prev in Thread] Current Thread [Next in Thread>