Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <4.3.1.2.20021226184954.016ece98@pop.rcn.com> X-Sender: lhall AT pop DOT rcn DOT com Date: Thu, 26 Dec 2002 18:58:20 -0500 To: Michael Bourgon , cygwin AT cygwin DOT com From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Rsync issue - can it handle files larger than 2 gigabytes? In-Reply-To: <20021226180657.55238.qmail@web11107.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 01:06 PM 12/26/2002, Michael Bourgon wrote: >I'm trying to sync a 2.21 gigabyte file (so, a "large >file") between Win2k and Win2k, where the client is >pushing the file to the server (which is running >"rsync --daemon --no-detach"). > >It fails, and to isolate the problem, I tried cp'ing >the file: > > cp /cygdrive/f/MY_db_200212252102.BAK /tmp > >which works successfully. I then tried to rsync the >same file: > > rsync -a -vv -W --include=MY_db_200212252102.BAK >--exclude=*.* /cygdrive/f/ /tmp > >It appears to replace the file with a 0-byte file. > >Here's the log from when it runs: > >building file list ... >expand file_list to 4000 bytes, did move >including file MY_db_200212252102.BAK because of >pattern MY_db_200212252102.BAK >done >./ >MY_db_200212252102.BAK >total: matches=0 tag_hits=0 false_alarms=0 >data=-1911686656 >wrote 150 bytes read 36 bytes 124.00 bytes/sec >total size is -1911686656 speedup is -10277885.25 > >Does anyone know if there's anything I need to do to >get large file support? (I did have 4.58 gig free, so >it wasn't due to lack of space) Thanks. Looks to me like you're running into 32-bit integer overflows. While Cygwin internals don't support 64-bit either, judging from the output above, I'm guessing that rsync problem you're seeing is internal to rsync. A closer look at the code would help you determine that for sure. In any case, this is an indication that file sizes beyond 2GB don't work. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 838 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/