2007-11-06 13:01:01

by Ilya Ovchinnikov

[permalink] [raw]
Subject: BUG: TIFF files created by libtiff on NFS4 filesystem are corrupted

Hello!

I have found the following problem with NFS v4 filesystem:
TIFF files written by libtiff are corrupted.

% mount
/home1/ilya/nfs on /home1/nfs4/ilya type none (rw,bind)
localhost:/ilya on /home/ilya/nfs type nfs4 (rw,addr=127.0.0.1)

% cd /home1/nfs4/ilya
% tifftopnm 1.tif | pnmtotiff > 1a.tif
% cd /home/ilya/nfs
% tifftopnm 1.tif | pnmtotiff > 1n.tif
% cmp 1.tif 1a.tif
% cmp 1.tif 1n.tif
15315 10 ^H 0 ^@
15317 10 ^H 0 ^@
15319 10 ^H 0 ^@


NFS v3 does not have this problem.

Software versions:

Linux 2.6.23.1 #1 SMP Sun Nov 4 01:18:12 MSK 2007 i686 GNU/Linux
or
Linux 2.6.23 #1 SMP Fri Oct 12 16:36:16 MSD 2007 x86_64 GNU/Linux

libc6 2.3.6 or 2.6.1 (Debian etch or sid)
libtiff 3.8.2-7 (Debian etch)
netpbm 2:10.0-11 (Debiam etch)

With best regards,
Ilya Ovchinnikov

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2007-11-06 16:52:43

by Trond Myklebust

[permalink] [raw]
Subject: Re: BUG: TIFF files created by libtiff on NFS4 filesystem are corrupted


On Tue, 2007-11-06 at 16:00 +0300, Ilya Ovchinnikov wrote:
> Hello!
>
> I have found the following problem with NFS v4 filesystem:
> TIFF files written by libtiff are corrupted.
>
> % mount
> /home1/ilya/nfs on /home1/nfs4/ilya type none (rw,bind)
> localhost:/ilya on /home/ilya/nfs type nfs4 (rw,addr=127.0.0.1)
>
> % cd /home1/nfs4/ilya
> % tifftopnm 1.tif | pnmtotiff > 1a.tif
> % cd /home/ilya/nfs
> % tifftopnm 1.tif | pnmtotiff > 1n.tif
> % cmp 1.tif 1a.tif
> % cmp 1.tif 1n.tif
> 15315 10 ^H 0 ^@
> 15317 10 ^H 0 ^@
> 15319 10 ^H 0 ^@
>
>
> NFS v3 does not have this problem.
>
> Software versions:
>
> Linux 2.6.23.1 #1 SMP Sun Nov 4 01:18:12 MSK 2007 i686 GNU/Linux
> or
> Linux 2.6.23 #1 SMP Fri Oct 12 16:36:16 MSD 2007 x86_64 GNU/Linux
>
> libc6 2.3.6 or 2.6.1 (Debian etch or sid)
> libtiff 3.8.2-7 (Debian etch)
> netpbm 2:10.0-11 (Debiam etch)
>
> With best regards,
> Ilya Ovchinnikov

Known issue with 2.6.23.

See http://bugzilla.kernel.org/show_bug.cgi?id=9315

Cheers
Trond


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2007-11-06 19:11:33

by Ilya Ovchinnikov

[permalink] [raw]
Subject: Re: BUG: TIFF files created by libtiff on NFS4 filesystem are corrupted

Trond Myklebust wrote:
>
> Known issue with 2.6.23.
>
> See http://bugzilla.kernel.org/show_bug.cgi?id=9315
>
> Cheers
> Trond

The patch from http://bugzilla.kernel.org/show_bug.cgi?id=9315 solves
the problem, thank you!

With best regards,
Ilya Ovchinnikov

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs