Method for detecting order of attached devices and computer readable storage media storing program thereof
Abstract
A method for detecting the order of attached devices and a storage device for storing a program executing the same are provided. The method includes following steps. An inquiry is issued to obtain the device information of a plurality of attached devices, and one of the device information is selected. Whether the selected device information contains an attached device address is determined. If the selected device information contains an attached device address, the next device information is selected according to the attached device address. The order in which the device information is selected is recorded as the order of these attached devices.
Claims
exact text as granted — not AI-modified1 . A method for detecting series connection order of a plurality of devices, comprising:
issuing an inquiry to obtain a plurality of device information from the devices; respectively obtaining an address of each of the devices from the device information to form a device listing; respectively obtaining a plurality of attached device addresses from the device information, wherein each of the attached device addresses is an address of other device attached from one of the devices; sorting the series connection order of the devices according to relationship between the attached device addresses in the device information and the device listing.
2 . The method according to claim 1 , wherein the attached device address is a serial attached SCSI (SAS) address.
3 . The detecting method according to claim 1 , wherein the inquiry comprises an InQuary command in small computer system interface (SCSI) command set.
4 . The method according to claim 1 , wherein the devices comprise data storage devices.
5 . The method according to claim 1 , wherein the devices comprise external hard disks.
6 . The method according to claim 1 , wherein the step of sorting the series connection order of the devices according to the relationship between the attached device addresses in the device information and the device listing comprises:
locating one of the devices as first device in the device listing, wherein the attached device address of the first device in the device listing is not recorded in the device listing.
7 . The method according to claim 6 , wherein the step of sorting the series connection order of the devices according to the relationship between the attached device addresses in the device information and the device listing further comprises:
locating one of the device as second device in the device listing, wherein the attached device address of the second device in the device listing is the address of the first device in the device listing.
8 . A computer readable storage media, for storing a computer program, wherein the computer program is suitable for being loaded into a computer system for executing the method in claim 1 .Join the waitlist — get patent alerts
Track US2008281992A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.