Skip to content
Snippets Groups Projects
Commit 777e56ad authored by samm2's avatar samm2
Browse files

FreeBSD: cam_get_umassno fixed

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@2933 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent e59c03af
Branches
No related tags found
No related merge requests found
...@@ -1730,10 +1730,9 @@ cam_get_umassno(char * devname) { ...@@ -1730,10 +1730,9 @@ cam_get_umassno(char * devname) {
} }
else { else {
// now check if we are working with USB device, see umass.c // now check if we are working with USB device, see umass.c
if(strcmp(ccb.cpi.sim_vid,"FreeBSD") == 0 printf("n=%s\n",ccb.cpi.dev_name);
&& strcmp(ccb.cpi.hba_vid,"USB SCSI")==0) { if(strcmp(ccb.cpi.dev_name,"umass-sim") == 0)
bus=ccb.cpi.bus_id; // bus_id will match umass number bus=ccb.cpi.unit_number; // unit_number will match umass number
}
} }
// close cam device, we don`t need it anymore // close cam device, we don`t need it anymore
cam_close_device(cam_dev); cam_close_device(cam_dev);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment