Bug 764898 (GLUSTER-3166) - Bring in support for Write-Once-Read-Many (WORM) FS
Summary: Bring in support for Write-Once-Read-Many (WORM) FS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3166
Product: GlusterFS
Classification: Community
Component: unclassified
Version: mainline
Hardware: x86_64
OS: Linux
medium
low
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-13 13:01 UTC by shishir gowda
Modified: 2013-12-09 01:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions: 3.3beta2


Attachments (Terms of Use)

Description shishir gowda 2011-07-13 13:01:45 UTC
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.

Comment 1 Anand Avati 2011-08-11 02:51:58 UTC
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)

Comment 2 Anand Avati 2011-08-11 06:37:24 UTC
CHANGE: http://review.gluster.com/210 (Change-Id: I7234909eecdc6af1b8482465f19d0490fcba94ad) merged in master by Vijay Bellur (vijay)

Comment 3 Shwetha H Panduranga 2011-09-21 03:00:13 UTC
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


Note You need to log in before you can comment on or make changes to this bug.