Re: mandatory lock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Harmeet Kalsi" <kharmeet@xxxxxxxxxxx>
> To: "Gluster-devel@xxxxxxxxxxx" <gluster-devel@xxxxxxxxxxx>
> Sent: Wednesday, January 7, 2015 5:55:43 PM
> Subject:  mandatory lock
> 
> Dear All.
> Would it be possible for someone to guide me in the right direction to enable
> the mandatory lock on a volume please.
> At the moment two clients can edit the same file at the same time which is
> causing issues.

I see code related to mandatory locking in posix-locks xlator (pl_writev, pl_truncate etc). To enable it you've to set "option mandatory-locks yes" in posix-locks xlator loaded on bricks (/var/lib/glusterd/vols/<volname>/*.vol). We've no way to set this option through gluster cli. Also, I am not sure to what extent this feature is tested/used till now. You can try it out and please let us know whether it worked for you :).

> Many thanks in advance
> Kind Regards
>  		 	   		  
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel@xxxxxxxxxxx
> http://www.gluster.org/mailman/listinfo/gluster-devel
> 
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-devel



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux