From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Subject: Re: [Patch] mdadm: move mdadm.map file into /dev/md Date: Tue, 14 Apr 2009 11:12:52 +1000 Message-ID: <18915.58132.90607.907792@notabene.brown> References: <87tz51dmmu.fsf@frosties.localdomain> <155bf3edda1c2692d316807ff5f58f30.squirrel@neil.brown.name> <87prfof1bp.fsf@frosties.localdomain> <18908.17619.375078.291547@notabene.brown> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: message from Doug Ledford on Thursday April 9 Sender: linux-raid-owner@vger.kernel.org To: Doug Ledford Cc: Goswin von Brederlow , LinuxRaid RAID List-Id: linux-raid.ids On Thursday April 9, dledford@redhat.com wrote: > On Apr 8, 2009, at 2:31 AM, Neil Brown wrote: > > I'm leaning towards: > > > > - to open for reading, if /var/run/mdadm/map doesn't exist, > > try /dev/.mdadm.map > > - to open for writing, if opening /var/run/mdadm/map and > > /var/run/mdadm.map for writing fails, try /dev/.mdadm.map > > > > Note that I don't want to put the file in /dev/md/ as that might not > > exist yet either. > > > > So the idea is to still use /var/run/mdadm{.,/}map, but fall back on > > /dev/.mdadm.map if that is the only option. > > > > Thought? > > Fine with me. Cool. It is done now and pushed out. Thanks, NeilBrown