From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1VeBtQ-0007WV-4F for ltp-list@lists.sourceforge.net; Wed, 06 Nov 2013 22:48:08 +0000 Received: from mx3-phx2.redhat.com ([209.132.183.24]) by sog-mx-2.v43.ch3.sourceforge.com with esmtp (Exim 4.76) id 1VeBtN-0004nA-Q5 for ltp-list@lists.sourceforge.net; Wed, 06 Nov 2013 22:48:07 +0000 Date: Wed, 6 Nov 2013 17:47:56 -0500 (EST) From: Jan Stancek Message-ID: <2139722103.23140441.1383778076485.JavaMail.root@redhat.com> In-Reply-To: <81212EE27BC298499DBD7CA069AAD071428CD96A5A@LGEVEXMBAPSVC2.LGE.NET> References: <81212EE27BC298499DBD7CA069AAD071428CD96A5A@LGEVEXMBAPSVC2.LGE.NET> MIME-Version: 1.0 Subject: Re: [LTP] [PATCH v2] BindMounts: fix to properly unmount during cleanup in fs_bind List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Siva Padhy Cc: ltp-list@lists.sourceforge.net ----- Original Message ----- > From: "Siva Padhy" > To: ltp-list@lists.sourceforge.net > Sent: Wednesday, 6 November, 2013 10:45:51 AM > Subject: [LTP] [PATCH v2] BindMounts: fix to properly unmount during cleanup in fs_bind > > While running fs_bound testcases, some test directory structure are mounted > using -rbind option. While exiting the testcase the umount is not properly > done, hence the below testcase are falling into TWARN. > > fs_bind/test02 > fs_bind/test38 > > The warning message is as below for respective testcases > TWARN : rbind/test02 did not properly clean up > "/tmp/ltp-XXXX9qdYqG/sandbox" > TWARN : rbind/test38 did not properly clean up > "/tmp/ltp-XXXX9qdYqG/sandbox" > > This patch unmount all the mounted/submounted parts of the filesystem > properly. > > Change-Id: Ica6d1799b89e933587c11c1755dff996ddbdf8c5 > Signed-off-by: Siva > --- > testcases/kernel/fs/fs_bind/rbind/test02 | 2 ++ > testcases/kernel/fs/fs_bind/rbind/test38 | 5 +++++ > 2 files changed, 7 insertions(+) > > diff --git a/testcases/kernel/fs/fs_bind/rbind/test02 > b/testcases/kernel/fs/fs_bind/rbind/test02 > index 3ab7b6c..eab9cdc 100755 > --- a/testcases/kernel/fs/fs_bind/rbind/test02 > +++ b/testcases/kernel/fs/fs_bind/rbind/test02 > @@ -76,8 +76,10 @@ trap '' ERR > { > umount parent1/child1/a > umount parent1/child1/b > + umount parent2/child2/b > umount parent1/child1 > umount parent1/child1 > + umount parent2/child2 > umount parent1/child1 > umount parent1/child1 > umount share1 Hi, This still leaves me with share1 mounted. The following umount sequence works for me (3.10 based kernel). Can you try if it fixes also your issue in test02? umount parent2/child2/b umount parent1/child1/a umount parent2/child2 umount share1 umount parent1/child1 umount parent1/child1 umount share1 umount parent2 umount parent1 Regards, Jan > diff --git a/testcases/kernel/fs/fs_bind/rbind/test38 > b/testcases/kernel/fs/fs_bind/rbind/test38 > index c9cf3e1..c944ce5 100755 > --- a/testcases/kernel/fs/fs_bind/rbind/test38 > +++ b/testcases/kernel/fs/fs_bind/rbind/test38 > @@ -77,6 +77,7 @@ trap '' ERR > { > umount share1/a > umount parent1/child1/b > + umount parent2/child1/b > umount parent2/child1/c > umount parent1/child1 > umount parent1/child1 > @@ -86,6 +87,10 @@ trap '' ERR > umount parent2 > umount share1 > umount share1 > + umount parent1 > + umount share2 > + umount parent2/child2 > + umount parent2 > > rm -rf parent* share* > cleanup > -- > 1.7.9.5 > > > ------------------------------------------------------------------------------ > November Webinars for C, C++, Fortran Developers > Accelerate application performance with scalable programming models. Explore > techniques for threading, error checking, porting, and tuning. Get the most > from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list > ------------------------------------------------------------------------------ November Webinars for C, C++, Fortran Developers Accelerate application performance with scalable programming models. Explore techniques for threading, error checking, porting, and tuning. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list