Test case gf18 will be failed because the file size exceeds the allowed
maximum value in ext2/ext3 file system, this is checked in growfiles.c
but it
is incorrect, curr_size isn't the file size of current file.

The original output of this case is:
# ./growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2
-f Lgf04_
growfiles(gf18): growfiles.c/1927: lseek(fd, 4600, SEEK_END) failed:
Value too large for defined data type
growfiles(gf18): 28502 growfiles.c/1663: 857234 Hit max errors value of 1
gf18 1 FAIL : Test failed

after applying this fix patch, the output is:

# ./growfiles -W gf18 -b -e 1 -i 0 -L 120 -w -u -r 10-5000 -I r -l -S 2
-f Lgf04_
gf18 1 PASS : Test passed
--- ltp-full-20071031/testcases/kernel/fs/doio/growfiles.c 2007-11-02
16:34:56.000000000 +0800
+++ ltp-full-20071031-new/testcases/kernel/fs/doio/growfiles.c
2007-11-07 23:11:01.000000000 +0800
@@ -1400,6 +1400,7 @@ no whole file checking will be performed
*/

/* BUG:14136 (don't go past ext2's filesize limit) */
+ curr_size = file_size(fd);
if (curr_size+grow_incr>=ext2_limit) {
lkfile(fd, LOCK_UN, LKLVL1); /* release lock */
close(fd);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to