Hi folks, In trying to exercise copy_file_range() error conditions, I needed to be able to pass pipes to copy_range and to have writeable file descriptors open over read only files. These two patches allow these things to be done by preventing pipes blocking on opening and allowing xfs_io to change read/write permissions on open files. Cheers, Dave.