From: "Jan Beulich" Subject: Re: [BUG] libxenstat and xentop confused by renamed VIF interfaces Date: Wed, 21 May 2014 15:01:14 +0100 Message-ID: <537CCDCA02000078000148FF@mail.emea.novell.com> References: <537C5B32.7050109@jajcus.net> <1400668184.4856.10.camel@kazak.uk.xensource.com> <537C8F8D.5040401@jajcus.net> <1400673169.4856.26.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1400673169.4856.26.camel@kazak.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , Jacek Konieczny Cc: IanJackson , Mariusz Mazur , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 21.05.14 at 13:52, wrote: > On Wed, 2014-05-21 at 13:35 +0200, Jacek Konieczny wrote: >> One question: can I assume /sys is always mounted and the >> '/sys/.../device/nodename', contains 'backend/vif/$domid/*' or should >> there be a fall-back to the old behaviour? > > I think on Linux we can assume these days that /sys must exist. I'm less > sure about the content of nodename, in particular WRT the behaviour of > the classic-Xen forward ports. (Jan, CCd, might know). > > I'd be inclined to keep the existing code as a fallback for now, I > think. I agree - an eventual change in sysfs layout would need hunting down between 2.6.18 and 3.15; not something I would do without a very good reason. And I can't tell without doing so... Jan