All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>
Cc: fstests@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-xfs@vger.kernel.org
Subject: Re: [PATCH V2 0/3] fstests: fixes for 64k pages and dax
Date: Fri, 21 Feb 2020 15:11:11 -0500	[thread overview]
Message-ID: <x494kvj3dls.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20200220212100.GC9506@magnolia> (Darrick J. Wong's message of "Thu, 20 Feb 2020 13:21:00 -0800")

Hi, Darrick,

"Darrick J. Wong" <darrick.wong@oracle.com> writes:

>> One class of failures is tests that create a really small file system
>> size.  Some of those tests seem to require the very small size, but
>> others seem like they could live with a slightly bigger size that
>> would then fit the log (the typical failure is a mkfs failure due to
>> not enough blocks for the log).  For the former case, I'm tempted to
>> send patches to _notrun those tests, and for the latter, I'd like to
>> bump the file system sizes up.  300MB seems to be large enough to
>> accommodate the log.  Would folks be opposed to those approaches?
>
> Seems fine to me.  Do we have a helper function to compute (or maybe
> just format) the minimum supported filesystem size for the given
> MKFS_OPTIONS?

Not that I could find.  I'm not sure how you'd do that, even.

>> Another class of failure is tests that either hard-code a block size
>> to trigger a specific error case, or that test a multitude of block
>> sizes.  I'd like to send a patch to _notrun those tests if there is
>> a user-specified block size.  That will require parsing the MKFS_OPTIONS
>> based on the fs type, of course.  Is that something that seems
>> reasonable?
>
> I think it's fine to _notrun a test that requires a specific blocksize
> when when that blocksize is not supported by the system under test.

OK.

> The ones that cycle through a range of block sizes, not so much--I guess
> the question here is can we distinguish "test only this blocksize" vs
> "default to this block size"?  And do we want to?

Well, I'd like to prevent false test failures.  In this instance, the
block size is required in order for the system to function.  I'm
guessing this is a new and special kind of suck.  If we treat the
MKFS_OPTIONS as advisory, then there will be false positive failures.
If we treat MKFS_OPTIONS as mandatory, then there will be less test
coverage for a given set of options.  I think that's the preferrable
solution, but I'm probably too focused on this one use case.

-Jeff


      reply	other threads:[~2020-02-21 20:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20 20:06 [PATCH V2 0/3] fstests: fixes for 64k pages and dax Jeff Moyer
2020-02-20 20:06 ` [PATCH V2 1/3] dax/dm: disable testing on devices that don't support dax Jeff Moyer
2020-02-21  9:48   ` Zorro Lang
2020-02-23 15:07     ` Eryu Guan
2020-02-24  6:15       ` Zorro Lang
2020-02-20 20:06 ` [PATCH V2 2/3] t_mmap_collision: fix hard-coded page size Jeff Moyer
2020-02-21 13:53   ` Zorro Lang
2020-02-20 20:06 ` [PATCH V2 3/3] xfs/300: modify test to work on any fs block size Jeff Moyer
2020-02-22  5:31   ` Zorro Lang
2020-02-24 13:46     ` Jeff Moyer
2020-02-26  7:42       ` Zorro Lang
2020-02-20 21:21 ` [PATCH V2 0/3] fstests: fixes for 64k pages and dax Darrick J. Wong
2020-02-21 20:11   ` Jeff Moyer [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=x494kvj3dls.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --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 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.