[OpenAFS] acrobat reader cannot save to AFS

Jonathan Nilsson jnilsson@uci.edu
Tue, 7 Feb 2012 11:56:42 -0800


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

>
> RT issue https://rt.central.org/rt/Ticket/Display.html?id=130548 is most
> likely related
>

Yep, that looks like the same symptoms...


> > Operation                      Result
> > IRP_MJ_CREATE                  NAME NOT FOUND
>
> Does the file exist?

No, the file does not exist, neither before nor after attempting File ->
Save As -> PDF

 What mode is the create?

In the detail field for the IRP_MJ_CREATE operation, I see:
Desired Access: Read Attributes, Synchronize
Disposition: Open
Options: Synchronous IO Non-Alert
Attributes: N
ShareMode: Read,W Write, Delete
AllocationSize: n/a


>  In the logs I've viewed
> as a part of 130548 the create mode is "open" which means only open the
> file if it already exists.  If it doesn't already exist, the error will
> correctly be NAME NOT FOUND.
>

 Your explanation makes sense... with my limited understanding of what is
going on under the hood, I figured that an operation with the name "CREATE"
meant it was trying to create something.


> > IRP_MJ_FILE_SYSTEM_CONTROL     INVALID DEVICE REQUEST  Control:
> > FSCTL_LMR_QUERY_DEBUG_INFO
>
> FSCTL_LMR_QUERY_DEBUG_INFO is a Lan Manager specific FSCTL.  It is not
> supported on any other file system.  Invalid Device Request is the
> correct response.
>

Hmm, OK. So maybe Acrobat Reader does not properly abstract file creation
functions? it depends on certain low-level operations specific to Lan
Manager?


> > IRP_MJ_DIRECTORY_CONTROL       NO SUCH FILE
>
> For what path?

Curiously this "directory" operation refers to the path of my target file:
\\AFS\ss2k.uci.edu\users\j\jnilsson\personal\tmp\jnilssonfile.pdf

In the "Save As -> PDF" dialog I chose my U: drive that gets automatically
created at login as defined in my Profile's "Home Folder" in Active
Directory. Since I'm not sure if that is equivalent to the SUBST command, I
just tried saving to another mapped drive created with SUBST. Same result.


>  What is the query mask that is being searched for?  Do
> directory entries that match the mask exist?  In the logs I've examined
> the file name being searched for is the same file name that was given to
> the IRP_MJ_CREATE.  The file doesn't exist and therefore NO SUCH FILE is
> the correct response.
>

That is true here as well. The "Filter" is "jnilssonfile.pdf" which of
course does not exist.


> Since nothing is actually creating the file and the something that
> should make an attempt to do so is Acrobat, I'm suspicious.  I'm not
> pointing a finger since Acrobat clearly saves the file elsewhere but I
> don't have enough data.
>

Very true... I do not see any IRP_MJ_CREATE operation that looks like it is
actually attempting to create a file. My suspicions are on Acrobat Reader
as well then. Acrobat Pro does work to save to AFS...

Thanks for the explanation!

-- 
Jonathan.Nilsson at uci dot edu
Social Sciences Computing Services
SSPB 1265 | 949.824.1536

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

<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"im"=
>RT issue <a href=3D"https://rt.central.org/rt/Ticket/Display.html?id=3D130=
548" target=3D"_blank">https://rt.central.org/rt/Ticket/Display.html?id=3D1=
30548</a> is most</div>


likely related<br></blockquote><div><br></div><div>Yep, that looks like the=
 same symptoms...</div><div>=A0</div><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div cl=
ass=3D"im">


&gt; Operation =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Result<br>
&gt; IRP_MJ_CREATE =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0NAME NOT FOUND<br>
<br>
</div>Does the file exist?</blockquote><div>No, the file does not exist, ne=
ither before nor after attempting File -&gt; Save As -&gt; PDF</div><div><b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex">

 =A0What mode is the create?</blockquote><div>In the detail field for the I=
