History log of /external/ltp/testcases/kernel/fs/ftest/ftest02.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d5e70f571ec368f2ac5bb3c288b85aa956dad48c 02-Mar-2017 Steve Ellcey <sellcey@cavium.com> bin/ftest02: Fix negative lseek offset expression.

Cast the result of sizeof to (off_t) so that we have a signed value
before we negate it. Otherwise we will get the wrong value in cases
where sizeof returns a 32 bit unsigned type and off_t is a 64 bit
signed type. This problem shows up on x86_64 when compiling with
-mx32.

This fixes LTP issue #135.

Signed-off-by: Steve Ellcey <sellcey@caviumnetworks.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
208a402262758e4aa3762d8b9bd9436e00ff7ee3 26-Jun-2015 Maninder Singh <maninder1.s@samsung.com> kernel/fs: use ARRAY_SIZE

Signed-off-by: Maninder Singh <maninder1.s@samsung.com>
Reviewed-by: Akhilesh Kumar <akhilesh.k@samsung.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
aabb8340f63ed31afe995fd97795e542dc68b93c 04-Feb-2015 Cyril Hrubis <chrubis@suse.cz> Include usctest.h in test.h

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
526fdf8d8ea3b43b73de7cc25eb754f12702c8d2 04-Dec-2014 Cyril Hrubis <chrubis@suse.cz> Change tst_resm() followed by tst_exit() to tst_brkm()

Created with coccinelle patch:

@@
expression list L;
expression C != {TINFO, TPASS};
@@
- tst_resm
+ tst_brkm
(C,
+ NULL,
L);
- tst_exit();

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
354ebb48db8e66a853a58379a4808d5dcd1ceac3 07-Dec-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> cleanup code indent

Cleanup the code indent using:

find . -name *.c -exec Lindent {} \;

It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
4548c6cf9bcdd96d8303caa4130ab638b61f8a30 19-Oct-2012 Wanlong Gao <gaowanlong@cn.fujitsu.com> Update FSF address

find . -type f -exec sed -i 's/675 Mass Ave, Cambridge, MA 02139, USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;
find . -type f -exec sed -i 's/59 Temple Place, Suite 330, Boston, MA 02111-1307 USA/51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA/g' {} \;

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
ec6edca7aa42b6affd989ef91b5897f96795e40f 18-Oct-2012 Chris Dearman <chris@mips.com> Add missing newline at end of file

This is a scripted change done using the following command:

find . -type d -name .git -prune -o \
-type f \! -name \*\~ \! -name .\#\* \
\! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \
xargs -0 sed -i -e '$a\'

Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
1e6f5a673655551de5734ff31ef48cd63b604e6d 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Resolving all compile errors via a script

This may leave dupe calls to tst_exit in main, but those are easier
to deal (and much less) than no-compile scenarios.

As a side-effect, fix all trailing whitespace issues.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
7d716beeafc2d6bc13bdc56c3135e0d8d98b7dfb 19-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Fix testcases.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
2c28215423293e443469a07ae7011135d058b671 16-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Style and conformance changes.

1. Strip all leading space.
2. Move tst_exit() to main().
3. Remove tst_exit() from cleanup().
4. Remove cluebat comments.
5. Reduce some unnecessary whitespace.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
8fb1cdb0538640f295691929650408688537fb7f 29-Nov-2010 Garrett Cooper <yanegomi@gmail.com> More style cleanup.

Do a better job at detecting spurious leading and trailing whitespace in
branches and loop statements.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
7a73eab97ffec8b44079586a2cc74b28b52f9959 10-Nov-2010 Garrett Cooper <yanegomi@gmail.com> En masse cleanup part one.

1. Fix nwait so that it's a local variable and not a static variable, as
per bug # 3103118.
2. Whitespace fixes.
3. Some tst_resm + tst_exit -> tst_brkm fixes.
4. Other fun simplifications.

Will test, take a break, and repeat after these short messages.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
fde5772340983308ebf6ed707bcae78f9a71f2ba 17-Aug-2010 Garrett Cooper <yanegomi@gmail.com> Use MAXPATHLEN to avoid path truncation.

This patch modifies all tests in the ftest directory to use
MAXPATHLEN on all character arrays that store path/file names rather
than arbitrarily sized arrays. This corrects issues where there was
truncation happening when copying a path from one array to another if
the path was long enough. The ftest code may delete the tmp directory
instead of the tmp file due to truncation, and cause LTP to report a
failure/warning when the tmp directory disappears. We saw this in
ftest03,07 where it was trying to copy wdbuf[MAXPATHLEN] into fuss[40]
here:

sprintf(fuss, "%s/ftest03.%d", getcwd(wdbuf, sizeof( wdbuf)),
getpid());

and then attempting to delete the file but instead got the directory
here:

execl("/bin/rm", "rm", "-rf", fuss, NULL);

Signed-off-by: Henry Yei <hyei@mvista.com>
Acked-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
04f47a16e2a3c646d0b0b1e67ef14bf29342620d 18-Sep-2009 subrata_modak <subrata_modak> ftest cleanup II: this is ftest cleanup part II. Most of the functions that were copy & pasted again and again in every file are now in libftest library. Also ftest04, ftest05, ftest06, ftest07 and ftest08 are cleaned. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
f17ac84cca81829c4588e59b42495b8aea0fa362 07-Sep-2009 subrata_modak <subrata_modak> Formatting and ftest cleanup: This is first part of testcases/kernel/fs/ftest/ cleanup. It fixes printf like formatting in pidns20.c and growfiles.c as well as huge number of bugs and code formatting issues in ftest01.c ftest02.c and ftest03.c. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
bdbaec51a423e715c2b03ed9e497e9a1fba6103e 26-Feb-2009 subrata_modak <subrata_modak> Clean Trailing Tab: Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
4bb656a129f7507823e9e6d6b98b1a02fd80ef89 26-Feb-2009 subrata_modak <subrata_modak> Clear Trailing Whitespace. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
43337a3cf6f8809647cf9fc6c0054241f44b1fb1 26-Feb-2009 subrata_modak <subrata_modak> Fix return(0) to return 0. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
b83e699c6ed2b269752413f1516be8f0b9471206 19-Jan-2009 subrata_modak <subrata_modak> ftest02: size of 'name' buffer must be more than 3:: name will be passed to mkname function, which will copy to it temporary directory name. So let's it will be 128 as other buffers, passed to mkname. Signed-Off-By: Dmitry Guryanov <dguryanov@parallels.com>.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
af64a878a5f86f98675e1d00691f12f9fa57bd8f 15-Feb-2006 vapier <vapier> cut extraneous newlines from test output
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
e3180f26e1e6edb745f4abbc1bfb3f2d6b59b27a 15-Feb-2006 vapier <vapier> kill off unused strings msg1 and msg2
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
c398e4f250d1d651b76475897e1a5349371a02e2 15-Feb-2006 vapier <vapier> use errno.h instead of doing extern int errno
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
f81795e0876f9dd0d95b42aec99a9a5de04d883d 15-Feb-2006 vapier <vapier> remove duplicated errno.h includes and just include errno.h, not sys/errno.h
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
7fdd5140a541cba0961c35161e2fa43426dce653 07-Feb-2005 robbiew <robbiew> Applied patch from Marcus Meissner for SF bug #1114114.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c
24e30ab69eb6e1b128ea1eb2dc12df4066c2227e 07-Jan-2003 robbiew <robbiew> Added filesystem testsuite, ftest, ported by Airong Zhang.
/external/ltp/testcases/kernel/fs/ftest/ftest02.c