Directory Watchdog - Background file monitor service to initiate auto update library?
takoi
Fan Posts: 509 Joined: Oct 2009 Reputation: 6 Location: Norway |
2011-01-28 19:23
Post: #101
In case anyone else misunderstood i just want to make it clear that any event based solution will not work over network using smb, nfs or any kind of distributed file systems.
|
| find quote |
topfs2
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2011-01-28 19:30
Post: #102
ventech Wrote:In case anyone else misunderstood i just want to make it clear that any event based solution will not work over network using smb, nfs or any kind of distributed file systems. samba is ntfs over network essentially, it should work according to specs. And any eventdriven solution will work if the protocol exposes it, for those protocols which doesn't a watchdog would obviously be a fallback. Which is also why we want to do a proper abstraction for it where the protocol implementation either implement the events or it fallbacks to watchdog If you have problems please read this before posting Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() "Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#." |
| find quote |
takoi
Fan Posts: 509 Joined: Oct 2009 Reputation: 6 Location: Norway |
2011-01-28 19:51
Post: #103
what protocol expose it?
|
| find quote |
topfs2
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2011-01-28 20:19
Post: #104
ventech Wrote:what protocol expose it? Any protocol which expose it will be instant and nice, local files and hopefully smb. Not sure about others, uPnP perhaps and maybe nfs? I am not sure as said. At any rate, those which does not support it would still have a nice shared fallback technique, which is exactly what is proposed here, but alot more future proof If you have problems please read this before posting Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() "Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#." |
| find quote |
takoi
Fan Posts: 509 Joined: Oct 2009 Reputation: 6 Location: Norway |
2011-01-28 21:14
Post: #105
well i cant seem to find anything about how to do this over smb...
btw. just noticed that jdk7 will implement a watch service which does exactly what you explained, fallbacks to polling: http://java.sun.com/developer/technicalA...ase/nio/#6 Maybe you could take something from the api or code. If this isnt finished til the language refactor and java7 then at least an addon should be easy to produce |
| find quote |
topfs2
Team-XBMC Developer Joined: Dec 2007 Reputation: 8 |
2011-01-28 21:35
Post: #106
ventech Wrote:well i cant seem to find anything about how to do this over smb... The code would most likely be in the vfs, i.e. each vfs addon needs to implement it. So for this to happen vfs needs to be redesigned. Something I have started with extremely rudimentary in my github If you have problems please read this before posting Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() "Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#." |
| find quote |
evlo
Senior Member Posts: 104 Joined: Jun 2009 Reputation: 0 |
2011-03-16 17:22
Post: #107
I have slow PC running XBMC and if i set library to update after start then i can't play movies without lags. If update is not running it is ok. So is there some way to make xbmc update library from fileserver (samba) on background using very low priority on cpu?
|
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/149/badge.gif)
Search
Help