From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 1 Feb 2016 19:54:58 -0200 Message-ID: From: Tiago Natel To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=e89a8f647adda6953b052abc6f55 Subject: [9fans] Fwd: lib9p: Add clunk callback to Srv struct Topicbox-Message-UUID: 80e58fbe-ead9-11e9-9d60-3106f5b1d025 --e89a8f647adda6953b052abc6f55 Content-Type: text/plain; charset=UTF-8 Someone here can help me? ---------- Forwarded message ---------- From: Tiago Natel Date: 2016-02-01 19:17 GMT-02:00 Subject: lib9p: Add clunk callback to Srv struct To: 9front@9front.org Hello folks, Is there a reason why lib9p doesn't have a clunk function pointer in Srv struct? I have a file server project using Srv and I want to know when no one client have a specific file opened. One way that I was able to get this working was forking 9front and adding a clunk callback to Srv structure. See the commit below: https://bitbucket.org/tiago4orion/plan9front/commits/5e1141f0a4aa98310cb0e2382c5c78c60fe73b4f My project usage of the clunk routine is here: https://bitbucket.org/tiago4orion/dchan/src/60dc3e45eb28c8a8289c177680120ef7f44e0925/fs.c?fileviewer=file-view-default#fs.c-680 This makes sense? Or is there better ways to achieve this? And if that makes sense, it can go upstream? Thanks. --e89a8f647adda6953b052abc6f55 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Someone here can help me?

---------- Forwarded message ----------
From: Tiago Natel <tiago.natel@neoway.com.br>
Date: 2016-02-01= 19:17 GMT-02:00
Subject: lib9p: Add clunk callback to Srv struct
To:= 9front@9front.org


Hello folks,

Is there a reason why lib9p do= esn't have a clunk function pointer in Srv struct?

=
I have a file server project using Srv and I want to know when no one = client have a specific file opened.=C2=A0

One way = that I was able to get this working was forking 9front and adding a clunk c= allback to Srv structure. See the commit below:

https://bitbucket.org/tiago4= orion/plan9front/commits/5e1141f0a4aa98310cb0e2382c5c78c60fe73b4f

My project usage of the clunk routine is here:

This makes sense? Or is there better ways to a= chieve this?
And if that makes sense, it can go upstream?

Thanks.


--e89a8f647adda6953b052abc6f55--