Display the /dev/sr device name for optical devices.
Signed-off-by: Brian King <[email protected]>
---
iprlib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN iprlib.c~iprutils_sr_devname iprlib.c
--- iprutils.patched/iprlib.c~iprutils_sr_devname 2016-06-16
16:20:08.655773155 -0500
+++ iprutils.patched-bjking1/iprlib.c 2016-06-16 16:21:10.690230119 -0500
@@ -5882,7 +5882,7 @@ static void get_sd_names(int num_devs)
while((dent = readdir(dirfd)) != NULL) {
if (dent->d_name[0] == '.')
continue;
- if (strncmp(dent->d_name, "sd", 2))
+ if (strncmp(dent->d_name, "sd", 2) &&
strncmp(dent->d_name, "sr", 2))
continue;
sprintf(scsi_dev_table[i].dev_name, "/dev/%s",
dent->d_name);
_
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Iprdd-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iprdd-devel