[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fuse-devel
Subject:    Re: [fuse-devel] Notify application(Inotify based mechanism) on File/Folder creation or deletion usi
From:       dhaval bc <dhavalbc () gmail ! com>
Date:       2016-03-19 4:28:11
Message-ID: CACKn6oMuQ=mwbDXRGf0NLy4zd-WOVcFb5KGiUe9iUzjYgvWgvg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi kyle,

Thanks for the clarification.

I guess I will have to wait for stef to release his fuse kernel / libfuse
patches for inotify support.

BR
Dhaval
On 18 Mar 2016 05:13, "Kyle Lippincott" <fusedevel@pewpew.net> wrote:

>
>
> On Thu, Mar 17, 2016 at 11:14 AM, dhaval bc <dhavalbc@gmail.com> wrote:
>
>> Hi Erik,
>>
>> thanks for you response.
>>
>> yes my problem is similar to that being discussed in the thread that you
>> mentioned.
>>
>> But I have few doubts on this.
>>
>> Firstly I have fuse FS part that I have implemented using high-level fuse
>> API's, If I am not wrong there is already a mechanism to notify folder/file
>> deletion using libfuse using low-level fuse api
>> fuse_lowlevel_notify_delete(), from the libfuse code for this API, I see
>> that this api requires inode numbers for parent and child.
>>
>> How can I call this API to notify of folder/file deletion from my fuse fs
>> implemented using high level fuse API as it is unaware of these inode
>> numbers ?
>>
>
> I've made this mistake in the past: these functions are *not related* to
> inotify.  These functions are used for cache control in the kernel ("key,
> kernel, I deleted this file, invalidate anything you know about it").
>  'notify' here is to signal that these are not something the kernel sends
> into the lowlevel library, they send an unprompted message *to* the
> kernel.  They do *not* cause inotify events to make it to watchers.  If you
> want inotify support for remote mutations, it needs changes in the kernel,
> in the filesystem daemon, and possibly in the program that set up the
> inotify watches.
>
>> BR,
>>
>> Dhaval
>>
>>
>> On 17 Mar 2016 15:47, "Erik Nellessen" <
>> erik.nellessen@informatik.hu-berlin.de> wrote:
>>
>>> Hi,
>>>
>>> I am not sure if I understand you correctly, but we just discussed
>>> inotify support in libfuse. Please have a look at
>>> https://sourceforge.net/p/fuse/mailman/fuse-devel/thread/56E69275.1070106%40informatik.hu-berlin.de/
>>> and tell us if this thread is about your problem.
>>>
>>> Kind regards,
>>> Erik Nellessen
>>>
>>>
>>> Am 17.03.2016 um 10:30 schrieb dhaval bc:
>>>
>>> Hi All,
>>>
>>> I want to notify application when a file/folder is created or deleted
>>> using inotify based mechanism.
>>>
>>> I currently have fuse fs part implemented using fuse high-level API's,
>>> now I want to check if there is a possibility of notifying application of
>>> file/folder creation or deletion using libfuse high-level api's.
>>>
>>> BR,
>>> Dhaval
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Transform Data into Opportunity.
>>> Accelerate data analysis in your applications with
>>> Intel Data Analytics Acceleration Library.
>>> Click to learn more.http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>>>
>>>
>>>
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
>> --
>> fuse-devel mailing list
>> To unsubscribe or subscribe, visit
>> https://lists.sourceforge.net/lists/listinfo/fuse-devel
>>
>>
>

[Attachment #5 (text/html)]

<p dir="ltr">Hi kyle,</p>
<p dir="ltr">Thanks for the clarification.</p>
<p dir="ltr">I guess I will have to wait for stef to release his fuse kernel / \
libfuse patches for inotify support.</p> <p dir="ltr">BR<br>
Dhaval</p>
<div class="gmail_quote">On 18 Mar 2016 05:13, &quot;Kyle Lippincott&quot; &lt;<a \
href="mailto:fusedevel@pewpew.net">fusedevel@pewpew.net</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 17, 2016 at 11:14 AM, \
dhaval bc <span dir="ltr">&lt;<a href="mailto:dhavalbc@gmail.com" \
target="_blank">dhavalbc@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><p dir="ltr">Hi Erik,</p><p>thanks for you \
response.<br></p><p>yes my problem is similar to that being discussed in the thread \
that you mentioned.</p><p>But I have few doubts on this.</p><p>Firstly I have fuse FS \
part that I have implemented using high-level fuse API&#39;s, If I am not wrong there \
is already a mechanism to notify folder/file deletion using libfuse using low-level \
fuse api fuse_lowlevel_notify_delete(), from the libfuse code for this API, I see \
that this api requires inode numbers for parent and child.</p><p>How can I call this \
API to notify of folder/file deletion from my fuse fs implemented using high level \
fuse API as it is unaware of these inode numbers \
?</p></div></blockquote><div><br></div><div>I&#39;ve made this mistake in the past: \
these functions are *not related* to inotify.   These functions are used for cache \
control in the kernel (&quot;key, kernel, I deleted this file, invalidate anything \
you know about it&quot;).   &#39;notify&#39; here is to signal that these are not \
something the kernel sends into the lowlevel library, they send an unprompted message \
*to* the kernel.   They do *not* cause inotify events to make it to watchers.   If \
you want inotify support for remote mutations, it needs changes in the kernel, in the \
filesystem daemon, and possibly in the program that set up the inotify \
watches.</div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div \
dir="ltr"><p>BR,</p><p>Dhaval<br></p><p><br></p><div class="gmail_quote">On 17 Mar \
2016 15:47, &quot;Erik Nellessen&quot; &lt;<a \
href="mailto:erik.nellessen@informatik.hu-berlin.de" \
target="_blank">erik.nellessen@informatik.hu-berlin.de</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    I am not sure if I understand you correctly, but we just discussed
    inotify support in libfuse. Please have a look at
    <a href="https://sourceforge.net/p/fuse/mailman/fuse-devel/thread/56E69275.1070106%40informatik.hu-berlin.de/" \
target="_blank">https://sourceforge.net/p/fuse/mailman/fuse-devel/thread/56E69275.1070106%40informatik.hu-berlin.de/</a>
  and tell us if this thread is about your problem.<br>
    <br>
    Kind regards,<br>
    Erik Nellessen<div><div><br>
    <br>
    <div>Am 17.03.2016 um 10:30 schrieb dhaval
      bc:<br>
    </div>
    </div></div><blockquote type="cite"><div><div>
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Hi All,<br>
                <br>
              </div>
              I want to notify application when a file/folder is created
              or deleted using inotify based mechanism.<br>
              <br>
            </div>
            I currently have fuse fs part implemented using fuse
            high-level API&#39;s, now I want to check if there is a
            possibility of notifying application of file/folder creation
            or deletion using libfuse high-level api&#39;s.<br>
            <br>
          </div>
          BR,<br>
        </div>
        Dhaval<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>------------------------------------------------------------------------------
 Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=278785231&amp;iu=/4140" \
target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=278785231&amp;iu=/4140</a></pre>
  <br>
      <fieldset></fieldset>
      <br>
    </blockquote>
    <br>
  </div>

</blockquote></div>
</div>
<br>------------------------------------------------------------------------------<br>
 Transform Data into Opportunity.<br>
Accelerate data analysis in your applications with<br>
Intel Data Analytics Acceleration Library.<br>
Click to learn more.<br>
<a href="http://pubads.g.doubleclick.net/gampad/clk?id=278785231&amp;iu=/4140" \
rel="noreferrer" target="_blank">http://pubads.g.doubleclick.net/gampad/clk?id=278785231&amp;iu=/4140</a><br>--<br>
 fuse-devel mailing list<br>
To unsubscribe or subscribe, visit <a \
href="https://lists.sourceforge.net/lists/listinfo/fuse-devel" rel="noreferrer" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/fuse-devel</a><br> \
<br></blockquote></div><br></div></div> </blockquote></div>



------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140

-- 
fuse-devel mailing list
To unsubscribe or subscribe, visit https://lists.sourceforge.net/lists/listinfo/fuse-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic