From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nix Subject: Re: Ooops on read-only raid5 while unmounting as xfs Date: Wed, 24 Jan 2007 22:23:58 +0000 Message-ID: <87odoogj29.fsf@hades.wkstn.nix> References: <17845.25989.10063.901037@notabene.brown> <17846.40996.525616.51618@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <17846.40996.525616.51618@notabene.brown> (Neil Brown's message of "23 Jan 2007 23:54:47 -0000") Sender: linux-raid-owner@vger.kernel.org To: Neil Brown Cc: Francois Barre , linux-raid List-Id: linux-raid.ids On 23 Jan 2007, Neil Brown said: > On Tuesday January 23, francois.barre@gmail.com wrote: >> >> My question is then : what prevents the upper layer to open the array >> read-write, submit a write and make the md code BUG_ON() ? > > The theory is that when you tell an md array to become read-only, it > tells the block layer that it is read-only, and then if some process > tries to open it read/write, it gets an array. Um. Do you mean it gets an *error*? ;} -- `The serial comma, however, is correct and proper, and abandoning it will surely lead to chaos, anarchy, rioting in the streets, the Terrorists taking over, and possibly the complete collapse of Human Civilization.'