From: kingsmasher1 <raj...@gm...> - 2014-07-08 14:45:05
|
Hi Richard, Thanks for the response. Yes, it does, but we are using the high level API sets (struct fuse_operations). If you see the man page for release here: http://fuse.sourceforge.net/doxygen/structfuse__operations.html#abac8718cdfc1ee273a44831a27393419 Multiple processes can invoke open( ), in which case only the *last release matters, *how to know which is the last release call? Thanks kingsmasher1 On Tue, Jul 8, 2014 at 7:55 PM, Richard Sharpe [via Fuse] < ml-...@n3...> wrote: > On Tue, Jul 8, 2014 at 2:36 AM, kingsmasher1 <[hidden email] > <http://user/SendEmail.jtp?type=node&node=12308&i=0>> wrote: > > > > > Hi Miklos, > > > > Do we have any fuse data structure which can help us to know, if there > are > > or how many references to an open file is there? > > > > My idea is, we know a file can be opened by multiple processes, in which > > case only the last release matters, and in that case (when the last > release > > happens), i need to set a flag called file_lock. > > > > So do we have any fuse data structure to help me know that? > > Isn't this function: > > > http://fuse.sourceforge.net/doxygen/structfuse__lowlevel__ops.html#abc49c6310cd0eaddf116988426ca21d2 > > called when the last close occurs? > > -- > Regards, > Richard Sharpe > (何以解憂?唯有杜康。--曹操) > > ------------------------------------------------------------------------------ > > Open source business process management suite built on Java and Eclipse > Turn processes into business applications with Bonita BPM Community > Edition > Quickly connect people, data, and systems into organized workflows > Winner of BOSSIE, CODIE, OW2 and Gartner awards > http://p.sf.net/sfu/Bonitasoft > _______________________________________________ > fuse-devel mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=12308&i=1> > https://lists.sourceforge.net/lists/listinfo/fuse-devel > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://fuse.996288.n3.nabble.com/Is-there-any-fuse-data-structure-to-know-the-number-of-references-to-an-open-file-tp12307p12308.html > To unsubscribe from Is there any fuse data structure to know the number > of references to an open file?, click here > <http://fuse.996288.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=12307&code=cmFqLmt1bWFyLnNhbnB1aUBnbWFpbC5jb218MTIzMDd8MTUwNTg3MDEzOA==> > . > NAML > <http://fuse.996288.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://fuse.996288.n3.nabble.com/Is-there-any-fuse-data-structure-to-know-the-number-of-references-to-an-open-file-tp12307p12309.html Sent from the Fuse mailing list archive at Nabble.com. |