branch management: disallow setting leftmost branch to readonly
authorErez_Zadok <ezk@cs.sunysb.edu>
Mon, 30 Apr 2007 20:42:30 +0000 (16:42 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Tue, 13 Jan 2009 01:43:04 +0000 (20:43 -0500)
commitda59055cc0ca7ba2252189fc23f7794bea7a499c
tree41362f65cbe87c78790e5a8f265a05e32389b08c
parent72e4e8cbe4343b120d8d9dac56a12f27a691df5a
branch management: disallow setting leftmost branch to readonly

Unionfs requires the leftmost branch to be writeable for copyup to work
properly and simply.  If, through branch-management commands (add, delete,
or mode change), the leftmost branch will becomes readonly, then return an
error (and tell the user to use "remount,ro" if they want a readonly union).
fs/unionfs/super.c