diff --git a/latest/config/func_readdir/index.html b/latest/config/func_readdir/index.html index d9aa7a3f..873a2abf 100644 --- a/latest/config/func_readdir/index.html +++ b/latest/config/func_readdir/index.html @@ -2392,7 +2392,11 @@ situations.

used instead of readdir in order to leverage larger buffers for better performance on larger - directory reads as well as have more control in concurrent policies. + directory reads as well as have more control in concurrent policies. + Individual branch getdents64 requests are capped at 128 KiB to work + around problems with larger requests on virtiofs. This applies to + seq, cosr, and cor; it does not limit the total directory listing + or change fuse-msg-size.
  • readdir is used on FreeBSD.
  • diff --git a/latest/config/functions_categories_policies/index.html b/latest/config/functions_categories_policies/index.html index 3fbcf0eb..f2dfc909 100644 --- a/latest/config/functions_categories_policies/index.html +++ b/latest/config/functions_categories_policies/index.html @@ -2489,6 +2489,12 @@ worked on in relation to the function being performed. Once the branch is chosen other parts of the system does what is necessary to accomplish the function. Such as the cloning of directories between branches.

    +

    When a directory path is cloned onto another branch, mergerfs attempts +to preserve its ownership, permissions (including setgid), timestamps, +and extended attributes. Permissions are restored after ownership so +new files in a setgid directory inherit its group on the new branch. +Directories which already exist on the destination branch are left +unchanged.

    When using policies which are based on a branch's available space the branch base path provided is used. Not the full path to the file or directory in question. Meaning that mounts within the branch will not @@ -2583,19 +2589,19 @@ but it makes things a bit more uniform.

    msppfrd (most shared path, percentage free random distribution) -Like eppfrd but if it fails to find a branch it will try again with the parent directory. Continues this pattern till finding one. +Like eppfrd but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. mspmfs (most shared path, most free space) -Like epmfs but if it fails to find a branch it will try again with the parent directory. Continues this pattern till finding one. +Like epmfs but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. msplfs (most shared path, least free space) -Like eplfs but if it fails to find a branch it will try again with the parent directory. Continues this pattern till finding one. +Like eplfs but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. msplus (most shared path, least used space) -Like eplus but if it fails to find a branch it will try again with the parent directory. Continues this pattern till finding one. +Like eplus but if it fails to find a branch it will try again with the parent directory. Continues through the branch root, returning an error if no branch qualifies. eppfrd (existing path, percentage free random distribution) diff --git a/latest/config/link-exdev/index.html b/latest/config/link-exdev/index.html index 89355c2f..fbb728de 100644 --- a/latest/config/link-exdev/index.html +++ b/latest/config/link-exdev/index.html @@ -2275,6 +2275,15 @@ the newpath. The target value is determined by the value of mount point.
  • Defaults to passthrough.
  • +

    Replacement symlinks retain the source inode's UID and GID, read without +following a source symlink. Relative and pool targets use the first +getattr-policy source branch; absolute branch targets use the source +selected by the open policy. Creation uses daemon credentials, then +sets the source ownership, rather than using the link request's UID/GID, +which may be invalid when allow-idmap is enabled. A newly created +replacement is removed if its ownership cannot be set.

    +

    Source branch selection and path construction retain the same branch +snapshot, even when the branch list is updated at runtime.

    NOTE: It is possible that some applications check the file they link. In those cases, it is possible it will error or complain.

    diff --git a/latest/config/moveonenospc/index.html b/latest/config/moveonenospc/index.html index 70e999ee..03fefbfd 100644 --- a/latest/config/moveonenospc/index.html +++ b/latest/config/moveonenospc/index.html @@ -2350,7 +2350,8 @@ will:

  • Run the policy defined by moveonenospc to find a target branch.
  • "Move" the file from the source branch to the target branch.
  • -
  • Retry the write and continue on as normal.
  • +
  • Retry only the unwritten portion of the request, so a partially + completed append is not duplicated.
  • If at any point something fails the progress so far will be cleaned up as appropriate and the original error returned.

    diff --git a/latest/config/rename-exdev/index.html b/latest/config/rename-exdev/index.html index 4c55b79e..4ab3aadf 100644 --- a/latest/config/rename-exdev/index.html +++ b/latest/config/rename-exdev/index.html @@ -2276,6 +2276,17 @@ mount point.
  • Defaults to passthrough.
  • +

    The staging directory is created on demand, including for files at the +pool root. Relative targets are calculated within the pool's relative +path namespace.

    +

    Replacement symlinks retain the UID and GID of the first source inode +selected by the rename action policy, read before moving the source and +without following source symlinks. Creation uses daemon credentials, +then sets the source ownership; it does not use the rename request's +UID/GID, which may be invalid when allow-idmap is enabled. A newly +created replacement is removed if its ownership cannot be set. If +replacement creation fails, mergerfs attempts to restore the original +source paths.

    NOTE: It is possible that some applications check the file they rename. In those cases it is possible it will error or complain.

    NOTE: The reason abs-symlink is not split into two like diff --git a/latest/faq/technical_behavior_and_limitations/index.html b/latest/faq/technical_behavior_and_limitations/index.html index 727e6dfe..5a414729 100644 --- a/latest/faq/technical_behavior_and_limitations/index.html +++ b/latest/faq/technical_behavior_and_limitations/index.html @@ -2825,6 +2825,11 @@ decided that the credential handling would change.

    As of v2.42.0 mergerfs now runs as root more generally. Either changing credentials when creating files (Linux) or chown'ing them after creation (FreeBSD).

    +

    The optional EXDEV link and rename fallbacks create replacement +symlinks under daemon credentials and then preserve the source inode's +UID and GID. They do not use the link or rename request's UID/GID: +these may be invalid with allow-idmap. Ordinary symlink creation +continues to use the creation request's credentials.

    As a result of this change it is now necessary for the FUSE default_permissions feature be used for proper entitlements management. mergerfs does allow it to be disabled but it should only diff --git a/latest/project_comparisons/index.html b/latest/project_comparisons/index.html index 3d18b235..4e858081 100644 --- a/latest/project_comparisons/index.html +++ b/latest/project_comparisons/index.html @@ -1770,6 +1770,23 @@ +

    +
  • @@ -2650,6 +2667,23 @@ + +
  • @@ -3111,11 +3145,6 @@ bundles pooling and parity in one product, while mergerfs is a standalone Linux pooling filesystem without built-in redundancy. For some users mergerfs' Linux distro-agnostic and fully open-source approach is also preferable.

    -

    For semi-static data, mergerfs + SnapRAID -provides a similar, but not real-time, solution. -NonRAID (see below) is a -fork of Unraid's parity calculation solution and can also be used with -mergerfs.

    Moving between the two is not symmetric because mergerfs membership is a configuration change while Unraid array membership is part of the array state. See Migration for details.

    @@ -3127,6 +3156,60 @@ array state. See Migration for details.

    layouts, and users who prefer a Linux distro-agnostic, fully open-source component approach.
  • +

    Unraid vs. mergerfs + NonRAID vs. mergerfs + SnapRAID

    +

    All three can use mixed-size disks and keep each file on one data disk +rather than striping it across disks. The Unraid comparison below is for +its parity-protected main array; a separate cache pool does not inherit +the array's parity protection.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Unraidmergerfs + NonRAIDmergerfs + SnapRAID
    ManagementCommercial NAS OS with a web UI for storage, network shares, containers, and VMs.On a supported Linux kernel, manage the NonRAID driver and array separately from the mergerfs mount.Run mergerfs and SnapRAID on your existing system. Schedule parity syncs and integrity checks yourself.
    File placementUser Shares combine like-named top-level directories. Allocation method and split level select a disk for new files.Mount the filesystems on NonRAID's virtual data devices. A mergerfs create policy chooses where new files go.The same mergerfs policies choose placement. SnapRAID protects files on the configured data disks, not the merged mount.
    When parity changesEach array write updates block-level parity on one or two parity disks.Same as Unraid: writes through the virtual data devices update parity immediately.Ordinary writes do not update parity. snapraid sync updates parity files on demand or on a schedule, with up to six parity levels.
    If a data disk failsThe array can emulate the missing disk until a replacement is rebuilt, within the configured parity limit.The driver can likewise emulate a missing disk and rebuild its replacement.Surviving disks remain readable. snapraid fix restores recoverable files from the last sync; it does not serve the missing disk live.
    Adding a populated diskAdding a disk while preserving existing parity normally requires clearing it first.Adding a mergerfs branch does not add it to NonRAID. Adding a disk to the protected array normally requires clearing it too.An existing filesystem can join the pool without reformatting. Configure it in SnapRAID and sync to protect its files.
    +

    For frequently changing files, live parity protects the latest writes +against disk failure, but it also reflects accidental deletions. For a +mostly static media library, SnapRAID keeps parity work off the write +path and uses stored checksums to detect silent corruption during a +scrub. It may also recover a synced file deleted since the last sync; +new or changed data on a failed disk is not protected until synced. +None of the three replaces an independent backup.

    NonRAID