From mboxrd@z Thu Jan 1 00:00:00 1970 From: Petr Vandrovec Subject: Re: [Bugme-new] [Bug 12112] New: Files with size more >2GB was truncated after copy by ncpfs Date: Fri, 28 Nov 2008 21:59:53 -0800 Message-ID: <4930DA59.7040205@vc.cvut.cz> References: <20081127095436.4227d17f.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, bugme-daemon@bugzilla.kernel.org, ginermail@gmail.com To: Andrew Morton Return-path: Received: from mailgw.cvut.cz ([147.32.3.235]:36369 "EHLO mailgw.cvut.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750758AbYK2GUx (ORCPT ); Sat, 29 Nov 2008 01:20:53 -0500 In-Reply-To: <20081127095436.4227d17f.akpm@linux-foundation.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Andrew Morton wrote: > (switched to email. Please respond via emailed reply-to-all, not via the > bugzilla web interface). > > On Thu, 27 Nov 2008 09:12:29 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote: > >> http://bugzilla.kernel.org/show_bug.cgi?id=12112 >> >> Summary: Files with size more >2GB was truncated after copy by >> ncpfs >> Product: File System >> Version: 2.5 >> KernelVersion: 2.6.27 >> Platform: All >> OS/Version: Linux >> Tree: Mainline >> Status: NEW >> Severity: high >> Priority: P1 >> Component: Other >> AssignedTo: fs_other@kernel-bugs.osdl.org >> ReportedBy: ginermail@gmail.com >> >> >> Latest working kernel version: none >> Earliest failing kernel version: any >> Distribution: Ubuntu/SuSE >> Hardware Environment: any >> Software Environment: any >> Problem Description: I can't copy files more then 2Gb by ncpfs. They are >> trancate. >> >> Steps to reproduce: Copy files from Netware/SuSE server to Ubuntu/SuSE desktop >> by ncpfs. ncpfs does not support files bigger than 4GB. If you get truncated files, I guess that your app is at fault, it should get SIGXFSZ or an error when you go over 4GB boundary: (from fs/ncpfs/inode.c) sb->s_flags |= MS_NODIRATIME; /* probably even noatime */ sb->s_maxbytes = 0xFFFFFFFFU; sb->s_blocksize = 1024; /* Eh... Is this correct? */ Petr