Patch submitted upstream: http://review.gluster.org/9106
Master URL: http://review.gluster.org/#/c/9106/ (IN REVIEW) Release 3.7 URL: http://review.gluster.org/#/c/13655/ (IN REVIEW)
This is fixed in 3.8 "http://review.gluster.org/#/c/9106/". For now we will not be back-porting to 3.1.1, as we may hit issues with ctime change and tar application