[OpenAFS] how to set PAG for a process programmically?

Stephen Quinney stephen@jadevine.org.uk
Mon, 26 Aug 2013 07:54:17 +0100


--047d7bacbb5c947fe604e4d439dd
Content-Type: text/plain; charset=ISO-8859-1

You can do this from C by linking with the kopenafs library and calling the
k_setpag() function. Using that approach I've also created python and perl
XS wrappers to allow calling from those languages.


Stephen Quinney


On 26 August 2013 07:21, shuaijie wang <wangshuaijie@gmail.com> wrote:

> Hi all,
>
> We know that aklog -setpag can setup a new pag for the calling process,
> but how to do it programingly? Is there some API to accomplish this?
> Thanks very much.
>

--047d7bacbb5c947fe604e4d439dd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">You can do this from C by linking with the kopenafs librar=
y and calling the k_setpag() function. Using that approach I&#39;ve also cr=
eated python and perl XS wrappers to allow calling from those languages.<di=
v>
<br></div><div><br></div><div>Stephen Quinney</div></div><div class=3D"gmai=
l_extra"><br><br><div class=3D"gmail_quote">On 26 August 2013 07:21, shuaij=
ie wang <span dir=3D"ltr">&lt;<a href=3D"mailto:wangshuaijie@gmail.com" tar=
get=3D"_blank">wangshuaijie@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div>Hi all,<br><br></=
div>We know that aklog -setpag can setup a new pag for the calling process,=
 but how to do it programingly? Is there some API to accomplish this? <br>
</div>Thanks very much.<br></div>
</blockquote></div><br></div>

--047d7bacbb5c947fe604e4d439dd--