Am 09.06.2013 21:32, schrieb foster:
> It's not about that owfs is slow. It's about that python after removing
> ibutton still return connected.
>
No it's not python. It's owfs caching the directories.
> I don't speak about miliseconds I speak about 10-20 seconds/minute. After 1
> minute from removing ibutton it's normal that python return true by command
> isexists?
>
Please read my previous posting. It takes 120 seconds before owfs
forgets about the presence of a chip.
> In owfs filesystem after removing ibutton I SEE via ls, that directory
> disapear(cashed and uncached). So this directory can't be accessed anymore,
> also files inside.
>
Wrong! Please read my previous posting and try out my example.
With FUSE, it's perfectly possible to have a file or directory disappear
from directory listings while it is still there! That is because
readdir() and stat() are implemented independent from each other.
As a side note, you accepted the "present" node not to be listed in the
chip directory, still it is there, remember? It's the same for the chip
directory itself when uncached is readdir()ed.
Maybe it wasn't such a good idea to implement this thing as a
filesystem, because people make certain assumptions how filesystems work
(e.g. that files and directories that can't be listed in their parent
directory don't exist), which aren't true in the general case FUSE offers.
Kind regards
Jan
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers