Skip to content

ENT-14692: Added file event types - #6409

Draft
victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:cf-reactor.AllFileEventTypes_2
Draft

victormlg wants to merge 1 commit into
cfengine:masterfrom
victormlg:cf-reactor.AllFileEventTypes_2

Conversation

@victormlg

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread cf-reactor/file_watcher.c
{
assert(args != NULL && args->next != NULL);
const char *path = RlistScalarValue(args);
const long size_threshold = IntFromString(RlistScalarValue(args->next));
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
Comment thread cf-reactor/watcher.c Fixed
@victormlg
victormlg force-pushed the cf-reactor.AllFileEventTypes_2 branch from 9fef6bf to 5fd6d59 Compare October 19, 2026 12:37
1. file_created: the file appears at the path.
2. file_modified: the modification time of the file changes.
3. file_content_modified: the SHA-256 hash of a regular file's content changes.
4. file_permissions_changed: the permission bits (07777) change.
5. file_owner_changed: the owning user or group changes.
6. file_replaced: the path now points to a different file (another inode or device), for example after an atomic rename over it.
7. file_type_changed: the file's type changes, for example a regular file replaced by a directory or a symlink.
8. symlink_target_changed: the target of a symlink changes.
9. file_size_exceeds: the size grows above size_threshold bytes. This requires the extra size_threshold constraint.

Ticket: ENT-14692
Signed-off-by: Victor Moene <victor.moene@northern.tech>
@victormlg
victormlg force-pushed the cf-reactor.AllFileEventTypes_2 branch from 5fd6d59 to 4452b4a Compare October 19, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants