Re: Determine if a file is open in a cluster

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

 



Thanks Vijay/Raghavendra. We will try this.

 

Thanks and Regards,

Ram

 

From: raghavendra.hg@xxxxxxxxx [mailto:raghavendra.hg@xxxxxxxxx] On Behalf Of Raghavendra G
Sent: Thursday, January 11, 2018 11:20 PM
To: Vijay Bellur
Cc: Ram Ankireddypalle; gluster-devel@xxxxxxxxxxx
Subject: Re: [Gluster-devel] Determine if a file is open in a cluster

 

Another simple test in code would be to check whether inode->fd_list is empty as fd_list represents list of all fds opened on that inode.

 

On Fri, Jan 12, 2018 at 4:38 AM, Vijay Bellur <vbellur@xxxxxxxxxx> wrote:

Hi Ram,

 

Do you want to check this from within a translator? If so, you can look for GLUSTERFS_OPEN_FD_COUNT in xlators like dht, afr, ec etc. where they check for open file descriptors in various FOPs.

 

Regards,

Vijay

 

On Thu, Jan 11, 2018 at 10:40 AM, Ram Ankireddypalle <areddy@xxxxxxxxxxxxx> wrote:

Hi,

       Is it possible to find out within a cluster if a file is currently open by any of the clients/self-heal daemon or any other daemon’s within a cluster. Please point to the sample code in any of the Xlator which does such a check.

 

Thanks and Regards,

Ram

***************************Legal Disclaimer***************************

"This communication may contain confidential and privileged material for the

sole use of the intended recipient. Any unauthorized review, use or distribution

by others is strictly prohibited. If you have received the message by mistake,

please advise the sender by reply email and delete the message. Thank you."

**********************************************************************

 

_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel

 


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.gluster.org/mailman/listinfo/gluster-devel




--

Raghavendra G

***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************
_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxxx
http://lists.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