<div>                As far as I remember there are only 2 types of locking in Linux:<br>- Advisory<br>- Mandatory<br><br>In order to use mandatory locking, you need to pass the "mand" mount option to the FUSE client(mount -o mand,<my other mount options> ...) and chmod g+s,g-x /<FUSE PATH>/<Target file><br><br><br>Best Regards,<br>Strahil Nikolov<br>            </div>            <div class="yahoo_quoted" style="margin:10px 0px 0px 0.8ex;border-left:1px solid #ccc;padding-left:1ex;">                        <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">                                <div>                    В сряда, 1 февруари 2023 г., 13:22:59 ч. Гринуич+2, Maaz Sheikh <maaz.sheikh@impetus.com> написа:                </div>                <div><br></div>                <div><br></div>                <div><div id="yiv5808026394"> <style type="text/css">#yiv5808026394 P {margin-top:0;margin-bottom:0;}</style><div dir="ltr"><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);" class="yiv5808026394elementToProof">Team, please let us know if u have any feedback.</div><div id="yiv5808026394appendonsend"></div><hr style="display:inline-block;width:98%;" tabindex="-1"><div id="yiv5808026394divRplyFwdMsg" dir="ltr"><font style="font-size:11pt;" face="Calibri, sans-serif" color="#000000"><b>From:</b> Maaz Sheikh<br><b>Sent:</b> Wednesday, January 25, 2023 4:51 PM<br><b>To:</b> gluster-devel@gluster.org <gluster-devel@gluster.org>; gluster-users@gluster.org <gluster-users@gluster.org><br><b>Subject:</b> Regarding Glusterfs file locking</font><div> </div></div><style type="text/css"><!--#yiv5808026394 p  {margin-top:0;margin-bottom:0;}--></style><div dir="ltr"><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Hi,</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Greetings of the day,</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><div style="font-size:12pt;margin:0px;background-color:rgb(255,255,255);" class="yiv5808026394x_ContentPasted0 yiv5808026394x_ContentPasted2 yiv5808026394x_elementToProof"><b>Our configuration is like:</b></div><div style="font-size:12pt;margin:0px;background-color:rgb(255,255,255);" class="yiv5808026394x_ContentPasted0 yiv5808026394x_ContentPasted2 yiv5808026394x_elementToProof">We have installed both glusterFS server and GlusterFS client on node1 as well as node2.<span style="font-size:12pt;"> We have mounted node1 volume to both nodes.</span></div></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><b>Our use case is :</b></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0">From glusterFS node 1, we have to take an exclusive lock and open a file (which is a shared file between both the nodes) and we should write/read in that file.<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0">From <span style="background-color:rgb(255,255,255);display:inline!important;" class="yiv5808026394x_ContentPasted1">glusterFS node 2</span>, we should not be able to read/write that file.<br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0"><b>Now the problem we are facing is:</b></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0">From node1, we are able to take an exclusive lock and the program has started writing in that shared file.</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof yiv5808026394x_ContentPasted0">From node2, we are able to read and write on that file which should not happen because node1 has already acquired the lock on that file.</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Therefore, requesting you to please provide us a solution asap.</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof"><br></div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Thanks,</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Maaz Sheikh</div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Associate Software Engineer </div><div style="font-family:Calibri, Arial, Helvetica, sans-serif;font-size:12pt;color:rgb(0,0,0);background-color:rgb(255,255,255);" class="yiv5808026394x_elementToProof">Impetus Technologies India </div></div><br><hr><font size="1" face="Verdana" color="Gray"><br><br><br><br><br><br>NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.<br></font></div></div>-------<br><br>Community Meeting Calendar:<br>Schedule -<br>Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br>Bridge: <a href="https://meet.google.com/cpu-eiue-hvk" target="_blank">https://meet.google.com/cpu-eiue-hvk</a><br><br>Gluster-devel mailing list<br><a ymailto="mailto:Gluster-devel@gluster.org" href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br><a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a><br><br></div>            </div>                </div>