Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2000 01:38:55 -0700 (PDT)
From:      phk@FreeBSD.org
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/18589: cmp(1) chokes on large files
Message-ID:  <20000516083855.3E0C437BDD6@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         18589
>Category:       bin
>Synopsis:       cmp(1) chokes on large files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 16 01:40:03 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Poul-Henning Kamp
>Release:        -CURRENT
>Organization:
Fregatten Jylland som Barn
>Environment:
FreeBSD critter.freebsd.dk 5.0-CURRENT FreeBSD 5.0-CURRENT #7: Sat May 13 22:04:02 CEST 2000     root@critter.freebsd.dk:/usr/src/sys/compile/CRITTER  i386
>Description:
The cmp(1) program mmaps the files to be compared.  This fails for large files.
>How-To-Repeat:
cmp -l file.1 file.2  where the two files are 3242115072 bytes long
>Fix:
Add a loop around the mmap/compare operation which operates on some moderate amount of data each iteration.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000516083855.3E0C437BDD6>