[Bugs] [Bug 1487502] able to delete files on file-based worm volume
bugzilla at redhat.com
bugzilla at redhat.com
Wed Sep 6 07:27:12 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1487502
Karthik U S <ksubrahm at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |ksubrahm at redhat.com
Assignee|bugs at gluster.org |ksubrahm at redhat.com
--- Comment #3 from Karthik U S <ksubrahm at redhat.com> ---
This is not bug. It is behaving as expected. You can see the "Updating the
retention time" section in the blog
http://blog.gluster.org/2016/07/worm-write-once-read-multiple-retention-and-compliance-2/
Once a file becomes worm-retained and you want to change the retention period
(till when it should be undeletable) of the file, you can use the "touch -a" or
"touch -t" or any other equivalent commands which updates the access time of
the file. We depend on the access time of the file to convert it from
worm-retained to worm state.
In your case, when you did the "touch -a testfile" it updated the access time
of the file to the current time. So after that the next "rm testfile" command
did the transition from worm-retained to worm state since the retention period
was expired, and deleted the file.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list