From: "Theodore Ts'o" <tytso@mit.edu>
To: Eryu Guan <eguan@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] common: add support for the "local" file system type
Date: Mon, 26 Sep 2016 11:14:31 -0400 [thread overview]
Message-ID: <20160926151431.uhtny5tx3b436j4i@thunk.org> (raw)
In-Reply-To: <20160926132503.GJ27776@eguan.usersys.redhat.com>
On Mon, Sep 26, 2016 at 09:25:03PM +0800, Eryu Guan wrote:
> On Fri, Sep 23, 2016 at 04:05:26PM -0400, Theodore Ts'o wrote:
> > It is sometimes useful to be able to test the local file system
> > provided in a restricted execution environment (such as that which is
> > provided by Docker, for example) where it is not possible to mount and
> > unmount the file system under test.
>
> This looks useful to me. But I'm not sure what other people think.
>
> I tested this patch a bit (ran auto group), noticed some isuses.
>
> - Tests call _require_scratch_shutdown would shutdown your root fs, if
> $SCRATCH_MNT is on root fs and root fs is xfs. e.g. generic/044
> - Tests do freeze/unfreeze would freeze your root fs, e.g. generic/068
> - Tests fulfill $SCRATCH_DEV would eat all free space on root fs,
> because _scratch_mkfs_sized for "local" only checks for lower boundary
> but not upper boundary, some tests rely on the upper boundary too,
> e.g. generic/027
>
> There might be other issues I didn't notice, since I didn't manage to
> finish a "FSTYP=local ./check -g auto" run because of above issues.
Oops, I was testing on small test devices using ext4, so I didn't
notice these issues. I'll fix them up.
> > To support this test case, add support for a new file system type
> > called "local". The TEST_DEV and SCRATCH_DEV should be have a
> > non-block device format (e.g., local:/test or local:/scratch), and the
>
> It's probably good to have a new fstype, as how we test NFS and overlay.
> i.e. ./check -local, and do all the necessary checks as how we check NFS
> and overlay setups.
Even for NFS and overlayfs there are some tests we do where mounting
and remounting the file system (e.g., with the ro mount option)
probably does make sense. Although I do agree there are a large
number of the NFS mounts and umounts which are largely pointless.
I was implementing the local file systme type for situations where it
is simply *not* *possible* at all to mount and unmount the underlying
file system because it was operating inside a docker container where
even root didn't have access to modify the supplied file system.
(Yes, in some cases we could test the underlying file system, but not
all, and it is useful to have end-to-end tests.)
> > TEST_DIR and SCRATCH_MNT directories should be pre-existing
> > directories provided by the execution environment.
>
> Better to have these setups and requirements documented in README.
Agreed, I'll fix this in the next spin of the patch.
- Ted
next prev parent reply other threads:[~2016-09-26 15:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-23 20:05 [PATCH] common: add support for the "local" file system type Theodore Ts'o
2016-09-26 13:25 ` Eryu Guan
2016-09-26 15:14 ` Theodore Ts'o [this message]
2016-09-27 9:55 ` Eryu Guan
2016-09-29 0:01 ` Theodore Ts'o
2016-09-26 22:18 ` Dave Chinner
2016-09-28 23:57 ` Theodore Ts'o
2016-09-29 2:16 ` Dave Chinner
2016-09-29 3:56 ` Theodore Ts'o
2016-09-29 5:37 ` Dave Chinner
2016-09-29 13:05 ` Theodore Ts'o
2016-09-29 22:49 ` Dave Chinner
2016-09-30 3:43 ` Theodore Ts'o
2016-09-29 13:37 ` Eric Sandeen
2016-09-29 13:57 ` Eric Sandeen
-- strict thread matches above, loose matches on Subject: below --
2018-05-03 3:43 Theodore Y. Ts'o
2018-05-03 9:22 ` Amir Goldstein
2018-05-03 18:35 ` Theodore Y. Ts'o
2018-05-03 19:24 ` Amir Goldstein
2018-05-06 3:54 ` Eryu Guan
2018-05-12 8:42 ` Eryu Guan
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=20160926151431.uhtny5tx3b436j4i@thunk.org \
--to=tytso@mit.edu \
--cc=eguan@redhat.com \
--cc=fstests@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