Re: Re: RCM6700 , VBAT & FAT

Phil D <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <CAL8BBoPiToE5K7HAhOnXVDPuL9oe3sCfeyVVQkDieUWCOUM3ag@mail.gmail.com>
There's a http_idle(void) but not sure if a similar function exists for
ftp. I don't use the ftp functions in any of my systems so not really
played with it, so i cant be much help

Sorry

Phil

On 25 September 2012 08:34, flanderso11 <anders.roslund-uatLPfZoX+lvmJmQz4FtxtAWLNoT+7d/@public.gmane.orgm
> wrote:

> **
>
>
>
>
> --- In [email protected], Phil D <phil.dyke@...> wrote:
> >
> > After writing to FAT I perform;
> >
> > for (i = 0; i < num_fat_devices * FAT_MAX_PARTITIONS;i +=
> > FAT_MAX_PARTITIONS) {
> > if (fat_part_mounted[i]) {
> > fat_UnmountDevice(fat_part_mounted[i]->dev);
> > }
> > } rc = sspec_automount(SSPEC_MOUNT_ANY, NULL, NULL, NULL);
> >
> > to dismount and remount partitions this works for me through power cycles
> > without VBAT connected.
> >
> > I'm using sspec_write function to write to flash i don't know if that
> makes
> > a difference
> >
> > Regards
> >
> > Phil
> >
> >
> > On 29 July 2012 23:40, Theodore Politis <akisppoli@...> wrote:
> >
> > > **
>
> > >
> > >
> > > Thank's Phil for your immediate answer
> > > When I mount and dismount the file system (with automount) or when
> format
> > > the device and after mounting the device the symptoms are the same.
> > > There is a #define to tell to compiler to storte the fat table in
> another
> > > location ?
> > > Akis
> > >
> > >
> > >
> > >
> >
>
> Hi Phil
>
> Dismounting and remounting the filesystem after every sspec_write() is a
> good solution but if I am running a FTP server simultaneously the
> dismounting will interrupt any ongoing file transfer. Before dismounting I
> would like to check if there is any file being transfered and wait with the
> mounting process until the transfer is complete.
>
> Is there any way to check if there has been any activity on the FTP server
> during the ftp_tick() so I can safely dismount the filesystem without
> losing data?
>
> BR,
> Flanders
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.