Moving files from CF to SD in camera.

Started by Kharak, December 27, 2017, 10:30:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Kharak

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

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

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