Hi all, This small patch enables you to loopback disk image files on readonly nfs filesystem on some system. When we losetup a file on readonly nfs filesystem, it fails with: # losetup /dev/loop7 /data/vm/xen_el5_i386_para/system.raw /data/vm/xen_el5_i386_para/system.raw: Permission denied New version of losetup has add a "-r" option for readonly loop, which Linux kernel has supported for a long time. Some distribution (EL5 update, Fedora 8, etc.) have shipped it. This patch benefit this option while doesn't break the old versions of losetup. Signed-off-by: Zhigang Wang regards, zhigang