.. | .. |
---|
11 | 11 | Contact: Thomas Maier <balagi@justmail.de> |
---|
12 | 12 | Description: |
---|
13 | 13 | |
---|
14 | | - add: (WO) Write a block device id (major:minor) to |
---|
| 14 | + ========== ============================================== |
---|
| 15 | + add (WO) Write a block device id (major:minor) to |
---|
15 | 16 | create a new pktcdvd device and map it to the |
---|
16 | 17 | block device. |
---|
17 | 18 | |
---|
18 | | - remove: (WO) Write the pktcdvd device id (major:minor) |
---|
| 19 | + remove (WO) Write the pktcdvd device id (major:minor) |
---|
19 | 20 | to remove the pktcdvd device. |
---|
20 | 21 | |
---|
21 | | - device_map: (RO) Shows the device mapping in format: |
---|
| 22 | + device_map (RO) Shows the device mapping in format: |
---|
22 | 23 | pktcdvd[0-7] <pktdevid> <blkdevid> |
---|
| 24 | + ========== ============================================== |
---|
23 | 25 | |
---|
24 | 26 | |
---|
25 | 27 | What: /sys/class/pktcdvd/pktcdvd[0-7]/dev |
---|
.. | .. |
---|
65 | 67 | KernelVersion: 2.6.20 |
---|
66 | 68 | Contact: Thomas Maier <balagi@justmail.de> |
---|
67 | 69 | Description: |
---|
68 | | - size: (RO) Contains the size of the bio write queue. |
---|
| 70 | + ============== ================================================ |
---|
| 71 | + size (RO) Contains the size of the bio write queue. |
---|
69 | 72 | |
---|
70 | | - congestion_off: (RW) If bio write queue size is below this mark, |
---|
| 73 | + congestion_off (RW) If bio write queue size is below this mark, |
---|
71 | 74 | accept new bio requests from the block layer. |
---|
72 | 75 | |
---|
73 | | - congestion_on: (RW) If bio write queue size is higher as this |
---|
| 76 | + congestion_on (RW) If bio write queue size is higher as this |
---|
74 | 77 | mark, do no longer accept bio write requests |
---|
75 | 78 | from the block layer and wait till the pktcdvd |
---|
76 | 79 | device has processed enough bio's so that bio |
---|
77 | 80 | write queue size is below congestion off mark. |
---|
78 | 81 | A value of <= 0 disables congestion control. |
---|
| 82 | + ============== ================================================ |
---|
79 | 83 | |
---|
80 | 84 | |
---|
81 | 85 | Example: |
---|
82 | 86 | -------- |
---|
83 | | -To use the pktcdvd sysfs interface directly, you can do: |
---|
| 87 | +To use the pktcdvd sysfs interface directly, you can do:: |
---|
84 | 88 | |
---|
85 | | -# create a new pktcdvd device mapped to /dev/hdc |
---|
86 | | -echo "22:0" >/sys/class/pktcdvd/add |
---|
87 | | -cat /sys/class/pktcdvd/device_map |
---|
88 | | -# assuming device pktcdvd0 was created, look at stat's |
---|
89 | | -cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written |
---|
90 | | -# print the device id of the mapped block device |
---|
91 | | -fgrep pktcdvd0 /sys/class/pktcdvd/device_map |
---|
92 | | -# remove device, using pktcdvd0 device id 253:0 |
---|
93 | | -echo "253:0" >/sys/class/pktcdvd/remove |
---|
| 89 | + # create a new pktcdvd device mapped to /dev/hdc |
---|
| 90 | + echo "22:0" >/sys/class/pktcdvd/add |
---|
| 91 | + cat /sys/class/pktcdvd/device_map |
---|
| 92 | + # assuming device pktcdvd0 was created, look at stat's |
---|
| 93 | + cat /sys/class/pktcdvd/pktcdvd0/stat/kb_written |
---|
| 94 | + # print the device id of the mapped block device |
---|
| 95 | + fgrep pktcdvd0 /sys/class/pktcdvd/device_map |
---|
| 96 | + # remove device, using pktcdvd0 device id 253:0 |
---|
| 97 | + echo "253:0" >/sys/class/pktcdvd/remove |
---|