Bug 48316

Summary: File size limit on NTFS filesystems
Product: Base System Reporter: Anders Nordby <anders>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   

Description Anders Nordby freebsd_committer freebsd_triage 2003-02-15 20:40:03 UTC
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.

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.
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.
Comment 1 Anders Nordby freebsd_committer freebsd_triage 2004-04-01 20:18:59 UTC
State Changed
From-To: open->closed

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.