Skip to contentSkip to conversation

ext4-new-features: modify ext4_get_inode_version.sh not know $EXT4_DEV definition

PATCH Superseded Zorro Lang 3 participants 8 messages Oct 13, 2014 – Oct 22, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Zorro Lang

author
#0 lore raw

PATCH 1/1 ext4-new-features: modify ext4_get_inode_version.sh not know $EXT4_DEV definition

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

 .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
 
 # main
 ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
 ext4_test_128_inode_version
 
Signature · 13 lines
1.9.3


------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi,

Quoted 4 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

Quoted 8 lines

---

Hi,

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 3 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Regards,
Xiaoguang Wang

Quoted 15 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

 .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
 1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
index ac8f021..2549088 100755

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 145

Quoted 8 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
@@ -138,6 +138,8 @@ test_inode_version()
 
 # main
 ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
 ext4_test_128_inode_version
 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#2 lore raw
Quoted 11 lines · Xiaoguang Wang

Hi,

Quoted 8 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

Quoted 8 lines
Quoted 4 lines

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Hi xiaoguang,

Do you mean patch likes below is better?

(quoted diff) +0 -0

b/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh index 0ae534a..b51e942 100755

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
@@ -45,7 +45,7 @@ ext4_setup()
         if [ -z "$LTP_BIG_DEV" ];then
                 tst_brkm TCONF "tests need a big block device(5G-10G)"
         else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
         fi
 
         tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 18 lines

Regards,
Xiaoguang Wang

Quoted 14 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

  .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
  1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
 
Quoted 8 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 145

Quoted 8 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
  # main
  ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
  ext4_test_128_inode_version
 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#3 lore raw

Hi,

Quoted 16 lines · Zorro Lang
Quoted 15 lines · Xiaoguang Wang

Hi,

Quoted 12 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Quoted 7 lines
Quoted 4 lines

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Hi xiaoguang,

Do you mean patch likes below is better?

Yeah, it looks good to me.
I'm not a maintainer :)

Regards,
Xiaoguang Wang

Quoted 32 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
index 0ae534a..b51e942 100755
@@ -45,7 +45,7 @@ ext4_setup()
        if [ -z "$LTP_BIG_DEV" ];then
                tst_brkm TCONF "tests need a big block device(5G-10G)"
        else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
        fi
 
        tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 12 lines

Regards,
Xiaoguang Wang

Quoted 8 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

  .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
  1 file changed, 2 insertions(+)
Quoted 14 lines
Quoted 11 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 143

Quoted 11 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
    # main
  ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
    ext4_test_128_inode_version
 

.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author
#4 lore raw
Quoted 23 lines · Xiaoguang Wang

Hi,

Quoted 20 lines · Zorro Lang
Quoted 19 lines · Xiaoguang Wang

Hi,

Quoted 4 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

Quoted 8 lines

---

Hi,

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Quoted 8 lines
Quoted 3 lines

Hi xiaoguang,

Do you mean patch likes below is better?

Yeah, it looks good to me.
I'm not a maintainer :)

Regards,
Xiaoguang Wang

Oh, still thanks for you;)

But I still need the review from maintainer. Anyone can help?

Thank you,
Zorro Lang

Quoted 30 lines
Quoted 30 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
index 0ae534a..b51e942 100755
@@ -45,7 +45,7 @@ ext4_setup()
         if [ -z "$LTP_BIG_DEV" ];then
                 tst_brkm TCONF "tests need a big block device(5G-10G)"
         else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
         fi
 
         tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 11 lines

Regards,
Xiaoguang Wang

Quoted 8 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

   .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
   1 file changed, 2 insertions(+)
Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
index ac8f021..2549088 100755
Quoted 9 lines
Quoted 7 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 143

Quoted 7 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
@@ -138,6 +138,8 @@ test_inode_version()
     # main
   ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
     ext4_test_128_inode_version
 

.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Acked-by
#5 lore raw
In reply to Zorro Lang
Quoted 30 lines · Zorro Lang
Quoted 11 lines · Xiaoguang Wang

Hi,

Quoted 8 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

Quoted 8 lines
Quoted 4 lines

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Hi xiaoguang,

Do you mean patch likes below is better?

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
index 0ae534a..b51e942 100755

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh ext4_setup() · line 48

Quoted 5 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
@@ -45,7 +45,7 @@ ext4_setup()
         if [ -z "$LTP_BIG_DEV" ];then
                 tst_brkm TCONF "tests need a big block device(5G-10G)"
         else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
Quoted 32 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
         fi
 
         tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 23 lines

Regards,
Xiaoguang Wang

Quoted 19 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

  .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
  1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
 
  # main
  ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
Quoted 16 lines
Quoted 3 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 145

Quoted 3 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
  ext4_test_128_inode_version
 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

author Acked-by Wanlong Gao
#6 lore raw

Hi Wanlong Gao,

