[OpenAFS] OpenAFS client 1.7.201 and later triggers printing
of smiley faces on all printers shared via Samba
Jeffrey Altman
jaltman@your-file-system.com
Mon, 20 Feb 2012 09:53:52 -0500
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig25F9B6C3FD9D84682331F9B8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Ty=
pe">
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
The log indicates a bug in Samba or the printer.<br>
<br>
The explorer shell extension is asking to open an existing file.=C2=A0=
It
is explicitly asking that the file not be created if it doesn't
exist and yet Samba indicates that the file does exist and has been
opened.<br>
<br>
Explorer.EXE=C2=A0=C2=A0=C2=A0 2544=C2=A0=C2=A0=C2=A0 CreateFile=C2=A0=
=C2=A0=C2=A0
\\130.225.51.90\pr-c1-103-bw\_._AFS_IOCTL_._=C2=A0=C2=A0=C2=A0 SUCCES=
S=C2=A0=C2=A0=C2=A0 <br>
Desired Access: Read Data/List Directory, Write Data/Add File, Read
Attributes, Synchronize, <br>
Disposition: Open, <br>
Options: Write Through, Synchronous IO Non-Alert, Non-Directory
File, <br>
Attributes: n/a, <br>
ShareMode: Read, <br>
AllocationSize: n/a, <br>
OpenResult: Opened<br>
<br>
The AFS Pioctl request is then written to the open file and when it
attempts to read the result it is told that reading is an
INVALID_DEVICE_REQUEST.<br>
<br>
A printer that permits writing files to the printer for the purpose
of printing, faxing, etc. must only open a non-existing file if the
CreateFile disposition is Create, Create_Always or Open_Always.<br>
<br>
I cannot tell for sure from this trace but I'm going to guess that
the reason this behavior started with 1.7.2 is the addition of Icon
Overlays for AFS mount points and symlinks.=C2=A0 The explorer shell
extension issues an AFS pioctl to test whether the device is in AFS
or not.<br>
<br>
Jeffrey Altman<br>
<br>
</body>
</html>
--------------enig25F9B6C3FD9D84682331F9B8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
iQEcBAEBAgAGBQJPQl6DAAoJENxm1CNJffh4lEAH/3/+jw8WehC3Tz/WwbyhVq/q
QFttmWtQAo4ouUAJPUU0HMvdmGeH6GVeRiwyR0csyLyrrq1EdEXjThZiEDTXyo+8
vmCuuusExKyhwnkGwKz5JORLegDL2RySh9nJ3rUcqsmpDdK15Pfq2YqQFFjqedpQ
JKqeRHKu3zNG5aN6d2h1LiuNkMa3Odjd9NCzVZPu54pGW0p/ENoNF1duTH6BAeIW
W/k5wlEil0I3EdCU18iAF2AMMET64wnjzhfhTuqh23QbsobrQPEz+LK0WfCJENiN
riv7KW8ra6D65Zp96aUluEnwQQ6nt+Ywj0jB7qdE5ZtQABPm/Sr+UdBmk3PZmAo=
=ROuI
-----END PGP SIGNATURE-----
--------------enig25F9B6C3FD9D84682331F9B8--