Thank's Phil
I say that before because if you press ctrl+H in the ccpec_xxxxx routines, the
help answer has the 'zserver lib' label.
Best regards
Akis
RCM6700 , VBAT & FAT
Started by ●July 29, 2012
Reply by ●July 30, 20122012-07-30
Reply by ●September 25, 20122012-09-25
--- In r..., Phil D 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 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
>
> 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 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
Reply by ●September 25, 20122012-09-25
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 > wrote:
> **
> --- In r..., Phil D 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 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
>
>
>
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 > wrote:
> **
> --- In r..., Phil D 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 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
>
>
>