generic/159, 160: deal with EACCES -> EPERM transition
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 Aug 2016 23:28:44 +0000 (16:28 -0700)
committerEryu Guan <eguan@redhat.com>
Fri, 2 Sep 2016 08:40:34 +0000 (16:40 +0800)
commit297985bfeb75afc051b60e5ca444e4e44fbb4694
tree36bb55b7ef3b0b7c63f9c3d2bd6dc6b6a3d15e6e
parentacede2049ad0ca2d5726460317abea72b1aff223
generic/159, 160: deal with EACCES -> EPERM transition

As of 4.8 we can receive EPERM (instead of EACCES) for attempts to
reflink/dedupe to an immutable file.  Fix this up so that we accept
either answer.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/generic/159
tests/generic/160