Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Pierre Labastie <pierre.labastie@neuf.fr>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2] btrfs-progs: build system: Fix the test for EXT4_EPOCH_MASK
Date: Mon, 15 Mar 2021 16:24:02 +0100	[thread overview]
Message-ID: <20210315152402.GV7604@twin.jikos.cz> (raw)
In-Reply-To: <20210314184913.5689-1-pierre.labastie@neuf.fr>

On Sun, Mar 14, 2021 at 07:49:13PM +0100, Pierre Labastie wrote:
> After sending the first version of the patch, I realized that it
> was flawed, because of some formatting by the MUA. It took me
> some time to set up an MTA so that git send-email works. Now the
> patch should apply cleanly. Please remove the present paragraph by using
> git am -c. Apologies for the inconvenience(s).
> -- >8 --
> Commit b3df561fbf has introduced the ability to convert extended
> inode time precision on ext4, but this breaks builds on older distros,
> where ext4 does not have the nsec time precision.
> 
> Commit c615287cc tried to fix that by testing the availability of
> the EXT4_EPOCH_MASK macro, but the test is not complete.
> 
> This patch aims at fixing the macro test, and changes the
> name of the associated HAVE_ macro, since the logic is reverted.
> 
> This fixes #353 when ext4 has nsec time precision. Note that
> the test fails when ext4 does not have the nsec time precision.
> Maybe the test shouldn't be run in that case?

Good point. What's the way to find that out? We can create a sample
ext4 filesystem and do a runtime check or parse it out of debugfs dump
looking for the features. I think it's the 'extra_isize', that's what
manual page ext4 says and that the patch adding 64bit timestamp support
checks when reading the extended timestamps.

      parent reply	other threads:[~2021-03-15 15:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-11 21:55 Subject: [PATCH] btrfs-progs: Fix the test for EXT4_EPOCH_MASK Pierre Labastie
2021-03-14 18:49 ` [PATCH v2] btrfs-progs: build system: " Pierre Labastie
2021-03-15 14:53   ` David Sterba
2021-03-15 22:19     ` Pierre Labastie
2021-03-15 23:18       ` David Sterba
2021-03-15 15:24   ` David Sterba [this message]

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=20210315152402.GV7604@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=pierre.labastie@neuf.fr \
    /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