From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7365 invoked by alias); 10 May 2005 06:50:11 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 7345 invoked from network); 10 May 2005 06:50:07 -0000 Received: from unknown (HELO lorien.ee.elatec.si) (193.77.58.106) by sourceware.org with SMTP; 10 May 2005 06:50:07 -0000 Received: from [192.168.0.3] (telperion.ee.elatec.si [192.168.0.3]) by lorien.ee.elatec.si (8.12.11/8.12.11) with ESMTP id j4A6iMjp029705; Tue, 10 May 2005 08:44:23 +0200 Message-ID: <4280594B.4070703@elatec.si> Date: Tue, 10 May 2005 10:51:00 -0000 From: Savin Zlobec User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) MIME-Version: 1.0 To: Gratian Crisan CC: ecos-discuss@ecos.sourceware.org References: <200505091228.04579.nelu@iv.ro> In-Reply-To: <200505091228.04579.nelu@iv.ro> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Status: Clean Subject: Re: [ECOS] fatfs lseek EOF bug X-SW-Source: 2005-05/txt/msg00136.txt.bz2 Gratian Crisan wrote: >Hi all, > >I think I've found a bug in the ecos FAT implementation for lseek function. >(fatfs_fo_lseek). >When calling the function like this 'lseek(fd, 0, SEEK_CUR)' to get the >current file position and the postion is right at the end of the file the fat >lseek function returns end of file error EEOF. I've looked at the other >filesystems from ecos and did a test in linux and the correct behavior seems >to be to return the current position of the end of file if the read/write >pointer is at the end of file (equal with the file size). >This bug occurs for example when creating a new file, writing some data in it >and calling lseek(fd, 0, SEEK_CUR) to get the current file position. > >Suggestions? > > Hi, I've tryed to reproduce the bug you described but without success. Are you using the latest CVS version of fatfs ? Can you send me an test case, so I can look into it ? savin -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss