When I try to remount a partition as read-only, I get an error /foo is busy. I can list all files open from /foo withlsof /foobut that does not show me whether files are open read-only or read-write. Is there any way to list only files which are open as read-write ?
lsof: show files open as read-write
lsof