site_archiver(a)lists.apple.com
Delivered-To: darwin-kernel(a)lists.apple.com
Dkim-filter: OpenDKIM Filter v2.10.3 mail.lundman.net B569215B6C2
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=lundman.net; s=dkim; t=1547961558; bh=kL6NkiRwx2Wv4dPkLxVy/gl6Z7BPv3PdlsMUjtNX2+Y=; h=To:From:Subject:Date; b=BzsIu9POMzaeklqsHBgn48No4iouOQoIREAUtdNfPkdYJgSXvZSqM4P4Hlf9x9wyw Zp5SwzkXh9CQ6QuRs0v/p9hN24j2L8apNb7EwgBZcBxb2Qd62ptErjELTX3p7drIPT QeP2sLOCqpRrJnqNOQ936PkJB9Y2moF3A61rHBh8=
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:49.0) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46
Hello lists,
Lund
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (Darwin-kernel(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists…
This email sent to site_archiver(a)lists.apple.com
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".