Hide Forgot
A worm FS, allows creation of files/dirs. But it does not support rename/deletion/truncate of these files/dirs. It allows write, only if they are for appending.
CHANGE: http://review.gluster.com/23 (This xlator will allow files to be opened for write in append mode) merged in master by Anand Avati (avati)
CHANGE: http://review.gluster.com/210 (Change-Id: I7234909eecdc6af1b8482465f19d0490fcba94ad) merged in master by Vijay Bellur (vijay)
Verified on the branch 3.3beta2. Steps executed: Testing file operations ---------------------------- 1) root@Unbuntu1:/opt/client1# touch a.txt 2) root@Unbuntu1:/opt/client1# echo "Hello" > a.txt -bash: a.txt: Read-only file system 3) root@Unbuntu1:/opt/client1# cat a.txt 4) root@Unbuntu1:/opt/client1# echo "Hello" >> a.txt 5) root@Unbuntu1:/opt/client1# cat a.txt Hello 6) root@Unbuntu1:/opt/client1# rm a.txt rm: cannot remove `a.txt': Read-only file system 7) root@Unbuntu1:/opt/client1# :>a.txt -bash: a.txt: Read-only file system 8) root@Unbuntu1:/opt/client1# mv a.txt b.txt mv: cannot move `a.txt' to `b.txt': Read-only file system Testing directory operations -------------------------------------- 1) root@Unbuntu1:/opt/client1# mkdir test 2) root@Unbuntu1:/opt/client1# rmdir test rmdir: failed to remove `test': Read-only file system 3) root@Unbuntu1:/opt/client1# rm -rf test rm: cannot remove directory `test': Read-only file system 4) root@Unbuntu1:/opt/client1# mv test test1 mv: cannot move `test' to `test1': Read-only file system