union-mount: Implement union-aware writable open()

Copy up a file when opened with write permissions.  Does not copy up
the file data when O_TRUNC is specified.

Original-author: Valerie Aurora <vaurora@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
1 file changed