摘要 |
Provided are a method for judging the appending writing of WORM, and a storage device, which relate to the field of communications, and can more accurately judge whether a writing operation of a WORM file is an appending writing operation or not. The method specifically comprises: obtaining an initial pointer position of this writing operation; receiving a WRITE instruction sent by a user equipment, the WRITE instruction carrying the data size of this writing operation; according to the WRITE instruction, identifying the writing range of this writing operation; detecting whether the protection range of a WORM file and the writing range of this writing operation intersect or not; if an intersection is detected, detecting whether the data of this writing operation and the data of the WORM file in the intersecting part are the same or not; if yes, then judging that this writing operation is an appending writing operation; otherwise, judging that this writing operation is an modifying writing operation. |