Bug 196259 - cvs lacks LFS support
Summary: cvs lacks LFS support
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: cvs
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Jiri Moskovcak
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 198694
TreeView+ depends on / blocked
 
Reported: 2006-06-22 08:58 UTC by Bastien Nocera
Modified: 2018-10-20 00:49 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:12:15 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Testcase testing bug 196259, 218324, 441694 (1.86 KB, application/x-sh)
2009-01-08 11:30 UTC, Jan Ščotka
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0971 0 normal SHIPPED_LIVE cvs bug fix update 2009-05-18 13:41:28 UTC

Description Bastien Nocera 2006-06-22 08:58:49 UTC
cvs-1.11.17-8.RHEL4

When the CVS history file gets bigger than 2GB, cvs checkouts and other
operations on the server fail with a "File size limit exceeded" error.

The fix (verified) is adding the following line to the .spec before the make:
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE"; export CFLAGS

$ cat filler.c
#include <stdio.h>

main()
{
  FILE *fp;
  fp = fopen("/var/cvs/CVSROOT/history","a+");
  while (1) fprintf(fp,"A448ee4ee|marco|~/cvstest|testprj|1.1|hello.txt\n");
  fclose(fp);
}

$ mkdir /var/cvs
$ mkdir /var/cvs/testprj
$ export CVSROOT=/var/cvs
$ mkdir cvstest && cd cvstest
$ cvs init
$ mkdir testprj
$ echo "hello world" > testprj/hello.txt
$ cvs checkout testprj/
$ cvs add testprj/hello.txt
$ cvs commit -m "test"
$ gcc filler.c -o filler
$ ./filler
File size limit exceeded
$ cvs commit -m "test"
cvs commit: Examining testprj
RCS file: /var/cvs/testprj/edge.txt,v
done
Checking in testprj/edge.txt;
/var/cvs/testprj/edge.txt,v  <--  edge.txt
initial revision: 1.1
done
File size limit exceeded
$ ls -lh /var/cvs/CVSROOT/history
-rw-rw-rw-  1 marco marco 2.0G Jun 13 17:18 /var/cvs/CVSROOT/history

Comment 1 Martin Stransky 2006-06-24 07:11:41 UTC
fixed in rawhide

Comment 5 RHEL Program Management 2008-09-05 17:11:57 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 9 Jan Ščotka 2009-01-08 11:30:04 UTC
Created attachment 328457 [details]
Testcase testing bug 196259, 218324, 441694

Created testcase for testing bugs in cvs, It check right link to web pages, assertion when use rtag and large file support(more than 2Gb

Comment 12 errata-xmlrpc 2009-05-18 20:12:15 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0971.html


Note You need to log in before you can comment on or make changes to this bug.