VirtualBox

Changeset 31373 in vbox for trunk/src/VBox/Main/HostImpl.cpp


Ignore:
Timestamp:
Aug 4, 2010 7:05:14 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64430
Message:

Main/HostImpl: Solaris DVD drive enumeration fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HostImpl.cpp

    r31358 r31373  
    6666# include <stdio.h>
    6767# include <libdevinfo.h>
     68# include <sys/mkdev.h>
    6869# include <sys/scsi/generic/inquiry.h>
    6970# include <net/if.h>
     
    20212022                     * slice that represents the whole drive. "s2" is always the whole drive for CD/DVDs.
    20222023                     */
     2024                    int Major = di_driver_major(Node);
    20232025                    di_minor_t Minor = DI_MINOR_NIL;
    20242026                    di_devlink_handle_t DevLink = di_devlink_init(NULL /* name */, 0 /* flags */);
     
    20272029                        while ((Minor = di_minor_next(Node, Minor)) != DI_MINOR_NIL)
    20282030                        {
     2031                            dev_t Dev = di_minor_devt(Minor);
     2032                            if (   Major != (int)major(Dev)
     2033                                || di_minor_spectype(Minor) == S_IFCHR
     2034                                || di_minor_type(Minor) != DDM_MINOR)
     2035                            {
     2036                                continue;
     2037                            }
     2038
    20292039                            char *pszMinorPath = di_devfs_minor_path(Minor);
    20302040                            if (!pszMinorPath)
     
    20572067                            }
    20582068                        }
     2069                        di_devlink_fini(&DevLink);
    20592070                    }
    20602071                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette