Bill Davidsen <davidsen@xxxxxxx> wrote:I think Al had a good idea there, that is nice and clean. What about bind mounts, will that just fall out?
mount /base on point1 - rw [ hopefully really r/w ]
mount /base on point2 - ro [ hopefully r/o ]
I think Al Viro probably has the right idea as to how to fix this: Move the
R/O R/W flag into vfsmount and count the number of R/W vfsmounts in the
superblock. I never quite finished implementing the patch to do this, but I
can go back and revisit it.