On Tue, Jun 25, 2013 at 2:48 PM,  <[email protected]> wrote:
> Hi!
>> > There are certain testcases that needs a separate filesystem partition
>> > to play with, if you don't pass physical disk partition to the runtest
>> > script a loopback device is created, formatted and mounted.
>> >
>> >> 10240+0 records in
>> >> 10240+0 records out
>> >> 10240000 bytes (10 MB) copied, 0.260004 s, 39.4 MB/s
>> >> ^C
>> >>
>> >> root# dmesg | tail
>> >>
>> >> [   78.095907] EXT4-fs (loop1): VFS: Can't find ext4 filesystem <--- ???
>> >
>> > This simply looks like the 10MB image is not enough for the ext4 journal
>> > for some reason.
>> >
>> > Try following patch that increases the size to 100MB.
>> >
>> > diff --git a/runltp b/runltp
>> > index a8bf404..7955f44 100755
>> > --- a/runltp
>> > +++ b/runltp
>> > @@ -984,7 +984,7 @@ main()
>> >  create_block()
>> >  {
>> >      #create a block device with ext4 filesystem.
>> > -    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=10240 &>/dev/null
>> > +    dd if=/dev/zero of=${TMP}/test.img bs=1kB count=102400 &>/dev/null
>> >      if [ $? -ne 0 ]; then
>> >          echo "Failed to create loopback device image, please check disk 
>> > space and re-run"
>> >          return 1
>> > --
>>
>> Hmm, that did not help.
>
> What was the error message, same as previous?
>

Here we go.

...
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

FATAL: can't mount block device /dev/loop1.
mke2fs 1.42 (29-Nov-2011)
mkfs.ext4: Device size reported to be zero.  Invalid partition specified, or
        partition table wasn't reread after running fdisk, due to
        a modified partition being busy and in use.  You may need to reboot
        to re-read your partition table.

102400+0 records in
102400+0 records out
102400000 bytes (102 MB) copied, 0.542412 s, 189 MB/s
...

# dmesg | tail
...
[ 1179.820940] EXT4-fs (loop1): VFS: Can't find ext4 filesystem

- Sedat -


>> How much disc-space someone need on the partition where LTP resides
>> (where the tests are performed)?
>
> Not much, I do not know the precise number but about gigabyte should be
> enough (and far less when you omit aio and fs stress tests).
>
>> $ LANG=C LC_ALL=C df -T
>> Filesystem     Type     1K-blocks      Used Available Use% Mounted on
>> rootfs         rootfs    17753424  12825524   4003024  77% /
>> udev           devtmpfs   1960968         4   1960964   1% /dev
>> tmpfs          tmpfs       788020       888    787132   1% /run
>> /dev/sda2      fuseblk  465546236 107358584 358187652  24% /host
>> /dev/loop0     ext4      17753424  12825524   4003024  77% /
>> none           tmpfs         5120         0      5120   0% /run/lock
>> none           tmpfs      1970048       156   1969892   1% /run/shm
>>
>> Can I use a different partition where I have more disc-space available?
>
> LTP uses TMPDIR env variable for that (and defaults to /tmp/ when TMPDIR
> is not set).
>
> --
> Cyril Hrubis
> [email protected]

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to