Thanks for your ACK. But I can't find this patch on upstream ltp repo until now. Should I re-send the acked patch to you?

Thank you,
Zorro Lang

----- 原始邮件 -----
发件人: "Wanlong Gao" <[email protected]>
收件人: "Zorro Lang" <[email protected]>
抄送: "Xiaoguang Wang" <[email protected]>, [email protected] 发送时间: 星期三, 2014年 10 月 15日 下午 4:12:11
主题: Re: [LTP] [PATCH] ext4-new-features: modify ext4_get_inode_version.sh not know $EXT4_DEV definition

Quoted 30 lines · Zorro Lang
Quoted 11 lines · Xiaoguang Wang

Hi,

Quoted 8 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

Quoted 8 lines
Quoted 4 lines

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Hi xiaoguang,

Do you mean patch likes below is better?

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
index 0ae534a..b51e942 100755

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh ext4_setup() · line 48

Quoted 5 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
@@ -45,7 +45,7 @@ ext4_setup()
         if [ -z "$LTP_BIG_DEV" ];then
                 tst_brkm TCONF "tests need a big block device(5G-10G)"
         else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
Quoted 32 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
         fi
 
         tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 23 lines

Regards,
Xiaoguang Wang

Quoted 19 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

  .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
  1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
 
  # main
  ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
Quoted 16 lines
Quoted 3 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 145

Quoted 3 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
  ext4_test_128_inode_version
 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#7 lore raw
Quoted 4 lines · Zirong Lang

Hi Wanlong Gao,

Thanks for your ACK. But I can't find this patch on upstream ltp repo until now. Should I re-send the acked patch to you?

Yeah, it's better to resend the patch to ML so that we can apply it easier, thank you for your work.

Thanks,
Wanlong Gao

Quoted 99 lines

Thank you,
Zorro Lang

----- 原始邮件 -----
发件人: "Wanlong Gao" <[email protected]>
收件人: "Zorro Lang" <[email protected]>
抄送: "Xiaoguang Wang" <[email protected]>, [email protected] 发送时间: 星期三, 2014年 10 月 15日 下午 4:12:11
主题: Re: [LTP] [PATCH] ext4-new-features: modify ext4_get_inode_version.sh not know $EXT4_DEV definition

Quoted 30 lines · Zorro Lang
Quoted 11 lines · Xiaoguang Wang

Hi,

Quoted 8 lines · Zorro Lang

ext4_get_inode_version.sh use $EXT4_DEV, but it really doesn't know what is $EXT4_DEV. That cause other cases which use ext4_get_inode_version.sh to fail.

---

Hi,

Quoted 8 lines
Quoted 4 lines

When I ran ext4-inode-version, I always hit TFAIL. But I can't reproduce the failure manually. Then I found ext4_inode_version_test.sh use ext4_get_inode_version.sh -> ext4_get_inode_version.sh use $EXT4_DEV ->
but ext4_get_inode_version.sh doesn't know what is $EXT4_DEV.

Yeah, this is a bug :)

Quoted 2 lines

About this patch, I export $EXT4_DEV in ext4_inode_version_test.sh, before it call ext4_get_inode_version.sh. But I think add the "export" in front of "EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh will be another method.

I think adding "export EXT4_DEV=$LTP_BIG_DEV" in ext4_funcs.sh would be better.

Hi xiaoguang,

Do you mean patch likes below is better?

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
index 0ae534a..b51e942 100755

testcases/kernel/fs/ext4-new-features/ext4_funcs.sh ext4_setup() · line 48

Quoted 5 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +1 -1
@@ -45,7 +45,7 @@ ext4_setup()
         if [ -z "$LTP_BIG_DEV" ];then
                 tst_brkm TCONF "tests need a big block device(5G-10G)"
         else
-               EXT4_DEV=$LTP_BIG_DEV
+               export EXT4_DEV=$LTP_BIG_DEV
Quoted 32 lines
testcases/kernel/fs/ext4-new-features/ext4_funcs.sh +0 -0
         fi
 
         tst_tmpdir

If you want to merge this patch, I will resend it as the better way.

Thank you,
Zorro Lang

Quoted 23 lines

Regards,
Xiaoguang Wang

Quoted 19 lines

Please review, and tell me which one do you think is better for LTP? Or you have a better one;)

Thank you,
Zorro Lang

  .../fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh  | 2 ++
  1 file changed, 2 insertions(+)
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +2 -0
index ac8f021..2549088 100755
@@ -138,6 +138,8 @@ test_inode_version()
 
  # main
  ext4_setup
+# export EXT4_DEV for ext4_get_inode_version.sh can know it
+export EXT4_DEV=$EXT4_DEV
 
Quoted 16 lines
Quoted 3 lines

testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh test_inode_version() · line 145

Quoted 3 lines
testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh +0 -0
  ext4_test_128_inode_version
 

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Quoted 2 lines

.

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list