From: "Martin K. Petersen" Subject: Re: [PATCH 0 of 3] [RFC] I/O Hints Date: Mon, 09 Jun 2008 22:17:49 -0400 Message-ID: References: <20080605062754.GQ2961@webber.adilger.int> <20080606140205.GF19246@shareable.org> <20080609104758.GB25541@shareable.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Martin K. Petersen" , Andreas Dilger , linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Jamie Lokier Return-path: In-Reply-To: <20080609104758.GB25541@shareable.org> (Jamie Lokier's message of "Mon\, 9 Jun 2008 11\:47\:58 +0100") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org >>>>> "Jamie" == Jamie Lokier writes: Jamie> Ok. So I should always traverse the sysfs tree, and only use Jamie> the leaf values, combining them at MD nodes as I see fit, and Jamie> ignoring the values you provide at MD nodes? Yes. The intent was that "sloppy" programs would use the values exported in MD/DM, and that programs that really care (i.e. mkfs.xfs via libdisk) would traverse the tree. Sloppy in this case means "programs that aren't capable of dealing with heterogeneous storage anyway". Jamie> Is there enough information in sysfs for me to combine the Jamie> values? I.e. offsets of all child disks, etc.? With MD I'd think so. Neil generally exports everything on the planet. Haven't looked at DM yet. But let me take a stab at coming up with a richer kernel interface first... -- Martin K. Petersen Oracle Linux Engineering