From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murphy Zhou Date: Thu, 16 May 2019 17:14:30 +0800 Subject: [LTP] [PATCH v2 2/2] OVL_MNT: put overlayfs lower, upper, work, mnt dir in a separated mountpoint In-Reply-To: <20190515133940.GB5429@dell5510> References: <20190503210005.GA18171@x230> <20190515092129.26336-1-xzhou@redhat.com> <20190515092129.26336-2-xzhou@redhat.com> <20190515133940.GB5429@dell5510> Message-ID: <20190516091430.g2ewjubhurdzlnz4@XZHOUW.usersys.redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it On Wed, May 15, 2019 at 03:39:40PM +0200, Petr Vorel wrote: > Hi Murphy, > > > --- a/testcases/kernel/syscalls/execveat/execveat03.c > ... > > - /* Setup an overlay mount with lower file */ > > - SAFE_MKDIR("lower", 0755); > > - SAFE_MKDIR("upper", 0755); > > - SAFE_MKDIR("work", 0755); > > - SAFE_MKDIR(OVL_MNT, 0755); > > - ret = mount("overlay", OVL_MNT, "overlay", 0, > > - "lowerdir=lower,upperdir=upper,workdir=work"); > > - if (ret < 0) { > > - if (errno == ENODEV) { > > - tst_brk(TCONF, > > - "overlayfs is not configured in this kernel."); > > - } > > - tst_brk(TBROK | TERRNO, "overlayfs mount failed"); > > - } > > - ovl_mounted = 1; > > + if (setup_overlay(1) == 0) > > + ovl_mounted = 1; > Here you change test behavior on ENODEV. Great catch! I missed this when copying setup_overlay from readahead02. inotify tests are different from this. Thanks! m > > + more info at 1st patch. > > Kind regards, > Petr