On Mon, 2008-08-04 at 13:52 +0900, Masatake YAMATO wrote:
> Hi, Subrata
> 
> You wrote:
> > 1) ftruncate64
> > Comments: We have ftruncate at *testcases/kernel/syscalls/ftruncate/*. But
> > this may not be doing the ftruncate64() test. You may need to include/port
> > ftruncate64 on similar lines to sendfile64 and fadvise64.
> 
> Here is the patch for ftruncate64.
> 
> Signed-off-by: Masatake YAMATO <[EMAIL PROTECTED]>

Thanks Yamato. This looks absolutely ok to me. Please see the results
below. The same has been merged.

1)  Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686
i386 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.

2) Linux 2.6.9-22.EL #1 SMP Mon Sep 19 17:52:20 EDT 2005 ppc64 ppc64
ppc64 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.

3) Linux 2.4.21-37.ELsmp #1 SMP Wed Sep 7 13:28:55 EDT 2005 i686 i686
i386 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.

4) Linux 2.6.18-91.el5 #1 SMP Tue Apr 22 17:48:59 EDT 2008 ppc64 ppc64
ppc64 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.


5) Linux 2.6.18-91.el5PAE #1 SMP Tue Apr 22 17:58:37 EDT 2008 i686
athlon i386 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.

6) Linux 2.6.25-gcov-nomodconfig-smp #1 SMP Thu Jun 12 06:29:27 EDT 2008
i686 i686 i386 GNU/Linux
BUILD=Pass,
INSTALL=Pass,
Run=Pass,

ftruncate01    1  PASS  :  Functionality of ftruncate() on testfile
successful
ftruncate02    1  PASS  :  Functionality of ftruncate(2) on testfile
successful
ftruncate03    1  PASS  :  Test Passed
ftruncate03    2  PASS  :  Test Passed
ftruncate03    3  PASS  :  Test Passed
ftruncate04    1  CONF  :  The filesystem where /tmp is mounted does not
support mandatory locks. Cannot run this test.


Regards--
Subrata

> 
> Index: runtest/syscalls
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/runtest/syscalls,v
> retrieving revision 1.202
> diff -c -r1.202 syscalls
> *** runtest/syscalls  26 Jul 2008 04:15:36 -0000      1.202
> --- runtest/syscalls  4 Aug 2008 04:40:44 -0000
> ***************
> *** 233,241 ****
> --- 233,245 ----
>   fsync03 fsync03
>   
>   ftruncate01 ftruncate01
> + ftruncate01_64 ftruncate01_64
>   ftruncate02 ftruncate02
> + ftruncate02_64 ftruncate02_64
>   ftruncate03 ftruncate03
> + ftruncate03_64 ftruncate03_64
>   ftruncate04 ftruncate04
> + ftruncate04_64 ftruncate04_64
>   
>   #futimesat test cases
>   futimesat01 futimesat01
> Index: testcases/kernel/syscalls/ftruncate/Makefile
> ===================================================================
> RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/ftruncate/Makefile,v
> retrieving revision 1.9
> diff -c -r1.9 Makefile
> *** testcases/kernel/syscalls/ftruncate/Makefile      20 May 2008 10:15:08 
> -0000      1.9
> --- testcases/kernel/syscalls/ftruncate/Makefile      4 Aug 2008 04:41:26 
> -0000
> ***************
> *** 19,26 ****
>   CFLAGS += -I../../../../include -Wall
>   LDLIBS += -L../../../../lib -lltp
>   
> ! SRCS    = $(wildcard *.c)
> ! TARGETS = $(patsubst %.c,%,$(SRCS))
>   
>   all: $(TARGETS)
>   
> --- 19,31 ----
>   CFLAGS += -I../../../../include -Wall
>   LDLIBS += -L../../../../lib -lltp
>   
> ! SRCS    = $(wildcard ftruncate[0-9][0-9].c)
> ! TARGETS = $(patsubst %.c,%,$(SRCS)) $(patsubst %.c,%_64,$(SRCS))
> ! 
> ! 
> ! %_64.c: %.c
> !     echo "#define _FILE_OFFSET_BITS 64" > $@
> !     cat  $< >> $@
>   
>   all: $(TARGETS)
>   
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to