From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: Re: [PATCH 2/2] overlay: test copy up files from lower dir Date: Tue, 12 Jan 2016 07:31:35 +1100 Message-ID: <20160111203135.GA6033@dastard> References: <1452512301-22145-1-git-send-email-eguan@redhat.com> <1452512301-22145-2-git-send-email-eguan@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1452512301-22145-2-git-send-email-eguan@redhat.com> Sender: fstests-owner@vger.kernel.org To: Eryu Guan Cc: fstests@vger.kernel.org, linux-unionfs@vger.kernel.org List-Id: linux-unionfs@vger.kernel.org On Mon, Jan 11, 2016 at 07:38:21PM +0800, Eryu Guan wrote: > Test copy up files from lower dir that are <, =, > 4G in size. > > Kernel commit 0480334fa604 ("ovl: use O_LARGEFILE in ovl_copy_up()") > fixed bug when copying up large file(>4G) from lower dir. > > Signed-off-by: Eryu Guan > --- > tests/overlay/001 | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++ > tests/overlay/001.out | 2 ++ > tests/overlay/Makefile | 20 +++++++++++++ > tests/overlay/group | 6 ++++ > 4 files changed, 104 insertions(+) > create mode 100755 tests/overlay/001 > create mode 100644 tests/overlay/001.out > create mode 100644 tests/overlay/Makefile > create mode 100644 tests/overlay/group > > diff --git a/tests/overlay/001 b/tests/overlay/001 > new file mode 100755 > index 0000000..5025a69 > --- /dev/null > +++ b/tests/overlay/001 > @@ -0,0 +1,76 @@ > +#! /bin/bash > +# FS QA Test 002 002 != 001 ;) > +_scratch_mkfs > + > +# Create test files with different sizes in lower dir > +# $SCRATCH_DEV is actually a test dir used in overlay testing > +mkdir -p $SCRATCH_DEV/lower This needs to matchup with the overlay configuration. Perhaps there needs to be exported variables for this.... Cheers, Dave. -- Dave Chinner david@fromorbit.com