Re: RCM6700 , VBAT & FAT
"flanderso11" <anders.roslund-uatLPfZoX+lvmJmQz4FtxlaTQe2KTcn/@public.gmane.org>
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
--- 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