All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LTP] [PATCH] runltp: try to create ext3 loop device if creating ext4 failed
       [not found] <1373014297-30962-1-git-send-email-gaowanlong@cn.fujitsu.com>
@ 2013-07-08 11:25 ` chrubis
  0 siblings, 0 replies; only message in thread
From: chrubis @ 2013-07-08 11:25 UTC (permalink / raw)
  To: Wanlong Gao; +Cc: Garrett Cooper, LTP, Mike Frysinger

Hi!
> Try to create ext3 loop device if creating ext4 failed since
> some old system can't support ext4 file system or the root
> file system still use ext3 file system.
> 
> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
> ---
>  runltp | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/runltp b/runltp
> index 1309d0a..2c13b56 100755
> --- a/runltp
> +++ b/runltp
> @@ -1002,7 +1002,8 @@ create_block()
>                  return 1
>              else
>                  mkfs.ext4 $LOOP_DEV
> -                [ $? -ne 0 ] && (echo "creating a ext4 block device failed" && return 1)
> +                [ $? -ne 0 ] && (mkfs.ext3 $LOOP_DEV)
> +                [ $? -ne 0 ] && (echo "creating a ext4/3 block device failed" && return 1)
>                  #set the values in alltests which require block device.
>                  DEVICE=$LOOP_DEV
>                  DEVICE_FS_TYPE="ext4"
                         ^
Hmm, you should set the DEVICE_FS_TYPE accordingly too. I wonder if
leaving it set to ext4 will work, have you tested the change?

Otherwise I'm fine with the change.

-- 
Cyril Hrubis
chrubis@suse.cz

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

Build for Windows Store.

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-08 11:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1373014297-30962-1-git-send-email-gaowanlong@cn.fujitsu.com>
2013-07-08 11:25 ` [LTP] [PATCH] runltp: try to create ext3 loop device if creating ext4 failed chrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.