> > C. "shutdown" the filesystem if writeback errors happened and return > > EIO from any read, like some blockdev filesystems will do in face > > of metadata write errors > > > > I happen to have a branch ready for that ;-) > > https://github.com/amir73il/linux/commits/ovl-shutdown > > > This branch seems to implement shutdown ioctl. So it will still need > glue code to detect writeback failure in upper/ and trigger shutdown > internally? > Yes. ovl_get_acess() can check both the administrative ofs->goingdown command and the upper writeback error condition for volatile ovl or something like that. > And if that works, then Sargun's patches can fit in nicely on top which > detect writeback failures on remount and will shutdown fs. > Not sure why remount needs to shutdown. It needs to fail mount, but yeh, all those things should fit nicely together. Thanks, Amir.