Patent ID: 8782014

Claim:
A method for maintaining data integrity of a storage device, comprising: receiving, by a control unit comprising a processor, a request from a host system to create an access monitoring session for a data range on a volume of the storage device; determining a session identification (ID) for the access monitoring session for the data range on the volume; creating an entry in an access monitoring session table for the session ID, wherein the entry adds the access monitoring session with the session ID for the data range on the volume to the access monitoring session table; wherein request parameters are included in the request from the host system to create the access monitoring session, the request parameters denote access to the data range on the volume for the session ID and the request parameters are stored in the access monitoring session table; controlling access to the data range on the volume for the session ID based on the request parameters stored in the access monitoring session table; wherein the request parameters, included in the request from the host system that is requesting creation of the access monitoring session, comprise an ownership type, ownership types comprising single, single with alternates, all joined, and all attached; in response to receiving a request to leave the access monitoring session from a host system, searching by a control unit for the session ID in the access monitoring session table; failing the request to leave when the session ID is not found in the access monitoring session table; when the session ID is found in the access monitoring session table, removing the access monitoring session from the access monitoring session table: when the host system is a last host system in the access monitoring session and when the host system is a last owner of the access monitoring session; when the session ID is found in the access monitoring session table, resetting to default parameters for the host system when the host system is not the last host system in the access monitoring session and when the host system is not the last owner of the access monitoring session; and when the control unit does not permit the last host system to leave the access monitoring session, requiring the last host system to issue a remove request.