Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hardlink issue with whiteout deletes in the merge snapshotter.
Whiteouts may share the same inode which cause the snapshotter to attempt to create a hardlink between two whiteouts in the destination layer. The problem is that the first whiteout is only created if it is part of the lower layer from the base snapshot. Otherwise, the whiteout is not created in the destination layer because it is not needed. If the first whiteout is not created in the destination, attempting to create a hardlink for the second whiteout will fail. To avoid this issue, this fix disables hardlinks for whiteouts. Signed-off-by: Grégoire Payen de La Garanderie <gregoire.payen.de.la.garanderie@intel.com>
- Loading branch information