RP_MJ_CREATE operation, I see:</div><div>Desired Access: Read Attributes, S=
ynchronize</div><div>Disposition: Open</div><div>Options: Synchronous IO No=
n-Alert</div>

<div>Attributes: N</div><div>ShareMode: Read,W Write, Delete</div><div>Allo=
cationSize: n/a</div><div>=A0</div><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> =A0In t=
he logs I&#39;ve viewed<br>


as a part of 130548 the create mode is &quot;open&quot; which means only op=
en the<br>
file if it already exists. =A0If it doesn&#39;t already exist, the error wi=
ll<br>
correctly be NAME NOT FOUND.<br></blockquote><div><br></div><div>=A0Your ex=
planation makes sense... with my limited understanding of what is going on =
under the hood, I figured that an operation with the name &quot;CREATE&quot=
; meant it was trying to create something.</div>

<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex"><div class=3D"im">
&gt; IRP_MJ_FILE_SYSTEM_CONTROL =A0 =A0 INVALID DEVICE REQUEST =A0Control:<=
br>
&gt; FSCTL_LMR_QUERY_DEBUG_INFO<br>
<br>
</div>FSCTL_LMR_QUERY_DEBUG_INFO is a Lan Manager specific FSCTL. =A0It is =
not<br>
supported on any other file system. =A0Invalid Device Request is the<br>
correct response.<br></blockquote><div><br></div><div>Hmm, OK. So maybe Acr=
obat Reader does not properly abstract file creation functions? it depends =
on certain low-level operations specific to Lan Manager?</div><div>=A0</div=
>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">&gt; IRP_MJ_DIRECTORY_CONTROL =A0 =A0 =A0 NO=
 SUCH FILE<br>
<br>
For what path?</blockquote><div>Curiously this &quot;directory&quot; operat=
ion refers to the path of my target file:</div><div>\\AFS\<a href=3D"http:/=
/ss2k.uci.edu">ss2k.uci.edu</a>\users\j\jnilsson\personal\tmp\jnilssonfile.=
pdf</div>

<div><br></div><div>In the &quot;Save As -&gt; PDF&quot; dialog I chose my =
U: drive that gets automatically created at login as defined in my Profile&=
#39;s &quot;Home Folder&quot; in Active Directory. Since I&#39;m not sure i=
f that is equivalent to the SUBST command, I just tried saving to another m=
apped drive created with SUBST. Same result.</div>

<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;=
border-left:1px #ccc solid;padding-left:1ex"> =A0What is the query mask tha=
t is being searched for? =A0Do<br>
directory entries that match the mask exist? =A0In the logs I&#39;ve examin=
ed<br>
the file name being searched for is the same file name that was given to<br=
>
the IRP_MJ_CREATE. =A0The file doesn&#39;t exist and therefore NO SUCH FILE=
 is<br>
the correct response.<br></blockquote><div><br></div><div>That is true here=
 as well. The &quot;Filter&quot; is &quot;jnilssonfile.pdf&quot; which of c=
ourse does not exist.</div><div>=A0</div><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Since nothing is actually creating the file and the something that<br>
should make an attempt to do so is Acrobat, I&#39;m suspicious. =A0I&#39;m =
not<br>
pointing a finger since Acrobat clearly saves the file elsewhere but I<br>
don&#39;t have enough data.<br></blockquote><div><br></div><div>Very true..=
. I do not see any IRP_MJ_CREATE operation that looks like it is actually a=
ttempting to create a file. My suspicions are on Acrobat Reader as well the=
n. Acrobat Pro does work to save to AFS...</div>

<div><br></div><div>Thanks for the explanation!</div><div><br></div><div>--=
=A0</div></div><div><font face=3D"&#39;courier new&#39;, monospace">Jonatha=
n.Nilsson at uci dot edu</font></div><div><font face=3D"&#39;courier new&#3=
9;, monospace">Social Sciences Computing Services</font></div>

<div><span style=3D"font-family:&#39;courier new&#39;,monospace">SSPB 1265 =
| 949.824.1536</span></div><br>

--f46d043c8070c2096604b8652e1c--