From anders@totem.fix.no  Sat Feb 15 12:32:30 2003
Return-Path: <anders@totem.fix.no>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3B91D37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Feb 2003 12:32:30 -0800 (PST)
Received: from totem.fix.no (totem.fix.no [80.91.32.29])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8CE4143F85
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 15 Feb 2003 12:32:29 -0800 (PST)
	(envelope-from anders@totem.fix.no)
Received: by totem.fix.no (Postfix, from userid 1000)
	id DA14A20244; Sat, 15 Feb 2003 21:32:35 +0100 (CET)
Message-Id: <20030215203235.DA14A20244@totem.fix.no>
Date: Sat, 15 Feb 2003 21:32:35 +0100 (CET)
From: Anders Nordby <anders@FreeBSD.org>
Reply-To: Anders Nordby <anders@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: File size limit on NTFS filesystems
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48316
>Category:       kern
>Synopsis:       File size limit on NTFS filesystems
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 15 12:40:03 PST 2003
>Closed-Date:    Thu Apr 01 11:20:13 PST 2004
>Last-Modified:  Thu Apr 01 11:20:13 PST 2004
>Originator:     Anders Nordby
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Fluxpod Information eXchange
>Environment:
System: FreeBSD eggsilo.localnet 4.7-STABLE FreeBSD 4.7-STABLE #0: Sun Jan  5 22:01:13 CET 2003     root@eggsilo.localnet:/usr/obj/usr/src/sys/EGGSILO  i386

And: FreeBSD current 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Feb 15 02:28:31 GMT 2003     root@current:/usr/obj/usr/src/sys/GENERIC  i386
>Description:

Unable to copy a file larger than 659393536 bytes from a filesystem mounted off
an USB mass storage disk:

# pwd
/tmpdisk
# mount | grep tmpdisk
/dev/da0s1 on /tmpdisk (ntfs, local)
# ls -l Untitled_0001.avi 
-rwxr-xr-x  2 root  wheel  13544295424 Feb  4 19:50 Untitled_0001.avi
# cp Untitled_0001.avi /space/
# ls -l /space/Untitled_0001.avi
-rwxr-xr-x  1 1000  wheel  659393536 Feb 13 22:03 /space/Untitled_0001.avi

I don't believe the fact that the file is on a USB mass storage disk matters,
the problem should be within the NTFS implementation for FreeBSD.

Oh, and, the problem is serious for me because I am trying to do some work on
large video files.. And it's not very practical to have to ask people to split
up files etc.

>How-To-Repeat:

Create a NTFS filesystem (on probably any disk), copy a file that is larger
than 659393536 to it with an OS that has better NTFS support than FreeBSD (like
Windows!). Then mount said filesystem with FreeBSD, -stable or -current, try to
copy the file to a local filesystem. The copy will stop at 659393536 bytes.

>Fix:

N/A

I talked to tjr@ about it, and he suggested trying
http://people.freebsd.org/~tjr/ntfs-read-big.diff, but it has no effect on the
problem I mention here. Sigh.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: anders 
State-Changed-When: Thu Apr 1 11:18:59 PST 2004 
State-Changed-Why:  
I am unable to reproduce this problem anymore. Just tried with a 300 GB 
NTFS partition in FreeBSD 5.2.1. Copied a 2 GB file, no problem. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48316 
>Unformatted:
