From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1STqtJ-0004dx-Mt for garchives@archives.gentoo.org; Mon, 14 May 2012 08:44:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2B849E0763; Mon, 14 May 2012 08:44:11 +0000 (UTC) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 54407E06B7 for ; Mon, 14 May 2012 08:43:28 +0000 (UTC) Received: by pbbrr13 with SMTP id rr13so7481372pbb.40 for ; Mon, 14 May 2012 01:43:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=gNiL2H97rOR8f7E62i2K3aC8m9k4JhDq8Xxhm5ASRxM=; b=mX5bi0wwzKbELhH0f+BG9b/sxvuBJG8i/tMD7DXorpaHyezUCD7hPjFJz3CUUWE8Vd yC1Hq/9ETUi4Jn4ii00X2AVFuooH67Y6KdY0EBBshZR6uyiVNQ2okjakCftDp7Afrt1N ajXXpD4Y5Tpb2Q9wXZpNPmyJPlXQxVFKlLU6RNAnrT/n9r0bKnhoHV9jzEG7r1d8NqzZ 8kKBRoFCDANOUeUbtWMhldzHziLXozjfFQekfWLrGxU2PMn1VqyxEElzxKLqV/Gml9En L0mm2xyyXLGa5D2W2BjUkWEgsEmFJ/8SOxSi5VkhOM6gxqwtW4hyk8GxC6tWmuXdq1Hm ZxVg== Received: by 10.68.194.170 with SMTP id hx10mr11065750pbc.119.1336985007739; Mon, 14 May 2012 01:43:27 -0700 (PDT) Received: from smtp.gmail.com:587 (74-95-192-101-SFBA.hfc.comcastbusiness.net. [74.95.192.101]) by mx.google.com with ESMTPS id py6sm21638299pbc.13.2012.05.14.01.43.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 May 2012 01:43:26 -0700 (PDT) Received: by smtp.gmail.com:587 (sSMTP sendmail emulation); Mon, 14 May 2012 01:43:40 -0700 Date: Mon, 14 May 2012 01:43:40 -0700 From: Brian Harring To: Walter Dnes Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Stability of /sys api Message-ID: <20120514084340.GA3885@localhost> References: <20120514075353.GB5819@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120514075353.GB5819@waltdnes.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: 691441de-a8ad-4a0a-8ba7-70775a27521c X-Archives-Hash: 315d24377e996cb01f0e6e23f81efe51 On Mon, May 14, 2012 at 03:53:53AM -0400, Walter Dnes wrote: > After some Google-searching, I think I've figured out how to implement > automounting under mdev. I'd like to put in as much sanity-checking > into the script as possible. Right now I have 1 USB stick plugged in as > /dev/sdb. Th hard drive is /dev/sda. The "removable" data is readable > like so... > > cat /sys/block/sda/removable > 0 > > cat /sys/block/sdb/removable > 1 > > My question... is this API stable or deprecated? I.e. can I count on > it being around for a while? I figure this question is a developer type > question rather than ordinary user type. Api is stable although last I dealt with that crap it was reliant on chipsets/controllers not sucking and misreporting (mmc in particular comes to mind, although perhaps the hardware sucks less these days). Suggest you start studying udev source in addition since your questions of that sort are likely to be answered there. Aka, most likely wind up asking udev upstream (likely gregkh assuming he hasn't killfile'd everyone from that thread). Now the unfun part; this isn't really the right place to be asking. I get you're doing this w/ a gentoo intent, but you're dancing that line mightily fine. People asking "can I safely use nested context managers in python2.6" even if it's orientated towards a potential gentoo bit (say the ephemeral gentoo stats project), typically will be told "dunno. Ask the people who wrote the damn thing". Point there is that the ml shouldn't be used as tech help for the guts of "I don't want udev and am trying to replace it with mdev"; pkgcore nor paludis internal questions don't come here (format does since this is the appropriate venue) under the same logic. Forums come to mind, or appropriate upstreams as mentioned. Barring that, use the source luke, and start reading the lkml. If you're trying to do this, you'll likely need to track discussions there. Not trying to be a dick mind you, and perhaps others view othewise, but this isn't the place for it nor do I suspect people care to see more of this particular war play out on our ml. ~harring