Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-132338

Backport fix from Samba bug #15926 to Samba 4.22 on RHEL (Time Machine backup)

Linking RHIVOS CVEs to...Migration: Automation ...RHELPRIO AssignedTeam ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-10.0, rhel-10.1
    • samba
    • Yes
    • None
    • rhel-idm-uah
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • All
    • None

      What were you trying to do that didn't work? Use Samba on RHEL as target for Time Machine Backups from MacOS machines

      What is the impact of this issue to you? No backups possible

      Please provide the package NVR for which the bug is seen:

      How reproducible is this bug?: Always

      Steps to reproduce

      1. Install RHEL 10.x with Samba
      2. Configure Samba share for Time Machine backups
      3. Initiate Time Machine backup form MacOS machine

      Expected results Backup is created and incremental updates work

      Actual results Backup creation fails with "The backup image could not be created"

      This is a known issue in Samba 4.22, see https://bugzilla.samba.org/show_bug.cgi?id=15926 which also contains patches to restore the functionality for samba 4.22:

      From the samba bug:
      "As part of the backup TM tries to rename a directory while having an open file within the directory. Windows requires this to fail and this is what Samba also implements. There used to be a workaround for Macs by using fruit:posix_rename but that option was removed in 4.22 as it imposed an unreasonable development burden due to introducing hard to follow logic in very complex code. As part of implementing SMB3 UNIX Extensions in Samba, this part of the code has to be modified and this was only sensibly possible after removing the fruit:posix_rename code.

      Created attachment 18755 [details]
      Patch for 4.22 backported from master"

      As Time Machine backups used to work with previous versions of Samba in RHEL9 and before, I see this as a regression.

              anschnei@redhat.com Andreas Schneider
              jwildeboer Jan Wildeboer
              Andreas Schneider Andreas Schneider
              Martin Myska Martin Myska
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: