From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 907 invoked by alias); 2 Jul 2004 07:34:34 -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 699 invoked from network); 2 Jul 2004 07:34:31 -0000 Received: from unknown (HELO lorien.elatec.si) (193.77.58.106) by sourceware.org with SMTP; 2 Jul 2004 07:34:31 -0000 Received: from elatec.si (onix [10.0.0.253]) by lorien.elatec.si (8.11.6/8.11.6) with ESMTP id i627bVi06146; Fri, 2 Jul 2004 09:37:40 +0200 Message-ID: <40E51005.2080501@elatec.si> Date: Fri, 02 Jul 2004 07:34:00 -0000 From: Savin Zlobec User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: stephane.royo@europe-technologies.com CC: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: [ECOS] Re: CF disk/FAT16 problem X-SW-Source: 2004-07/txt/msg00018.txt.bz2 Stéphane Royo wrote: >Hello, > >I ported V85X CF disk package to another platform and I use eCos FAT16 file >system package. >But I have a small problem. For example when I call the mount function the >read boot record >fail because the starting block number where begins the reading is 0 but the >my boot record >begins at block number 32 for the first partition. To solve temporary this >problem I set an offset >according to the partition number when V85X CF disk lookup is called. >But I don't know if this patch is normal, if is there an another solution. > > The partition table should be read by the upper layer and all you need to do is to use the appropriate device name - like /dev/disk0/[1-4], [1-4] is the number of primary partition. >I would like to know if there is an another solution to flush the file >system cache to use the unmont ? > > fsync 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