Skip to content

Default Folder uses different config than user-created folders #7033

Closed

Description

@tomasz1986

How to reproduce:

  1. Create a new folder in a fresh installation of Syncthing.
  2. Compare the configuration of the newly created folder, and the Default Folder.

Default Folder

<folder id="default" label="Default Folder" path="" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
		<filesystemType>basic</filesystemType>
		<device id="" introducedBy=""></device>
		<minDiskFree unit="">0</minDiskFree>
		<versioning>
				<cleanupIntervalS>0</cleanupIntervalS>
		</versioning>
		<copiers>0</copiers>
		<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
		<hashers>0</hashers>
		<order>random</order>
		<ignoreDelete>false</ignoreDelete>
		<scanProgressIntervalS>0</scanProgressIntervalS>
		<pullerPauseS>0</pullerPauseS>
		<maxConflicts>-1</maxConflicts>
		<disableSparseFiles>false</disableSparseFiles>
		<disableTempIndexes>false</disableTempIndexes>
		<paused>false</paused>
		<weakHashThresholdPct>25</weakHashThresholdPct>
		<markerName>.stfolder</markerName>
		<copyOwnershipFromParent>false</copyOwnershipFromParent>
		<modTimeWindowS>0</modTimeWindowS>
		<maxConcurrentWrites>2</maxConcurrentWrites>
		<disableFsync>false</disableFsync>
		<blockPullOrder>standard</blockPullOrder>
		<copyRangeMethod>standard</copyRangeMethod>
		<caseSensitiveFS>false</caseSensitiveFS>
		<junctionsAsDirs>false</junctionsAsDirs>
</folder>

User-created folder

<folder id="test" label="Default Folder" path="" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="true" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
		<filesystemType>basic</filesystemType>
		<device id="" introducedBy=""></device>
		<minDiskFree unit="%">1</minDiskFree>
		<versioning>
				<cleanupIntervalS>0</cleanupIntervalS>
		</versioning>
		<copiers>0</copiers>
		<pullerMaxPendingKiB>0</pullerMaxPendingKiB>
		<hashers>0</hashers>
		<order>random</order>
		<ignoreDelete>false</ignoreDelete>
		<scanProgressIntervalS>0</scanProgressIntervalS>
		<pullerPauseS>0</pullerPauseS>
		<maxConflicts>10</maxConflicts>
		<disableSparseFiles>false</disableSparseFiles>
		<disableTempIndexes>false</disableTempIndexes>
		<paused>false</paused>
		<weakHashThresholdPct>25</weakHashThresholdPct>
		<markerName>.stfolder</markerName>
		<copyOwnershipFromParent>false</copyOwnershipFromParent>
		<modTimeWindowS>0</modTimeWindowS>
		<maxConcurrentWrites>0</maxConcurrentWrites>
		<disableFsync>false</disableFsync>
		<blockPullOrder>standard</blockPullOrder>
		<copyRangeMethod>standard</copyRangeMethod>
		<caseSensitiveFS>false</caseSensitiveFS>
		<junctionsAsDirs>false</junctionsAsDirs>
</folder>

The differences are:

Default Folder

<minDiskFree unit="">0</minDiskFree>
<maxConflicts>-1</maxConflicts>
<maxConcurrentWrites>2</maxConcurrentWrites>

User-created folder

<minDiskFree unit="%">1</minDiskFree>
<maxConflicts>10</maxConflicts>
<maxConcurrentWrites>0</maxConcurrentWrites>

The first question is then, which of the two configs is the correct one? The second question is, is this on purpose, or should these configs rather be identical?

Tested with main (v1.10.1-dev.23.gd828adb6).

Activity

  1. added
    bug
    needs-triage
    on Oct 13, 2020
  2. changed the title [-]Default Folder uses different config than newly created folders[/-] [+]Default Folder uses different config than user-created folders[/+] on Oct 13, 2020
  3. calmh commented on Oct 13, 2020

    @calmh
    Member

    Similar/duplicate #6086, #6748

  4. tomasz1986 commented on Oct 13, 2020

    @tomasz1986
    MemberAuthor

    Similar/duplicate #6086, #6748

    Yeah, I should have searched first. Although mine does list all the specific values that differ, to give it some justification.

  5. imsodin commented on Dec 19, 2020

    @imsodin
    Member

    Closing as duplicate of #6086, as it's the same root cause.

  6. added
    frozen-due-to-age
    on Dec 20, 2021
  7. locked and limited conversation to collaborators on Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-ageneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions