# No delta sync while updating metadata of FLAC files

**URL:** https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244
**Category:** Support
**Created:** [September 15, 2016, 8:59am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244 "2016-09-15T08:59:44Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![fulstop](https://forum.syncthing.net/user_avatar/forum.syncthing.net/fulstop/32/5237_2.png) [@fulstop](https://forum.syncthing.net/u/fulstop)
#### Post date: [September 15, 2016, 8:59am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/1 "2016-09-15T08:59:44Z")

</div>

I have 650+ GB of FLAC files (music), each file weighs ±30 MB. I recently updated tags (artist name, album name,…) of 60 GB of files and thought that only the difference (metadata) would be synced across the network. In fact, all instances did receive 60 GB of files, no diff has been made, it seems that each block of the files has been perceived as a new block. [This link](https://xiph.org/flac/documentation_format_overview.html) suggests that the metadata of flac files is stored in the header. So 99% of the file hasn’t changed.

Any idea why syncthing didn’t catch the diff ?

Thx

---

<div class="post-metadata">

### Author: ![canton7](https://forum.syncthing.net/user_avatar/forum.syncthing.net/canton7/32/9528_2.png) [@canton7](https://forum.syncthing.net/u/canton7)
#### Post date: [September 15, 2016, 9:04am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/2 "2016-09-15T09:04:23Z")

</div>

Because Syncthing only looks at blocks of data which haven’t moved within the file. Since you changed the size of the header, all of the data within the file moved, and Syncthing saw it as a difference.

There’s a [PR open](https://github.com/syncthing/syncthing/pull/3527) to allow detection of moved data, but there are questions around how useful it would be in practice, versus the cost added when scanning every single file.

---

<div class="post-metadata">

### Author: ![fulstop](https://forum.syncthing.net/user_avatar/forum.syncthing.net/fulstop/32/5237_2.png) [@fulstop](https://forum.syncthing.net/u/fulstop)
#### Post date: [September 15, 2016, 9:09am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/3 "2016-09-15T09:09:09Z")

</div>

Thanks for your fast answer, I’ll ping the PR you mentioned !

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 15, 2016, 9:11am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/4 "2016-09-15T09:11:22Z")

</div>

To be clear, you’re absolutely certain that the data was transmitted over the network? The GUI doesn’t make the difference clear at a glance as it simply shoes the entire file as out of sync.

The FLAC format has padding blocks that are intended to allow for in place metadata edits. But it’s not guaranteed that an encoder or editor will use them.

---

<div class="post-metadata">

### Author: ![fulstop](https://forum.syncthing.net/user_avatar/forum.syncthing.net/fulstop/32/5237_2.png) [@fulstop](https://forum.syncthing.net/u/fulstop)
#### Post date: [September 15, 2016, 9:15am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/5 "2016-09-15T09:15:20Z")

</div>

Yes, sure at 99%, I only have FLAC files in my sync folder and the only thing I did in month was to batch retag some in the past days. Screenshot below.

![](https://forum-uploads.syncthingcdn.net/original/2X/8/86b13cf146df6ad4b2ecb823e65dd7eb1b803bbb.png)

---

<div class="post-metadata">

### Author: ![fulstop](https://forum.syncthing.net/user_avatar/forum.syncthing.net/fulstop/32/5237_2.png) [@fulstop](https://forum.syncthing.net/u/fulstop)
#### Post date: [September 15, 2016, 9:28am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/6 "2016-09-15T09:28:39Z")

</div>

> [@calmh](#):
>
> The FLAC format has padding blocks that are intended to allow for in place metadata edits. But it’s not guaranteed that an encoder or editor will use them.

I will try some tests with one single file later in the day

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [September 15, 2016, 9:38am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/7 "2016-09-15T09:38:36Z")

</div>

Yes, looks like they’re being resynced completely. That means there is at least one real world use case for the PR linked above, even if I personally think the editor is doing the wrong thing here when it rewrites the file completely for a metadata change.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [October 15, 2016, 9:47am UTC](https://forum.syncthing.net/t/no-delta-sync-while-updating-metadata-of-flac-files/8244/8 "2016-10-15T09:47:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
