Is there a way to use inotify on remote filesystems (specifically WebDAV)?











up vote
2
down vote

favorite












I have Box.com successfully mounted with davfs2 (webdav) to a local location.
Now I am trying to trigger actions on files created and synced in the Webdav folder.



Unfortunately this is not working. I see no inotify events when files are synced to the local Webdav folder.
It does pick-up any local file transactions though, so I am pretty confident inotify is working properly.



Anyone else using Webdav (davfs2) and inotify?










share|improve this question




















  • 1




    Related: How do I use inotify or named pipes over SSHFS?
    – Marco
    Oct 27 '15 at 13:12










  • WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
    – Diagon
    Nov 28 at 6:34















up vote
2
down vote

favorite












I have Box.com successfully mounted with davfs2 (webdav) to a local location.
Now I am trying to trigger actions on files created and synced in the Webdav folder.



Unfortunately this is not working. I see no inotify events when files are synced to the local Webdav folder.
It does pick-up any local file transactions though, so I am pretty confident inotify is working properly.



Anyone else using Webdav (davfs2) and inotify?










share|improve this question




















  • 1




    Related: How do I use inotify or named pipes over SSHFS?
    – Marco
    Oct 27 '15 at 13:12










  • WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
    – Diagon
    Nov 28 at 6:34













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have Box.com successfully mounted with davfs2 (webdav) to a local location.
Now I am trying to trigger actions on files created and synced in the Webdav folder.



Unfortunately this is not working. I see no inotify events when files are synced to the local Webdav folder.
It does pick-up any local file transactions though, so I am pretty confident inotify is working properly.



Anyone else using Webdav (davfs2) and inotify?










share|improve this question















I have Box.com successfully mounted with davfs2 (webdav) to a local location.
Now I am trying to trigger actions on files created and synced in the Webdav folder.



Unfortunately this is not working. I see no inotify events when files are synced to the local Webdav folder.
It does pick-up any local file transactions though, so I am pretty confident inotify is working properly.



Anyone else using Webdav (davfs2) and inotify?







inotify webdav davfs2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 30 '15 at 23:25









Gilles

524k12610481578




524k12610481578










asked Oct 27 '15 at 13:00









yograf

1112




1112








  • 1




    Related: How do I use inotify or named pipes over SSHFS?
    – Marco
    Oct 27 '15 at 13:12










  • WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
    – Diagon
    Nov 28 at 6:34














  • 1




    Related: How do I use inotify or named pipes over SSHFS?
    – Marco
    Oct 27 '15 at 13:12










  • WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
    – Diagon
    Nov 28 at 6:34








1




1




Related: How do I use inotify or named pipes over SSHFS?
– Marco
Oct 27 '15 at 13:12




Related: How do I use inotify or named pipes over SSHFS?
– Marco
Oct 27 '15 at 13:12












WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
– Diagon
Nov 28 at 6:34




WebDAV is specifically mentioned in this link: Fsnotify and FUSE (which I added to the answer below).
– Diagon
Nov 28 at 6:34










1 Answer
1






active

oldest

votes

















up vote
2
down vote













According to lwn.net - Filesystem notification, part 2: A deeper investigation of inotify events on remote file systems (which WebDAV is) are not reported:




For example, it means that inotify does not inform us of events on monitored objects via a remote filesystem (e.g. NFS) operation.




Notifications are implemented in the kernel. In case a file is changed, the kernel sends a notification. But on remote file systems the change doesn't involve the local kernel. Therefore no notification is generated.



For this to work, the notifications would need to be implemented on the server and then forwarded to the client.



Related:




  • inotify with NFS

  • How do I use inotify or named pipes over SSHFS?


  • Fsnotify and FUSE (WebDAV is specifically mentioned here.)






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f238956%2fis-there-a-way-to-use-inotify-on-remote-filesystems-specifically-webdav%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    2
    down vote













    According to lwn.net - Filesystem notification, part 2: A deeper investigation of inotify events on remote file systems (which WebDAV is) are not reported:




    For example, it means that inotify does not inform us of events on monitored objects via a remote filesystem (e.g. NFS) operation.




    Notifications are implemented in the kernel. In case a file is changed, the kernel sends a notification. But on remote file systems the change doesn't involve the local kernel. Therefore no notification is generated.



    For this to work, the notifications would need to be implemented on the server and then forwarded to the client.



    Related:




    • inotify with NFS

    • How do I use inotify or named pipes over SSHFS?


    • Fsnotify and FUSE (WebDAV is specifically mentioned here.)






    share|improve this answer



























      up vote
      2
      down vote













      According to lwn.net - Filesystem notification, part 2: A deeper investigation of inotify events on remote file systems (which WebDAV is) are not reported:




      For example, it means that inotify does not inform us of events on monitored objects via a remote filesystem (e.g. NFS) operation.




      Notifications are implemented in the kernel. In case a file is changed, the kernel sends a notification. But on remote file systems the change doesn't involve the local kernel. Therefore no notification is generated.



      For this to work, the notifications would need to be implemented on the server and then forwarded to the client.



      Related:




      • inotify with NFS

      • How do I use inotify or named pipes over SSHFS?


      • Fsnotify and FUSE (WebDAV is specifically mentioned here.)






      share|improve this answer

























        up vote
        2
        down vote










        up vote
        2
        down vote









        According to lwn.net - Filesystem notification, part 2: A deeper investigation of inotify events on remote file systems (which WebDAV is) are not reported:




        For example, it means that inotify does not inform us of events on monitored objects via a remote filesystem (e.g. NFS) operation.




        Notifications are implemented in the kernel. In case a file is changed, the kernel sends a notification. But on remote file systems the change doesn't involve the local kernel. Therefore no notification is generated.



        For this to work, the notifications would need to be implemented on the server and then forwarded to the client.



        Related:




        • inotify with NFS

        • How do I use inotify or named pipes over SSHFS?


        • Fsnotify and FUSE (WebDAV is specifically mentioned here.)






        share|improve this answer














        According to lwn.net - Filesystem notification, part 2: A deeper investigation of inotify events on remote file systems (which WebDAV is) are not reported:




        For example, it means that inotify does not inform us of events on monitored objects via a remote filesystem (e.g. NFS) operation.




        Notifications are implemented in the kernel. In case a file is changed, the kernel sends a notification. But on remote file systems the change doesn't involve the local kernel. Therefore no notification is generated.



        For this to work, the notifications would need to be implemented on the server and then forwarded to the client.



        Related:




        • inotify with NFS

        • How do I use inotify or named pipes over SSHFS?


        • Fsnotify and FUSE (WebDAV is specifically mentioned here.)







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 28 at 14:38









        Diagon

        21317




        21317










        answered Oct 27 '15 at 13:40









        Marco

        24.9k682116




        24.9k682116






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f238956%2fis-there-a-way-to-use-inotify-on-remote-filesystems-specifically-webdav%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Morgemoulin

            Scott Moir

            Souastre