diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-04-10 11:26:10 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-10 11:27:16 -0700 |
commit | 0a0619216ec9ca96c181dd69d9bf31e7762090cb (patch) | |
tree | c440473917bd7841b51f7a1e47c21352a5dbeefe /pkg/sentry/loader | |
parent | 7140b1fdca1cc9c9c711955a49e6e7fc41f339d9 (diff) |
Start saving MountSource.DirentCache.
DirentCache is already a savable type, and it ensures that it is empty at the
point of Save. There is no reason not to save it along with the MountSource.
This did uncover an issue where not all MountSources were properly flushed
before Save. If a mount point has an open file and is then unmounted, we save
the MountSource without flushing it first. This CL also fixes that by flushing
all MountSources for all open FDs on Save.
PiperOrigin-RevId: 242906637
Change-Id: I3acd9d52b6ce6b8c989f835a408016cb3e67018f
Diffstat (limited to 'pkg/sentry/loader')
0 files changed, 0 insertions, 0 deletions