From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 12 Jan 2004 21:22:04 +0000 Subject: Re: [PATCH] udev - advanced user query options Message-Id: <20040112212204.GC3911@kroah.com> List-Id: References: <20040111023300.GA4762@vrfy.org> In-Reply-To: <20040111023300.GA4762@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Jan 12, 2004 at 07:05:17PM +0100, David Zeuthen wrote: > On Sun, 2004-01-11 at 03:33, Kay Sievers wrote: > > This patch improves the user options for udev. > > It is possible now to query for the name, the symlinks or owner/group. > > If asked for the name of the node we are able to prepend the udev_root > > with the -r option. > > > > SAMPLE: > > > > kay@pim:~/src/udev.test$ ./udev -V > > udev, version 012_bk > > > > kay@pim:~/src/udev.test$ ./udev -h > > Usage: [-qrVh] > > -q query database for the specified value > > -p device path used for query > > -r print udev root > > -V print udev version > > -h print this help text > > > > kay@pim:~/src/udev.test$ ./udev -r > > /udev/ > > > > kay@pim:~/src/udev.test$ ./udev -q name -p /class/video4linux/video0 > > video/webcam0 > > > > kay@pim:~/src/udev.test$ ./udev -q symlink -p /class/video4linux/video0 > > camera0 kamera0 > > > > kay@pim:~/src/udev.test$ ./udev -q owner -p /class/video4linux/video0 > > 501 > > > > kay@pim:~/src/udev.test$ ./udev -r -q name -p /class/video4linux/video0 > > /udev/video/webcam0 > > > > This is quite neat, but is it backwards compatible with how the current > udev release works? I actually do stuff like > > udev -q /block/sda > > from HAL and expect to get the reply > > sda Nope, this is now changed, sorry :( thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel