On Wed, 2008-06-04 at 12:17 +0400, Andrew Vagin wrote:
> Rishikesh K. Rajak пишет:
> > On Tue, 2008-06-03 at 20:39 +0530, Subrata Modak wrote:
> >
> >>
> >> Rishi,
> >>
> >> I did not see these tests fail on:
> >>     
> >
> > Is it something related to Distro releases? because as you can see i 
> > ran on RHEL 4 kernel.
> 
> + pushd /tmp/sandbox
> + TCID=move/test01
> + declare -r TST_COUNT
> + export LTPBIN PATH FS_BIND_ROOT ERR_MSG TCID TST_COUNT TST_TOTAL
> + /root/ltp-base-20080531/testcases/kernel/fs/fs_bind/move/test01
> move/test01    0  INFO  :  ***************TEST01***************
> move/test01    0  INFO  :  move: shared child to shared parent.
> move/test01    0  INFO  :  ************************************
> mkdir -p "dir"
> mount  --bind "dir" "dir"
> mount  --make-rshared "dir"
> mount: Invalid argument

The test script tried "mount --make-rshared" but that failed (see below
for why). Then it fell back to using smount, built from smount.c in
testcases/kernel/fs/fs_bind/bin, which also failed:

> smount dir rshared
> move/test01    0  WARN  :  move/test01: caught error near: 
> /root/ltp-base-20080531/testcases/kernel/fs/fs_bind/move/test01::63: 
> (returned 1)
> move/test01    1  FAIL  :  move/test01: FAILED: move: shared child to 
> shared parent.
> + local rc=1
> + TCID=/root/ltp-base-20080531/testscripts/test_fs_bind.sh
> + popd
> 
> call attention on the option --make-rshared, it't  appeared since 2.6.15 
> according with "mount" man page.

Andrew, thanks for this output as it really shows almost exactly what
and where the problem(s) are.

        Rishi, the kernel you are using is too old and does not support
--make-* flags (RHEL 4, 2.6.9-70.ELsmp). Nor, I expect, does the
distro's mount command. While the fs_bind testcases have a fallback for
the latter, they can't change the kernel version.

        testscripts/test_fs_bind.sh _should_ have tested the kernel version and
exited without running the testxx scripts. Andrew, do you happen to have
an earlier section of output covering to test_prereqs invokation in the
test_fs_bind.sh script? If not, the output results should indicate the
results of tst_kvercmp as shown by this snippet from the script:

  149   tst_kvercmp 2 6 15
  150   X=$?
  151   if [ $X -lt 0 ]; then
  152           tst_brkm TBROK "$0: failed to get the running kernel version"
  153           exit 1
  154   elif [ $X -lt 1 ]; then
  155           tst_resm TWARN "$0: the remaining tests require 2.6.15 or later"
  156           tst_exit 0
  157   else
  158           tst_resm TINFO "$0: kernel >= 2.6.15 detected -- continuing"
  159   fi

($0 should be /root/ltp-base-20080531/testscripts/test_fs_bind.sh)

Andrew, can you tell me which of those strings are present in the
output?

I'll work on a patch adding kernel version comparison to each testcase
as that will help folks who want to run the individual testxx scripts.

        In the meantime, only basic --bind and --move mounts are expected to
work on that kernel; none of the --make-* mount options used in the
testxx scripts will work. For those to work you will need a new kernel
and, outside of these test scripts, an updated mount command.

Cheers,
        -Matt Helsley


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to