aboutsummaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorMarcel Lauhoff <marcel.lauhoff@suse.com>2022-08-12 14:45:29 +0200
committerEric Biggers <ebiggers3@gmail.com>2022-08-23 09:35:43 -0700
commit75cf58070a87aecfdad295ee50d048603d1916ed (patch)
tree8a5a21f76b18938075a0d35b73e25b2f00a7b502 /.gitignore
parenta1ddf6e09af39320fee969f52d36ae0f2ca94d83 (diff)
fsync set policy ioctls
Split policyIoctl into setPolicyIoctl and getPolicyIoctl. Add a os.Sync() call to setPolicyIoctl. Policy ioctls are not necessary durable on return. For example, on ext4 (ref: fs/ext4/crypto.c: ext4_set_context) they are not. This may lead to a filesystem containing fscrypt metadata (in .fscrypt), but without the policy applied on an encrypted directory. Example: Snapshotting a mounted ext4 filesystem on Ceph RBD right after setting the policy. While subject to timing, with high probability the snapshot will not have the policy set. Calling fsync fixes this. Signed-off-by: Marcel Lauhoff <marcel.lauhoff@suse.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions