Sync Framework and EFS RRS feed

  • Question

  • I have built a command-line application that uses MSF (2.0 beta) to copy files from a machine's local disk to remote machines.  The remote machines' drives are EFS-encrypted.  Over time, the filesync.metadata files on the remote machines grow huge (sometimes 50-100MB+), and copy time degrades. 

    Is this expected behavior from MSF? 

    What is the problem:  Is it a known fact that EFS does not play nicely with the metadata requirements of MSF? 

    Thanks for any info.


    Wednesday, August 25, 2010 4:37 PM

All replies

  • have you tried cleaning up the metadata file using CleanupDeletedItems?
    Thursday, August 26, 2010 1:24 AM
  • Hi - There is no specific code to handle EFS so this should stay symmetrical with other disks. When you say the .metadata file gropus - do you mean it is growing w/o actually adding nay new files that are being added to the local disk? It is expected that this metadata file will grow as new files are added - it should stay stable otherwise.



    Deepa ( Microsoft Sync Framework)
    Thursday, August 26, 2010 1:25 AM
  • I will search for documentation for that method and try that. 
    Friday, August 27, 2010 2:04 PM
  • I am continually adding and deleting files to the local (source) directory, but the total number of files and total size of the files is staying about constant.  Over time, the filesync.metadata file is growing.

    Friday, August 27, 2010 2:08 PM
  • Hi -

    This is expected behaviour. You could look into using CleanupDeletedItems but this is not something supported with the FileSyncProvider - you would also need to write code to be able to use this at the API level.



    Deepa ( Microsoft Sync Framework)
    Thursday, September 2, 2010 11:30 PM
  • CleanupDeletedItems is a metadata store API.  The metastore is a component that File Sync Provider used to do metadata tracking, to record file creation, file update and file delete.  By using this API, it is going to remove some metadata marked as Tombstone.  As a result, the filesync.metadata size should become smaller after the cleanup.

    But before you invoke ReplicaMetadata.CleanupDeletedItems to clean up the metadata store, please make all replica endpoint are all sync-ed. 


    Leo Zhou ------ This posting is provided "AS IS" with no warranties, and confers no rights.
    Friday, September 3, 2010 5:22 AM