All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: fstests@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>,
	y2038 Mailman List <y2038@lists.linaro.org>
Subject: Re: Obsolete test? (Was: Re: [PATCH v3] generic/390: Add tests for inode timestamp policy)
Date: Fri, 26 Apr 2019 13:30:52 +0200	[thread overview]
Message-ID: <20190426113052.GO20156@suse.cz> (raw)
In-Reply-To: <CABeXuvqjwNYL4yctJpywW7Ogjm0=yWU7aVrxC_Pu-ggQT+1-kQ@mail.gmail.com>

On Thu, Apr 25, 2019 at 02:23:55PM -0700, Deepa Dinamani wrote:
> > On Apr 25, 2019, at 10:44 AM, David Sterba <dsterba@suse.cz> wrote:
> >
> >> On Tue, Jan 03, 2017 at 07:51:11PM -0800, Deepa Dinamani wrote:
> >> The test helps to validate clamping and mount behaviors
> >> according to supported file system timestamp ranges.
> >>
> >> Note that the test can fail on 32-bit systems for a
> >> few file systems. This will be corrected when vfs is
> >> transitioned to use 64-bit timestamps.
> >>
> >> Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
> >> ---
> >> The branch of the kernel tree can be located at
> >>
> >> https://github.com/deepa-hub/vfs refs/heads/vfs_timestamp_policy
> >
> > It's 2019 and the functionality hasn't been merged to kernel, but maybe
> > there's a replacement I have missed.
> >
> >> +# timestamp ranges support.
> >> +_require_y2038()
> >> +{
> >> +    local device=${1:-$TEST_DEV}
> >> +    local sysfsdir=/proc/sys/fs/fs-timestamp-check-on
> >> +
> >> +    if [ ! -e $sysfsdir ]; then
> >> +        _notrun "no kernel support for y2038 sysfs switch"
> >> +    fi
> >
> > This will always fail, so either the kernel functionality gets merged or
> > the test dropped. Can you let us know the status? Thanks.
> 
> I’m posting a more comprehensive kernel series (~35 patches) for this
> in a week or so. This test was requested as a prerequisite to merge
> the series:
> https://lists.linaro.org/pipermail/y2038/2016-November/001981.html
> There have been 5 versions of patches posted since then. It has been a
> little difficult to get these reviewed.

Ok, understood.

> The series makes more sense now anyway as we finally have 64 bit
> timestamps for vfs.
> If the test is a precondition, then we should still keep it?

Yeah, in that case keep it. The kernel patches are on the way to
mainline and strftime("%Y") is still less then 2038. Thanks.

      reply	other threads:[~2019-04-26 11:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04  3:51 [PATCH v3] generic/390: Add tests for inode timestamp policy Deepa Dinamani
2019-04-25 17:44 ` Obsolete test? (Was: Re: [PATCH v3] generic/390: Add tests for inode timestamp policy) David Sterba
2019-04-25 21:23   ` Deepa Dinamani
2019-04-26 11:30     ` 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=20190426113052.GO20156@suse.cz \
    --to=dsterba@suse.cz \
    --cc=arnd@arndb.de \
    --cc=deepa.kernel@gmail.com \
    --cc=fstests@vger.kernel.org \
    --cc=y2038@lists.linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.