sync vs sync!
sync vs sync!
- Subject: sync vs sync!
- From: Jorgen Lundman <email@hidden>
- Date: Sun, 20 Jan 2019 14:19:16 +0900
- Dkim-filter: OpenDKIM Filter v2.10.3 mail.lundman.net B569215B6C2
Hello lists,
I have already checked the sources, but maybe someone can think of
something clever.
At the moment, "sync_thread" calls VNOP_FSYNC periodically for legacy
filesystems, as it happens, we do our own periodic sync, so we want to
ignore this.
But if a user uses the "sync" cmdline tool, the Unix equivalent of "hold
my beer" as they are about to do something exciting, it would be a good
idea for us to sync.
I am unable to find a way to detect the difference. sync_thread calls
the same sync_callback that calls us, so there is no flag difference,
and both use vfs_kernel_context() so I can see for an attached process.
Now FSIOC_SYNC_VOLUME does use a different flag - but I do not see any
userland tools that users could use instead of "sync".
Lund
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden