From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nuno Silva Date: Fri, 16 Jan 2004 02:25:08 +0000 Subject: Re: [ANNOUNCE] udev 013 release Message-Id: <40074B84.5060802@vgertech.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------090202030901070304030301" List-Id: References: <20040113235213.GA7659@kroah.com> In-Reply-To: <20040113235213.GA7659@kroah.com> To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------090202030901070304030301 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit [CC to lkml removed and I'm not in linux-hotplug-devl] Hi! Greg KH wrote: > > Hm, I just took Kay's patch instead. Care to make up a patch for this > based off of it? > You did the right thing :-) Now it's simplier and is almost a one-liner. (Anyway, still missing the SYSFS_* details). Sample output: Jan 16 01:53:42 puma udev[18505]: New device! Metrics: BUS='scsi', ID='71:0:0:0', KERNEL='sr0' Jan 16 01:53:42 puma udev[18505]: name, 'sr0' is going to have owner='', group='', mode = 0600 Jan 16 01:53:42 puma udev[18505]: creating device node '/udev/sr0' ... Jan 16 01:57:07 puma udev[18779]: New device! Metrics: BUS='scsi', ID='72:0:0:0', KERNEL='sda' Jan 16 01:57:07 puma udev[18779]: name, 'sda' is going to have owner='', group='', mode = 0600 Jan 16 01:57:07 puma udev[18779]: creating device node '/udev/sda' ... Jan 16 01:57:18 puma udev[18791]: New device! Metrics: BUS='usb', ID='5-1:1.1', KERNEL='lp0' Jan 16 01:57:18 puma udev[18791]: name, 'lp0' is going to have owner='', group='', mode = 0600 Jan 16 01:57:18 puma udev[18791]: creating device node '/udev/lp0' I think this output is nice, easy to read and /etc/udev/rules oriented so, sooner or later, people will find it "natural". Thanks, Nuno Silva --------------090202030901070304030301 Content-Type: text/plain; name="udev-bk-details.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="udev-bk-details.diff" diff -Naur udev/namedev.c udev-report/namedev.c --- udev/namedev.c 2004-01-16 01:59:03.000000000 +0000 +++ udev-report/namedev.c 2004-01-16 01:53:10.000000000 +0000 @@ -723,6 +723,13 @@ udev->owner[0] = 0x00; udev->group[0] = 0x00; } + /* notify syslog and report some of the configuration: */ + /* FIXME: add SYSFS_* nodes, too */ + info("New device! Metrics: BUS='%s', ID='%s', KERNEL='%s'", + sysfs_device->bus, sysfs_device->bus_id, class_dev->name); + info("name, '%s' is going to have owner='%s', group='%s', mode = %#o", + udev->name, udev->owner, udev->group, udev->mode); + dbg("name, '%s' is going to have owner='%s', group='%s', mode = %#o", udev->name, udev->owner, udev->group, udev->mode); --------------090202030901070304030301-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ 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