def METHOD_NAME(self, volume):
    """
    Disable sync#i0 if the volume has no resource contributing files to sync.
    """
    tosync = []
    for res in volume.get_resources():
        tosync += res.files_to_sync()
    if len(tosync):
        return []
    volume._update([{"rid": "sync#i0", "disable": True}])