commit | 96225a7281ebe137150c534be542d7d0cd7f8ee5 | [log] [tgz] |
---|---|---|
author | Miklos Szeredi <mszeredi@redhat.com> | Fri Feb 17 16:56:12 2017 +0100 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Fri Feb 17 16:56:12 2017 +0100 |
tree | 2bbbec9483ba3e48e571aeccbec3e0882ca8c948 | |
parent | f6c773319bfe6b7a3db51fc58a2841e907b7f4cd [diff] |
vfs: intercept fsync on overlay files Fsync is really an inode operation (AFAICS) so a doing it on a O_RDONLY file descriptor should flush any data written through an O_WRONLY file descriptor for example. To make this work correctly in case the file is copied up after being opened for read, intercept the fsync operation, similarly to read_iter and mmap. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>