Return-Path: Received: from fieldses.org ([173.255.197.46]:50104 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753443AbcBHTaM (ORCPT ); Mon, 8 Feb 2016 14:30:12 -0500 Date: Mon, 8 Feb 2016 14:30:12 -0500 To: Christoph Hellwig Cc: linux-nfs@vger.kernel.org Subject: Re: silent truncation for large file offsets Message-ID: <20160208193012.GG17411@fieldses.org> References: <20160208183328.GA29982@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20160208183328.GA29982@infradead.org> From: bfields@fieldses.org (J. Bruce Fields) Sender: linux-nfs-owner@vger.kernel.org List-ID: On Mon, Feb 08, 2016 at 10:33:28AM -0800, Christoph Hellwig wrote: > >From a Linux client to a Linux server (in fact the same system in this > example), NFSv4.1, XFS file system: > > root@vm:~/xfstests# truncate --size 9223372036854775807 /mnt/nfs1/test > root@vm:~/xfstests# ls -l /mnt/nfs1/test > -rw-r--r-- 1 root root 9223372036854775806 Feb 8 18:30 /mnt/nfs1/test > root@vm:~/xfstests# ls -l /mnt/test/test > -rw-r--r-- 1 root root 9223372036854775807 Feb 8 18:30 /mnt/test/test > > so the file gets created with the correct size on the server, but > the clients shows the size truncated. > > This is extraced from xfstests generic/911 which tests clone > functionality and fails because of this issue. Took a quick look at wireshark, and GETATTR is returning the correct (larger) size. Also FSINFO (this is v3) returns 9223372036854775807 as the maximum file size. --b.