Hello Miklos, I'd like to report a flock(2) problem to overlay nfs-exported files. The error return from flock(2) is "Bad file descriptor". Environment: OS: Ubuntu 14.04.2 LTS Kernel: 4.16.0-041600rc4-generic (from http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16-rc4/) Reproduce step: (nfs server side) mount -t overlay -orw,lowerdir=/mnt/ro,upperdir=/mnt/u,workdir=/mnt/w,nfs_export=on,index=on none /mnt/m touch /mnt/m/foo (nfs client side) mount server:/mnt/m /mnt/n flock /mnt/n/foo failed to lock file '/mnt/n/foo': Bad file descriptor The simple flock(2) wrap program is: int main(int argc, void **argv) { char *filename=argv[1]; int fd = open(filename, O_RDONLY);; int flock_result = flock(fd, LOCK_EX | LOCK_NB); if (flock_result != 0) { printf("failed to lock file '%s': %s\n", filename, strerror(errno)); goto out; } printf("flock succeed\n"); out: close(fd); } Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html