Thanks for the help! I will stop working with inotify, and try other
solutions. My hope was that owfs would have some possibility to perform a
custom action when it detects a change.


2014-03-14 15:14 GMT+01:00 Vajk Fekete <vaj...@gmail.com>:

> Yes.
>
> Inotify is integrated on the filesystem level. It captures changes to
> files that happen using the filesystem api.
> With owfs, the files and dirs are not real files. Not even a real
> filesystem. They are presented using fuse. The key is, that most of the
> changes do not happen thru the filesystem front end, but in the back-end.
> Like a temperature changes. Inotify cannot notice this.
>
> Also on a lower level, owfs itself will only notice a new device on the
> bus if it searches for it. And it does not search until you ask it to.
>
> Vajk
>
>
> On Fri, Mar 14, 2014 at 3:03 PM, Rob <het.oos...@gmail.com> wrote:
>
>> So you mean checking without using inotify?
>>
>>
>> 2014-03-14 14:15 GMT+01:00 Vajk Fekete <vaj...@gmail.com>:
>>
>>> afaik owfs will not check the bus until you do an ls (or something
>>> else). so it is not there until you check it.  you cannot avoid checking
>>> the folder in an infinite loop.
>>>
>>> Vajk
>>>
>>>
>>> On Fri, Mar 14, 2014 at 2:09 PM, Rob <het.oos...@gmail.com> wrote:
>>>
>>>> I am trying to make a punch clock with owfs and iButtons. Therefore I
>>>> want to call a link when a new iButton is put on the reader. When I look at
>>>> the owfs uncached directory, everything works as expected. An iButton is
>>>> detected immediately when put on the reader, and also is the directory of
>>>> the iButton removed immediately after the iButton is removed.
>>>>
>>>> I tried to detect changed on the uncached directory with pyinotify
>>>> (inotify). Unfortunately pyinotify doesn't detect a new directory in the
>>>> owfs (Pynotify detects when I give a ls command from the shell in the
>>>> uncached directory so something is working)
>>>>
>>>> /usr/lib/owfs/owfs version:
>>>>     2.8p15
>>>> libow version:
>>>>     2.8p15
>>>>
>>>> Is inotify the way to go for doing what I want, or is there a better
>>>> solution?
>>>>
>>>> If owfs should be working with inotify, how do I set owfs up?
>>>>
>>>> Regards,
>>>>
>>>> Rob
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their
>>>> applications. Written by three acclaimed leaders in the field,
>>>> this first edition is now available. Download your free book today!
>>>> http://p.sf.net/sfu/13534_NeoTech
>>>> _______________________________________________
>>>> Owfs-developers mailing list
>>>> Owfs-developers@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Learn Graph Databases - Download FREE O'Reilly Book
>>> "Graph Databases" is the definitive new guide to graph databases and
>>> their
>>> applications. Written by three acclaimed leaders in the field,
>>> this first edition is now available. Download your free book today!
>>> http://p.sf.net/sfu/13534_NeoTech
>>> _______________________________________________
>>> Owfs-developers mailing list
>>> Owfs-developers@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and their
>> applications. Written by three acclaimed leaders in the field,
>> this first edition is now available. Download your free book today!
>> http://p.sf.net/sfu/13534_NeoTech
>> _______________________________________________
>> Owfs-developers mailing list
>> Owfs-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to