1
Description: Upstream changes introduced in version 172-0ubuntu4
2
This patch has been created by dpkg-source during the package build.
3
Here's the last changelog entry, hopefully it gives details on why
4
those changes were made:
6
udev (172-0ubuntu4) oneiric; urgency=low
8
* debian/udev.installer-startup: Create /dev/pts before mounting it
11
The person named in the Author field signed this changelog entry.
12
Author: Colin Watson <cjwatson@ubuntu.com>
13
Bug-Ubuntu: https://bugs.launchpad.net/bugs/815962
16
The information above should follow the Patch Tagging Guidelines, please
17
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
18
are templates for supplementary fields that you might want to add:
20
Origin: <vendor|upstream|other>, <url of original patch>
21
Bug: <url in upstream bugtracker>
22
Bug-Debian: http://bugs.debian.org/<bugnumber>
23
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
24
Forwarded: <no|not-needed|url proving that it has been forwarded>
25
Reviewed-By: <name and email of someone who approved the patch>
26
Last-Update: <YYYY-MM-DD>
29
+++ udev-172/extras/gudev/gjs-example.js
31
+#!/usr/bin/env gjs-console
33
+// This currently depends on the following patches to gjs
35
+// http://bugzilla.gnome.org/show_bug.cgi?id=584558
36
+// http://bugzilla.gnome.org/show_bug.cgi?id=584560
37
+// http://bugzilla.gnome.org/show_bug.cgi?id=584568
39
+const GUdev = imports.gi.GUdev;
40
+const Mainloop = imports.mainloop;
42
+function print_device (device) {
43
+ print (" subsystem: " + device.get_subsystem ());
44
+ print (" devtype: " + device.get_devtype ());
45
+ print (" name: " + device.get_name ());
46
+ print (" number: " + device.get_number ());
47
+ print (" sysfs_path: " + device.get_sysfs_path ());
48
+ print (" driver: " + device.get_driver ());
49
+ print (" action: " + device.get_action ());
50
+ print (" seqnum: " + device.get_seqnum ());
51
+ print (" device type: " + device.get_device_type ());
52
+ print (" device number: " + device.get_device_number ());
53
+ print (" device file: " + device.get_device_file ());
54
+ print (" device file symlinks: " + device.get_device_file_symlinks ());
55
+ print (" foo: " + device.get_sysfs_attr_as_strv ("stat"));
56
+ var keys = device.get_property_keys ();
57
+ for (var n = 0; n < keys.length; n++) {
58
+ print (" " + keys[n] + "=" + device.get_property (keys[n]));
62
+function on_uevent (client, action, device) {
63
+ print ("action " + action + " on device " + device.get_sysfs_path());
64
+ print_device (device);
68
+var client = new GUdev.Client ({subsystems: ["block", "usb/usb_interface"]});
69
+client.connect ("uevent", on_uevent);
71
+var block_devices = client.query_by_subsystem ("block");
72
+for (var n = 0; n < block_devices.length; n++) {
73
+ print ("block device: " + block_devices[n].get_device_file ());
78
+d = client.query_by_device_number (GUdev.DeviceType.BLOCK, 0x0810);
80
+ print ("query_by_device_number 0x810 -> null");
82
+ print ("query_by_device_number 0x810 -> " + d.get_device_file ());
83
+ var dd = d.get_parent_with_subsystem ("usb", null);
85
+ print ("--------------------------------------------------------------------------");
89
+ d = d.get_parent ();
93
+d = client.query_by_sysfs_path ("/sys/block/sda/sda1");
94
+print ("query_by_sysfs_path (\"/sys/block/sda1\") -> " + d.get_device_file ());
96
+d = client.query_by_subsystem_and_name ("block", "sda2");
97
+print ("query_by_subsystem_and_name (\"block\", \"sda2\") -> " + d.get_device_file ());
99
+d = client.query_by_device_file ("/dev/sda");
100
+print ("query_by_device_file (\"/dev/sda\") -> " + d.get_device_file ());
102
+d = client.query_by_device_file ("/dev/block/8:0");
103
+print ("query_by_device_file (\"/dev/block/8:0\") -> " + d.get_device_file ());
105
+Mainloop.run('udev-example');
107
+++ udev-172/extras/gudev/seed-example-enum.js
111
+const GLib = imports.gi.GLib;
112
+const GUdev = imports.gi.GUdev;
114
+function print_device(device) {
115
+ print(" initialized: " + device.get_is_initialized());
116
+ print(" usec since initialized: " + device.get_usec_since_initialized());
117
+ print(" subsystem: " + device.get_subsystem());
118
+ print(" devtype: " + device.get_devtype());
119
+ print(" name: " + device.get_name());
120
+ print(" number: " + device.get_number());
121
+ print(" sysfs_path: " + device.get_sysfs_path());
122
+ print(" driver: " + device.get_driver());
123
+ print(" action: " + device.get_action());
124
+ print(" seqnum: " + device.get_seqnum());
125
+ print(" device type: " + device.get_device_type());
126
+ print(" device number: " + device.get_device_number());
127
+ print(" device file: " + device.get_device_file());
128
+ print(" device file symlinks: " + device.get_device_file_symlinks());
129
+ print(" tags: " + device.get_tags());
130
+ var keys = device.get_property_keys();
131
+ for (var n = 0; n < keys.length; n++) {
132
+ print(" " + keys[n] + "=" + device.get_property(keys[n]));
136
+var client = new GUdev.Client({subsystems: []});
137
+var enumerator = new GUdev.Enumerator({client: client});
138
+enumerator.add_match_subsystem('b*')
140
+var devices = enumerator.execute();
142
+for (var n=0; n < devices.length; n++) {
143
+ var device = devices[n];
144
+ print_device(device);
148
+++ udev-172/extras/gudev/seed-example.js
154
+const GLib = imports.gi.GLib;
155
+const GUdev = imports.gi.GUdev;
157
+function print_device (device) {
158
+ print (" subsystem: " + device.get_subsystem ());
159
+ print (" devtype: " + device.get_devtype ());
160
+ print (" name: " + device.get_name ());
161
+ print (" number: " + device.get_number ());
162
+ print (" sysfs_path: " + device.get_sysfs_path ());
163
+ print (" driver: " + device.get_driver ());
164
+ print (" action: " + device.get_action ());
165
+ print (" seqnum: " + device.get_seqnum ());
166
+ print (" device type: " + device.get_device_type ());
167
+ print (" device number: " + device.get_device_number ());
168
+ print (" device file: " + device.get_device_file ());
169
+ print (" device file symlinks: " + device.get_device_file_symlinks ());
170
+ print (" foo: " + device.get_sysfs_attr_as_strv ("stat"));
171
+ var keys = device.get_property_keys ();
172
+ for (var n = 0; n < keys.length; n++) {
173
+ print (" " + keys[n] + "=" + device.get_property (keys[n]));
177
+function on_uevent (client, action, device) {
178
+ print ("action " + action + " on device " + device.get_sysfs_path());
179
+ print_device (device);
183
+var client = new GUdev.Client ({subsystems: ["block", "usb/usb_interface"]});
184
+client.signal.connect ("uevent", on_uevent);
186
+var block_devices = client.query_by_subsystem ("block");
187
+for (var n = 0; n < block_devices.length; n++) {
188
+ print ("block device: " + block_devices[n].get_device_file ());
193
+d = client.query_by_device_number (GUdev.DeviceType.BLOCK, 0x0810);
195
+ print ("query_by_device_number 0x810 -> null");
197
+ print ("query_by_device_number 0x810 -> " + d.get_device_file ());
198
+ dd = d.get_parent_with_subsystem ("usb", null);
200
+ print ("--------------------------------------------------------------------------");
201
+ while (d != null) {
204
+ d = d.get_parent ();
208
+d = client.query_by_sysfs_path ("/sys/block/sda/sda1");
209
+print ("query_by_sysfs_path (\"/sys/block/sda1\") -> " + d.get_device_file ());
211
+d = client.query_by_subsystem_and_name ("block", "sda2");
212
+print ("query_by_subsystem_and_name (\"block\", \"sda2\") -> " + d.get_device_file ());
214
+d = client.query_by_device_file ("/dev/sda");
215
+print ("query_by_device_file (\"/dev/sda\") -> " + d.get_device_file ());
217
+d = client.query_by_device_file ("/dev/block/8:0");
218
+print ("query_by_device_file (\"/dev/block/8:0\") -> " + d.get_device_file ());
220
+var mainloop = GLib.main_loop_new ();
221
+GLib.main_loop_run (mainloop);
223
+++ udev-172/extras/scsi_id/scsi_id.config
226
+# scsi_id configuration
228
+# lower or upper case has no effect on the left side. Quotes (") are
229
+# required for spaces in values. Model is the same as the SCSI
230
+# INQUIRY product identification field. Per the SCSI INQUIRY, the vendor
231
+# is limited to 8 bytes, model to 16 bytes.
233
+# The first matching line found is used. Short matches match longer ones,
234
+# if you do not want such a match space fill the extra bytes. If no model
235
+# is specified, only the vendor string need match.
237
+# options=<any scsi_id command line options>
238
+# vendor=string[,model=string],options=<per-device scsi_id options>
240
+# some libata drives require vpd page 0x80
241
+vendor="ATA",options=-p 0x80
243
+++ udev-172/extras/scsi_id/README
245
+scsi_id - generate a SCSI unique identifier for a given SCSI device
247
+Please send questions, comments or patches to <patmans@us.ibm.com> or
248
+<linux-hotplug-devel@lists.sourceforge.net>.