Skip to content

Conversation

@aryakpadman
Copy link
Contributor

This change updates the behavior to trigger sibling notifications during a full sync when the user specifies a list of files to notify within the configured path.

The change is necessary because, during a full sync, synchronization occurs on the configured data path rather than on specific files. Therefore, special handling is required to ensure notifications are properly triggered in this scenario.

Change-Id: I4952003c160c9236350451a561a75cc6efc5917b

This change updates the behavior to trigger sibling notifications during
a full sync when the user specifies a list of files to notify within the
configured path.

The change is necessary because, during a full sync, synchronization
occurs on the configured data path rather than on specific files.
Therefore, special handling is required to ensure notifications are
properly triggered in this scenario.

Tested :

Tested in simics that sibling notification is triggering as expected
during both full sync and background sync.

Test Logs:
During Full sync:
```
phosphor-rbmc-data-sync-mgr[4360]: Rsync command: rsync --compress --recursive
    --perms --group --owner --times --atimes --update --relative --delete
    --delete-missing-args --stats /var/tmp/data-sync/a2p/Host/
/var/lib/phosphor-data-sync/bmc_data_bkp/

phosphor-rbmc-data-sync-mgr[4360]: Rsync cmd return code : 0 : output :
                                                             Number of files: 6 (reg: 1, dir: 5)
                                                             Number of regular files transferred: 1
                                                             Total file size: 16 bytes
                                                             Total transferred file size: 16 bytes
phosphor-rbmc-data-sync-mgr[4360]: Notify request
    [/var/lib/phosphor-data-sync/notify-sibling/notifyReq_1762948782_ntWpty.json]
    created for configured path/var/tmp/data-sync/a2p/Host/
phosphor-rbmc-data-sync-mgr[4360]: Rsync sibling notify cmd : rsync --compress
    --recursive --perms --group --owner --times --atimes --update --remove-source-files
    /var/lib/phosphor-data-sync/notify-sibling/notifyReq_1762948782_ntWpty.json
    /var/lib/phosphor-data-sync/notify-services/
phosphor-rbmc-data-sync-mgr[4360]: Successfully send notify request for the path
    [/var/tmp/data-sync/a2p/Host/], under the configured path : [/var/tmp/data-sync/a2p/Host/]
phosphor-rbmc-data-sync-mgr[4360]: Full Sync completed successfully
```

During background(Immediate) Sync:
```
phosphor-rbmc-data-sync-mgr[4380]: Received IN_CLOSE_WRITE for wd : 1 and name : ID
phosphor-rbmc-data-sync-mgr[4380]: Processing an IN_CLOSE_WRITE for /var/tmp/data-sync/a2p/Host/ID
phosphor-rbmc-data-sync-mgr[4380]: Rsync command: rsync --compress --recursive
    --perms --group --owner --times --atimes --update --relative --delete
    --delete-missing-args --stats /var/tmp/data-sync/a2p/Host/ID
    /var/lib/phosphor-data-sync/bmc_data_bkp/
phosphor-rbmc-data-sync-mgr[4380]: Rsync cmd return code : 0 : output :
                                                             Number of files: 6 (reg: 1, dir: 5)
                                                             Number of created files: 0
                                                             Number of deleted files: 0
                                                             Number of regular files transferred: 1
                                                             Total file size: 20 bytes

phosphor-rbmc-data-sync-mgr[4380]: Notify request
    [/var/lib/phosphor-data-sync/notify-sibling/notifyReq_1762948826_iqaax1.json]
    created for configured path/var/tmp/data-sync/a2p/Host/
phosphor-rbmc-data-sync-mgr[4380]: Rsync sibling notify cmd : rsync --compress
    --recursive --perms --group --owner --times --atimes --update --remove-source-files
    /var/lib/phosphor-data-sync/notify-sibling/notifyReq_1762948826_iqaax1.json
    /var/lib/phosphor-data-sync/notify-services/
phosphor-rbmc-data-sync-mgr[4380]: Successfully send notify request for the path
    [/var/tmp/data-sync/a2p/Host/ID], under the configured path : [/var/tmp/data-sync/a2p/Host/]
```

Change-Id: I4952003c160c9236350451a561a75cc6efc5917b
Signed-off-by: Arya K Padman <[email protected]>
@aryakpadman aryakpadman force-pushed the notify-sibling-full-sync branch from 15f412f to f036e09 Compare November 13, 2025 09:43
@RameshIyyar RameshIyyar merged commit 376b9d3 into ibm-openbmc:main Nov 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants