主权项 |
1. A method for use in recovering from metadata inconsistencies in storage systems, the method comprising:
detecting, by a file system management component, a metadata inconsistency in a portion of a file system, wherein the file system is managed by the file system management component, wherein the file system management provides a portion of storage space of a storage device of a storage system to a user as the file system; receiving a request, by a storage management component, from the file system management component for recovering the portion of the file system, wherein the file system management component is in communication with the storage management component, wherein the storage management component manages access to the storage device and is enabled to rebuild contents of the storage device, wherein the file system management and storage management components are included in the storage system; recovering, by the storage management component, the portion of the file system, wherein the storage management component recovers the portion of the file system by rebuilding the portion of the file system, wherein the file system management component provides information regarding the portion of the file system to the storage management component, wherein the information identifies a portion of the storage device for rebuilding the portion of the file system; and validating, by the file system management component, the portion of the file system that has been recovered by the storage management component, wherein the file system management component validates the portion of the file system by verifying consistency of the portion of the file system based on metadata information for the portion of the file system maintained by the file system management component. |