Author Topic: Moving files from CF to SD in camera.  (Read 319 times)

Kharak

  • Hero Member
  • *****
  • Posts: 792
Moving files from CF to SD in camera.
« on: December 27, 2017, 10:30:46 PM »
I got myself in the unfortunate situation that my cf card reader is busted.


When I move files to the SD card and if the card happens to become full during the transfer. What happens to the last file being transferred? Does it become corrupted?

I am moving files as i write this, but i am affraid to move too many at a time in case the SD card gets full. Its only 32 gb and the CF is 128.

Also what is the transfer speed? It seems awfully slow.
once you go raw you never go back

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 11475
  • 5D Mark Free
Re: Moving files from CF to SD in camera.
« Reply #1 on: December 27, 2017, 10:53:30 PM »
Here's what should happen:

https://bitbucket.org/hudson/magic-lantern/src/unified/modules/file_man/file_man.c?fileviewer=file-view-default#file_man.c-504 (FileMove)
https://bitbucket.org/hudson/magic-lantern/src/unified/src/fio-ml.c?fileviewer=file-view-default#fio-ml.c-614 (FIO_MoveFile)

In other words, files that could not be fully moved are not deleted from the source directory, incomplete files are not kept in the destination directory, and the file manager keeps trying other files if there's an error. It doesn't check the free space first (we don't know how), so it may waste some time with unsuccessful retries. However, I don't remember running an explicit test for these behaviors (good candidate for QEMU tests though).

The routines are not optimized for speed.

Kharak

  • Hero Member
  • *****
  • Posts: 792
Re: Moving files from CF to SD in camera.
« Reply #2 on: December 27, 2017, 11:24:58 PM »
Thank you, its reassuring to know they wont be deleted.

So i can select all mlv's and move them until card gets full and repeat.
once you go raw you never go back