You can check whether the files placed in a SnapLock volume are committed to the WORM state.
Considerations
To determine whether a file is in the WORM state, you must determine whether the file has transitioned from a writable state to a read-only state in the SnapLock volume. You can check the WORM state state in one of the following ways:
-
By using NFS/CIFS: Attempt to change the last accessed timestamp of the file to a date earlier than its current setting.
This operation fails if the file is in the WORM state.
Note: The new date must be later than 2003 or it will be taken as wraparound date and the retention date can be extended.
- By using the fingerprint of file. You can compute fingerprint of the file by entering the following command:file fingerprint
-x /vol/sle0/file
A file has WORM protection if the file type is worm and the volume is a SnapLock
volume. The file's expiry date is present in the retention-time and formatted-retention-time fields. You should check this date against the ComplianceClock time (specified in the fields snaplock-compliance-clock and formatted-snaplock-compliance-clock fields) to determine whether the file has expired.