-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New XrdFileCache option to invoke script on new file attach #180
Conversation
Hi Alja, Can you give me the exact syntax of the directive and what parameters get Andy On Tue, 2 Dec 2014, Alja Mrak-Tadel wrote:
|
Hi Alja, this pull request contains merges. Can you please make a clean one? Cheers, |
@ljanyst I made a new branch, cherry-picked my changes and override alja doug branch to avoid PR duplication. |
@abh3 pfc.newfilescripy < path > |
Hi Alja, You may want to cosider what happens when an rm occurs, Andy On Thu, 4 Dec 2014, Alja Mrak-Tadel wrote:
|
@abh3 |
Hi Alja, Sorry for ot being precise. I meant file deletion. Andy On Thu, 4 Dec 2014, Alja Mrak-Tadel wrote:
|
Good, thank you, Alja! :) |
@abh3 |
Hi Alja, Well, no. When a file is removed it goes to the pss layer. That layer Andy On Fri, 5 Dec 2014, Alja Mrak-Tadel wrote:
|
Currently XrdPssSys::Unlink() only creates XrdCl:FileSystem remove request. I don't think it is possible to propagate remove operation to XrdOucCacheIO, because this is related to a file descriptor in XrsPosix layer. |
@abh3 Is there other events too? Like Mkdir, Remdir, and Rename. |
Hi Alja, Indeed, if a caching layer was loaded then the remove should invoke the Andy On Mon, 8 Dec 2014, Alja Mrak-Tadel wrote:
|
Hi Alja, Yes, there are other events. However, I think you should just remove all http://xrootd.org/doc/dev4/ofs_config.htm#_Toc392685004 This is what this whole thing was meant for. I don't think you need to do Andy On Mon, 8 Dec 2014, Alja Mrak-Tadel wrote:
|
Should I close this PR ? |
If you think the problem is solved, of course you can :-) |
Hi Andy, Before closing this PR and creating a new PR related to your comment #180 (comment) I have propagated remove and rename actions from pss to cache in commit alja@6496d9c Should the following action be propagated to cache to: Alja |
Hi Alja, Yes, truncate() should propagate into the cache (well, only for writable caches anyway). Andy |
The feature can be implemented using OFS notification. There is no need to make change in caching proxy. |
Add 'newfilescript' option to invoke a command when new file is opened from proxy file cache server.
This was requested by Doug Benjamin.