The fd1 continues to reference the file in the image (lowerdir) and the fd2 references the file in the container (upperdir). However, due to a copy-up operation that occurs after the second calling to open(2), the descriptors refer to different files. In this case, your application expects fd1 and fd2 to refer to the same file. Suppose that your application calls fd1=open("foo", O_RDONLY) and then fd2=open("foo", O_RDWR). One such operation is the copy-up operation. This can result in certain OverlayFS operations breaking POSIX standards. Open(2): OverlayFS only implements a subset of the POSIX standards. The underlying problem as stated by aalexgabi is due to the implementation of the POSIX standards of OverlayFS: Workaround find /var/lib/mysql -type f -exec touch \
0 Comments
Leave a Reply. |