Claims
- 1. A computerized method for managing partitions on storage devices in a computer system comprising:
capturing a partition when it is enumerated from a storage device; presenting the captured partition to a volume manager; assigning control of the captured partition to the volume manager; and associating the captured partition with the volume manager.
- 2. The computerized method of claim 1, further comprising:
requesting notification when a volume manager registers; and presenting the captured partition to each registered volume manager in registration order.
- 3. The computerized method of claim 1, further comprising:
determining the volume manager associated with a captured partition that is removed from the system; removing the captured partition from the control of the associated volume manager; and disassociating the captured partition and the volume manager.
- 4. The computerized method of claim 1, further comprising:
identifying which captured partitions are on a storage device being deleted from the system; determining the volume manager associated with each identified captured partition; querying the volume manager for each identified captured partition to create volume dependencies; removing each identified captured partition from the control of the associated volume manager; and disassociating each identified captured partition and the volume manager.
- 5. The computerized method of claim 4, further comprising:
informing an operating system of the volume dependencies.
- 6. The computerized method of claim 5, wherein the identified captured partition is removed from the control of the associated volume manager after the operating system has disconnected the storage device.
- 7. The computerized method of claim 1, wherein the association between a captured partition and a volume manager are stored in a data structure.
- 8. The computerized method of claim 7, wherein the data structure is created in the computer system memory when the computer is booted.
- 9. A computer system comprising:
a processing unit; a system memory coupled to the processing unit through a system bus; a computer-readable medium coupled to the processing unit through a system bus; and a partition manager executed from the computer-readable medium by the processing unit, wherein the partition manager causes the processing unit to capture a partition enumerated from the computer-readable medium, present the captured partition to a volume manager, assign control of the captured partition to the volume manager, and create a association between the captured partition and the volume manager.
- 10. The computer system of claim 9, wherein the partition manager further causes the processing unit to store the association between the captured partition and the volume manager in system memory.
- 11. The computer system of claim 9, wherein the partition manager further causes the processing unit to notify the partition manager when a volume manager registers, and causes the processing unit to present the captured partition to each registered volume manager in registration order.
- 12. The computer system of claim 9, wherein the partition manager further causes the processing unit to identify a partition that is no longer available in the system, to remove the identified partition from the control of the associated volume manager, and to delete the association between the captured partition and the volume manager.
- 13. The computer system of claim 12, wherein the partition manager further causes the processing unit to disassociate the identified partition and the volume manager.
- 14. The computer system of claim 9, wherein the partition manager further causes the processing unit to querying the volume manager for the identified captured partition to create volume dependencies in system memory.
- 15. A computer-readable medium having computer-executable components comprising:
a plug and play manager for detecting the presence of a physical device in a computer system and for assigning a device driver responsibility for controlling access to the physical device; a partition manager communicatively coupled to the device driver for capturing a plurality of partition device objects enumerated from the physical device by the device driver, wherein each partition device object corresponds to a portion of the physical device, the partition manager further communicatively coupled to the plug and play manager; a volume manager communicatively coupled to the partition manager for accepting a partition device object presented by the partition manager, for creating a logical volume device object from at least one of the accepted partition device objects, and further communicatively coupled to the plug and play manager for registering the creation of the logical volume device object, wherein the logical volume device object comprises a device name and a unique volume identifier for a logical volume; a mount manager communicatively coupled to the plug and play manager for receiving notification of the creation of each volume device object, and for establishing a persistent association between the unique volume identifier of each volume device object and a mount manager name; and an object manager communicatively coupled to the partition manager, the corresponding volume manager, and the mount manager for creating a symbolic link object for each mount manager name that causes a reference to the mount name to be directed to the device driver that enumerated the partition device object comprising the logical volume, and for managing the partition device objects, the volume device objects, and the symbolic link objects.
- 16. The computer-readable medium of claim 15, wherein the partition manager further creates an association between a device name for each partition device object and a unique identifier for the volume manager that accepted the partition device object.
- 17. The computer-readable medium of claim 16, wherein the partition manager further removes a partition device object from the volume manager that accepted the partition device object, and deletes the association between the device name for the partition device object and the unique identifier for the volume manager that accepted the partition device object when the portion of the physical device represented by the partition device object is inaccessible.
- 18. The computer-readable medium of claim 17, wherein the partition manager deletes the association when the plug and play manager communicates that the physical device has been disconnected from the computer system.
- 19. The computer-readable medium of claim 15, wherein the partition manager further queries the volume manager for a list of logical volume device objects created from an accepted partition device object.
- 20. The computer-readable medium of claim 19, wherein the partition manager further communicates the list of logical volume device objects to the plug and play manager.
- 21. A computer-readable medium having stored thereon a partition manager data structure comprising:
a first data field containing data representing a device name for a partition on a physical device; and a second data field containing data representing an identifier for a volume manager that manages the partition identified by the device name in the first data field.
RELATED APPLICATIONS
[0001] This application is related to co-assigned U.S. patent applications titled “Logical Volume Mount Manager” (docket number 777.125US1), “Persistent Names for Logical Volumes,” (docket number 777.124US1), and “Persistent Volume Mount Points” (docket number 777.123US1) which are hereby incorporated by reference.